nested exception is java.lang.ClassNotFoundException: Interceptor
生活随笔
收集整理的這篇文章主要介紹了
nested exception is java.lang.ClassNotFoundException: Interceptor
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
注: 如果配置文件中對類的引入出現異常(字體示紅),則說明項目配置存在問題。
異常描述
Exception
javax.servlet.ServletException: Servlet.init() for servlet springMVC threw exceptionorg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1137)org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2575)org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2564)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)java.lang.Thread.run(Thread.java:745)Root Cause
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.MappedInterceptor#1': Cannot create inner bean 'com.huawei.demo.interceptor.LoginInterceptor#0' of type [com.huawei.demo.interceptor.LoginInterceptor] while setting constructor argument; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.huawei.demo.interceptor.LoginInterceptor] for bean with name 'com.huawei.demo.interceptor.LoginInterceptor#0' defined in class path resource [conf/spring-mvc.xml]; nested exception is java.lang.ClassNotFoundException: com.huawei.demo.interceptor.LoginInterceptororg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)總結
以上是生活随笔為你收集整理的nested exception is java.lang.ClassNotFoundException: Interceptor的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: nginx 配置详解
- 下一篇: ssm 框架配置详解