问题描述
Eclipse中错误信息是:2011-4-18 11:42:09 org.apache.catalina.core.AprLifecycleListener init信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:Javajdk1.6.0_17bin;.;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:/Java/jdk1.6.0_17/bin/../jre/bin/client;C:/Java/jdk1.6.0_17/bin/../jre/bin;C:Javajdk1.6.0_17bin;C:Javajdk1.6.0_17jrebin;C:apache-ant-1.8.0bin;C:apache-tomcat-6.0.29bin;C:apache-cxf-2.3.1bin;D:Programfilescygwinbin;D:Program FilesjEdit;C:MySQLMySQL Server 5.1bin;C:jboss-4.0.5.GAbin;D:Program FilesRationalcommon;C:Program FilesCommon FilesThunder NetworkKanKanCodecs;D:Program FilesMicrosoft Visual StudioCommonToolsWinNT;D:Program FilesMicrosoft Visual StudioCommonMSDev98Bin;D:Program FilesMicrosoft Visual StudioCommonTools;D:Program FilesMicrosoft Visual StudioVC98bin2011-4-18 11:42:10 org.apache.coyote.http11.Http11Protocol init信息: Initializing Coyote HTTP/1.1 on http-80802011-4-18 11:42:10 org.apache.catalina.startup.Catalina load信息: Initialization processed in 1603 ms2011-4-18 11:42:10 org.apache.catalina.core.StandardService start信息: Starting service Catalina2011-4-18 11:42:10 org.apache.catalina.core.StandardEngine start信息: Starting Servlet Engine: Apache Tomcat/6.0.292011-4-18 11:42:11 org.apache.catalina.core.StandardContext listenerStart严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListenerat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4078)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)at org.apache.catalina.core.StandardService.start(StandardService.java:519)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:581)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2011-4-18 11:42:11 org.apache.catalina.core.StandardContext listenerStart严重: Skipped installing application listeners due to previous error(s)2011-4-18 11:42:11 org.apache.catalina.core.StandardContext start严重: Error listenerStart2011-4-18 11:42:11 org.apache.catalina.core.StandardContext start严重: Context [/cxfdemo] startup failed due to previous errors 问题补充:wxb_j2ee 写道
解决方案
Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 错误描述不是很清楚么?你检查下jar包以及web.xml文件。
解决方案二:
检查安装Java JDK的环境变量-我的电脑-右键属性-环境变量 path变量
解决方案三:
查下你环境变量里面的路径是否正确
解决方案四:
C:Javajdk1.6.0_17bin;.;C:WINDOWSSunJavabin;这是你path配置的代码,你看看多了个“.”和 “;”