首页新闻找找看学习计划

maven maven,搞了三四天了,求人解答啊

0
[已解决问题] 解决于 2016-10-18 15:05
  1 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
  2 INFO: Server version:        Apache Tomcat/7.0.65
  3 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
  4 INFO: Server built:          Oct 9 2015 08:36:58 UTC
  5 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
  6 INFO: Server number:         7.0.65.0
  7 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
  8 INFO: OS Name:               Windows 7
  9 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
 10 INFO: OS Version:            6.1
 11 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
 12 INFO: Architecture:          amd64
 13 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
 14 INFO: Java Home:             C:\Program Files\Java\jdk1.7.0_09\jre
 15 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
 16 INFO: JVM Version:           1.7.0_09-b05
 17 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
 18 INFO: JVM Vendor:            Oracle Corporation
 19 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
 20 INFO: CATALINA_BASE:         D:\Tomcat7.0
 21 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
 22 INFO: CATALINA_HOME:         D:\Tomcat7.0
 23 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
 24 INFO: Command line argument: -Dcatalina.home=D:\Tomcat7.0
 25 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
 26 INFO: Command line argument: -Dcatalina.base=D:\Tomcat7.0
 27 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
 28 INFO: Command line argument: -Djava.endorsed.dirs=D:\Tomcat7.0/common/endorsed
 29 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
 30 INFO: Command line argument: -Djava.io.tmpdir=D:\Tomcat7.0\temp
 31 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
 32 INFO: Command line argument: -Djava.library.path=C:\Program Files\Java\jdk1.7.0_09\bin;D:\Tomcat7.0\bin
 33 十月 18, 2016 1:44:05 下午 org.apache.catalina.startup.VersionLoggerListener log
 34 INFO: Command line argument: -Dsun.io.useCanonCaches=false
 35 十月 18, 2016 1:44:05 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
 36 INFO: Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.1.
 37 十月 18, 2016 1:44:05 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
 38 INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
 39 十月 18, 2016 1:44:06 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL
 40 INFO: OpenSSL successfully initialized (OpenSSL 1.0.1m 19 Mar 2015)
 41 十月 18, 2016 1:44:06 下午 org.apache.coyote.AbstractProtocol init
 42 INFO: Initializing ProtocolHandler ["http-apr-8080"]
 43 十月 18, 2016 1:44:06 下午 org.apache.coyote.AbstractProtocol init
 44 INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
 45 十月 18, 2016 1:44:06 下午 org.apache.catalina.startup.Catalina load
 46 INFO: Initialization processed in 1489 ms
 47 十月 18, 2016 1:44:06 下午 org.apache.catalina.core.StandardService startInternal
 48 INFO: Starting service Catalina
 49 十月 18, 2016 1:44:06 下午 org.apache.catalina.core.StandardEngine startInternal
 50 INFO: Starting Servlet Engine: Apache Tomcat/7.0.65
 51 十月 18, 2016 1:44:06 下午 org.apache.catalina.startup.HostConfig deployDirectory
 52 INFO: Deploying web application directory D:\Tomcat7.0\webapps\Blog
 53 十月 18, 2016 1:44:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
 54 INFO: Deployment of web application directory D:\Tomcat7.0\webapps\Blog has finished in 444 ms
 55 十月 18, 2016 1:44:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
 56 INFO: Deploying web application directory D:\Tomcat7.0\webapps\ShiroWeb03
 57 十月 18, 2016 1:44:07 下午 org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
 58 INFO: validateJarFile(D:\Tomcat7.0\webapps\ShiroWeb03\WEB-INF\lib\javax.servlet-api-3.1.0.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
 59 2016-10-18 13:44:07,427 ERROR [AbstractFilter.java:103] : Unable to start Filter: [No WebEnvironment found: no EnvironmentLoaderListener registered?].
 60 java.lang.IllegalStateException: No WebEnvironment found: no EnvironmentLoaderListener registered?
 61     at org.apache.shiro.web.util.WebUtils.getRequiredWebEnvironment(WebUtils.java:276)
 62     at org.apache.shiro.web.servlet.ShiroFilter.init(ShiroFilter.java:73)
 63     at org.apache.shiro.web.servlet.AbstractShiroFilter.onFilterConfigSet(AbstractShiroFilter.java:152)
 64     at org.apache.shiro.web.servlet.AbstractFilter.init(AbstractFilter.java:97)
 65     at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
 66     at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
 67     at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
 68     at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4841)
 69     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5535)
 70     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 71     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
 72     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
 73     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
 74     at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
 75     at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978)
 76     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 77     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 78     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
 79     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 80     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 81     at java.lang.Thread.run(Thread.java:722)
 82 十月 18, 2016 1:44:07 下午 org.apache.catalina.core.StandardContext filterStart
 83 SEVERE: Exception starting filter ShiroFilter
 84 javax.servlet.ServletException: java.lang.IllegalStateException: No WebEnvironment found: no EnvironmentLoaderListener registered?
 85     at org.apache.shiro.web.servlet.AbstractFilter.init(AbstractFilter.java:105)
 86     at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
 87     at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
 88     at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
 89     at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4841)
 90     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5535)
 91     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 92     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
 93     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
 94     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
 95     at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
 96     at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978)
 97     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 98     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 99     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
100     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
101     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
102     at java.lang.Thread.run(Thread.java:722)
103 Caused by: java.lang.IllegalStateException: No WebEnvironment found: no EnvironmentLoaderListener registered?
104     at org.apache.shiro.web.util.WebUtils.getRequiredWebEnvironment(WebUtils.java:276)
105     at org.apache.shiro.web.servlet.ShiroFilter.init(ShiroFilter.java:73)
106     at org.apache.shiro.web.servlet.AbstractShiroFilter.onFilterConfigSet(AbstractShiroFilter.java:152)
107     at org.apache.shiro.web.servlet.AbstractFilter.init(AbstractFilter.java:97)
108     ... 17 more
109 十月 18, 2016 1:44:07 下午 org.apache.catalina.core.StandardContext startInternal
110 SEVERE: One or more Filters failed to start. Full details will be found in the appropriate container log file
111 十月 18, 2016 1:44:07 下午 org.apache.catalina.core.StandardContext startInternal
112 SEVERE: Context [/ShiroWeb03] startup failed due to previous errors
113 十月 18, 2016 1:44:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
114 INFO: Deployment of web application directory D:\Tomcat7.0\webapps\ShiroWeb03 has finished in 439 ms
115 十月 18, 2016 1:44:07 下午 org.apache.coyote.AbstractProtocol start
116 INFO: Starting ProtocolHandler ["http-apr-8080"]
117 十月 18, 2016 1:44:07 下午 org.apache.coyote.AbstractProtocol start
118 INFO: Starting ProtocolHandler ["ajp-apr-8009"]
119 十月 18, 2016 1:44:07 下午 org.apache.catalina.startup.Catalina start
120 INFO: Server startup in 922 ms
根目录97的主页 根目录97 | 初学一级 | 园豆:17
提问于:2016-10-18 13:54
< >
分享
最佳答案
0

Tomcat启动时,会去web.xml中读取listener和context-param,你把这两个节点先贴出看看呢。

奖励园豆:5
TeaCat | 菜鸟二级 |园豆:301 | 2016-10-18 14:33

嗯嗯,谢谢啦,原因是我注释了

<listener>
<listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
</listener>

我以为老版本的不需要来着

根目录97 | 园豆:17 (初学一级) | 2016-10-18 15:05
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册