shiro tomcat启动报错
2017-12-25 13:11:49,014 INFO [org.springframework.web.servlet.DispatcherServlet] - FrameworkServlet 'springmvc': initialization started
2017-12-25 13:11:49,021 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - Refreshing WebApplicationContext for namespace 'springmvc-servlet': startup date [Mon Dec 25 13:11:49 CST 2017]; parent: Root WebApplicationContext
2017-12-25 13:11:49,023 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from ServletContext resource [/WEB-INF/springmvc-servlet.xml]
2017-12-25 13:11:49,290 INFO [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-12-25 13:11:49,559 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped "{[/login.html],methods=[POST],params=[],headers=[],consumes=[],produces=[text/html;charset=utf-8],custom=[]}" onto public java.lang.String com.yjy.controller.HomeController.login(com.yjy.entity.User,org.springframework.validation.BindingResult,org.springframework.ui.Model,org.springframework.web.servlet.mvc.support.RedirectAttributes)
2017-12-25 13:11:49,562 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped "{[/user/add.html],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.yjy.controller.UserController.addUser()
2017-12-25 13:11:49,562 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped "{[/user/del.html],methods=[GET],params=[],headers=[],consumes=[],produces=[text/html;charset=utf-8],custom=[]}" onto public java.lang.String com.yjy.controller.UserController.deleteUser(java.lang.String)
2017-12-25 13:11:49,563 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped "{[/user/edit.html],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.yjy.controller.UserController.updateUser(int)
2017-12-25 13:11:49,669 INFO [org.hibernate.validator.internal.util.Version] - HV000001: Hibernate Validator 5.1.2.Final
2017-12-25 13:11:50,495 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter] - Looking for @ControllerAdvice: WebApplicationContext for namespace 'springmvc-servlet': startup date [Mon Dec 25 13:11:49 CST 2017]; parent: Root WebApplicationContext
2017-12-25 13:11:50,641 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter] - Looking for @ControllerAdvice: WebApplicationContext for namespace 'springmvc-servlet': startup date [Mon Dec 25 13:11:49 CST 2017]; parent: Root WebApplicationContext
2017-12-25 13:11:50,898 INFO [org.springframework.web.servlet.DispatcherServlet] - FrameworkServlet 'springmvc': initialization completed in 1884 ms
十二月 25, 2017 1:11:50 下午 org.apache.catalina.startup.HostConfig deployWAR
信息: Deployment of web application archive E:\Tomcat 8.0\webapps\SpringMVC_Shiro-1.0-SNAPSHOT.war has finished in 18,159 ms
十二月 25, 2017 1:11:50 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Tomcat 8.0\webapps\docs
十二月 25, 2017 1:11:50 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Tomcat 8.0\webapps\docs has finished in 37 ms
十二月 25, 2017 1:11:50 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Tomcat 8.0\webapps\dsyn_yjy
十二月 25, 2017 1:11:54 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
十二月 25, 2017 1:11:54 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
十二月 25, 2017 1:11:54 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
十二月 25, 2017 1:11:55 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter shiroFilter
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'shiroFilter' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:660)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1157)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:280)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:962)
at org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:324)
at org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:235)
at org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:199)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4699)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5339)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1126)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1868)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
十二月 25, 2017 1:11:55 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
十二月 25, 2017 1:11:55 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/dsyn_yjy] startup failed due to previous errors
十二月 25, 2017 1:11:55 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
十二月 25, 2017 1:11:55 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [dsyn_yjy] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:40)
十二月 25, 2017 1:11:55 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Tomcat 8.0\webapps\dsyn_yjy has finished in 4,314 ms
十二月 25, 2017 1:11:55 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Tomcat 8.0\webapps\examples
十二月 25, 2017 1:11:55 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
十二月 25, 2017 1:11:55 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
十二月 25, 2017 1:11:55 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Tomcat 8.0\webapps\examples has finished in 588 ms
十二月 25, 2017 1:11:55 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Tomcat 8.0\webapps\host-manager
十二月 25, 2017 1:11:55 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Tomcat 8.0\webapps\host-manager has finished in 39 ms
十二月 25, 2017 1:11:55 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Tomcat 8.0\webapps\manager
十二月 25, 2017 1:11:55 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Tomcat 8.0\webapps\manager has finished in 37 ms
十二月 25, 2017 1:11:55 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Tomcat 8.0\webapps\ROOT
十二月 25, 2017 1:11:56 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Tomcat 8.0\webapps\ROOT has finished in 64 ms
十二月 25, 2017 1:11:56 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8989"]
十二月 25, 2017 1:11:56 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
十二月 25, 2017 1:11:56 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 23445 ms
web.xml和applicationContext.xml中的shiroFilter都配置了 id没有问题。。