项目启动报错ClassNotFoundException,请帮忙,谢谢

scorpio_lhl 2010-10-02 01:04:07
2010-10-2 0:48:50 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jdk1.6.0_07\bin;D:\JAVA_TOOLS\apache-tomcat-5.5.27\bin
2010-10-2 0:48:50 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2010-10-2 0:48:50 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 594 ms
2010-10-2 0:48:50 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-10-2 0:48:50 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.27
2010-10-2 0:48:50 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
[pprm] 10-10-02 00:48 ERROR main org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) :
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loggerListener' defined in ServletContext resource [/WEB-INF/applicationContext-acegi-security.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.aop.aspectj.AspectJAroundAdvice] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.springframework.aop.config.MethodLocatingFactoryBean] while setting constructor argument with index 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [aicu.application.vimp.service.ManagerInterceptor] for bean with name 'managerInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]; nested exception is java.lang.ClassNotFoundException: aicu.application.vimp.service.ManagerInterceptor
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.aop.aspectj.AspectJAroundAdvice] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.springframework.aop.config.MethodLocatingFactoryBean] while setting constructor argument with index 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [aicu.application.vimp.service.ManagerInterceptor] for bean with name 'managerInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]; nested exception is java.lang.ClassNotFoundException: aicu.application.vimp.service.ManagerInterceptor
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.springframework.aop.config.MethodLocatingFactoryBean] while setting constructor argument with index 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [aicu.application.vimp.service.ManagerInterceptor] for bean with name 'managerInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]; nested exception is java.lang.ClassNotFoundException: aicu.application.vimp.service.ManagerInterceptor
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [aicu.application.vimp.service.ManagerInterceptor] for bean with name 'managerInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]; nested exception is java.lang.ClassNotFoundException: aicu.application.vimp.service.ManagerInterceptor
Caused by:
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [aicu.application.vimp.service.ManagerInterceptor] for bean with name 'managerInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]; nested exception is java.lang.ClassNotFoundException: aicu.application.vimp.service.ManagerInterceptor
Caused by:
java.lang.ClassNotFoundException: aicu.application.vimp.service.ManagerInterceptor
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
。。。。[pprm] 10-10-02 00:48 ERROR main org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3768) :
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loggerListener' defined in ServletContext resource [/WEB-INF/applicationContext-acegi-security.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.aop.aspectj.AspectJAroundAdvice] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.springframework.aop.config.MethodLocatingFactoryBean] while setting constructor argument with index 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [aicu.application.vimp.service.ManagerInterceptor] for bean with name 'managerInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]; nested exception is java.lang.ClassNotFoundException: aicu.application.vimp.service.ManagerInterceptor
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with
........
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.springframework.aop.config.MethodLocatingFactoryBean] while setting constructor argument with index 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [aicu.application.vimp.service.ManagerInterceptor] for bean with name 'managerInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]; nested exception is java.lang.ClassNotFoundException: aicu.application.vimp.service.ManagerInterceptor
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [aicu.application.vimp.service.ManagerInterceptor] for bean with name 'managerInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]; nested exception is java.lang.ClassNotFoundException: aicu.application.vimp.service.ManagerInterceptor
Caused by:
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [aicu.application.vimp.service.ManagerInterceptor] for bean with name 'managerInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]; nested exception is java.lang.ClassNotFoundException: aicu.application.vimp.service.ManagerInterceptor
Caused by:
java.lang.ClassNotFoundException: aicu.application.vimp.service.ManagerInterceptor
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
.......
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2010-10-2 0:48:58 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2010-10-2 0:48:58 org.apache.catalina.core.StandardContext start
严重: Context [/portal] startup failed due to previous errors
2010-10-2 0:48:59 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2010-10-2 0:48:59 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2010-10-2 0:48:59 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/218 config=null
2010-10-2 0:49:00 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2010-10-2 0:49:00 org.apache.catalina.startup.Catalina start
信息: Server startup in 9719 ms
...全文
1190 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
licip 2010-10-03
正如楼上所说,看你自己有没有配置错误。
回复
asi12lanxin 2010-10-03
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jdk1.6.0_07\bin;D:\JAVA_TOOLS\apache-tomcat-5.5.27\bin


这个对应用没多大影响,是apache新增的。如果看着不舒服可以去掉,下载个最新的tcnative-1.dll,如2楼所说做,就可以去掉了。


楼主的程序bug在这里Cannot find class [aicu.application.vimp.service.ManagerInterceptor] for bean with name 'managerInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]; nested exception is java.lang.ClassNotFoundException: aicu.application.vimp.service.ManagerInterceptor


对照配置文件,找找这个类ManagerInterceptor
回复
marqio 2010-10-02
两个问题,第一是环境变量问题,没有添加tomcat的lib包环境,在classpath中添加;%CATALINA_HOME%\common\lib\servlet-api.jar。第二个是spring的配置文件问题,对照报错的bean,进行查询Java文件和配置文件的关联是否存在。
回复
qq38396025 2010-10-02
貌似 缺少一个 包,apache 上有下的,像是一个补丁,名字忘记了,你百度、google一下,应该会有相关内容;


解决方法:
相关文档:http://tomcat.apache.org/tomcat-6.0-doc/apr.html
去这里http://tomcat.heanet.ie/native/下载最新版本的tcnative-1.dll放到Tomcat的安装目录\Bin下
之后重启Tomcat就OK了。


刚找来的,呵呵
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2010-10-02 01:04
社区公告
暂无公告