zgtpm
zgtpm
2011-04-18 11:43

我的Tomcat单独启动时正常,可是在Eclipse中启动时就报错,是什么原因?

已采纳

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:\Java\jdk1.6.0_17\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Java/jdk1.6.0_17/bin/../jre/bin/client;C:/Java/jdk1.6.0_17/bin/../jre/bin;C:\Java\jdk1.6.0_17\bin;C:\Java\jdk1.6.0_17\jre\bin;C:\apache-ant-1.8.0\bin;C:\apache-tomcat-6.0.29\bin;C:\apache-cxf-2.3.1\bin;D:\Programfiles\cygwin\bin;D:\Program Files\jEdit;C:\MySQL\MySQL Server 5.1\bin;C:\jboss-4.0.5.GA\bin;D:\Program Files\Rational\common;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;D:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;D:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;D:\Program Files\Microsoft Visual Studio\Common\Tools;D:\Program Files\Microsoft Visual Studio\VC98\bin
2011-4-18 11:42:10 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2011-4-18 11:42:10 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1603 ms
2011-4-18 11:42:10 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2011-4-18 11:42:10 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.29
2011-4-18 11:42:11 org.apache.catalina.core.StandardContext listenerStart
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at 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 listenerStart
2011-4-18 11:42:11 org.apache.catalina.core.StandardContext start
严重: Context [/cxfdemo] startup failed due to previous errors

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • ethenjean ethenjean 10年前

    Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
    java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
    错误描述不是很清楚么?你检查下jar包以及web.xml文件。

    点赞 评论 复制链接分享
  • wxb_j2ee wxb_j2ee 10年前

    检查安装Java JDK的环境变量-我的电脑-右键属性-环境变量 path变量

    点赞 评论 复制链接分享
  • wxb_j2ee wxb_j2ee 10年前

    查下你环境变量里面的路径是否正确

    点赞 评论 复制链接分享
  • wxb_j2ee wxb_j2ee 10年前

    C:\Java\jdk1.6.0_17\bin;.;C:\WINDOWS\Sun\Java\bin;

    这是你path配置的代码,你看看多了个“.”和 “;”

    点赞 评论 复制链接分享

相关推荐