manflower
2008-07-25 09:30
浏览 433
已采纳

eclipse启动和关闭tomcat报错!!!!

eclipse启动和关闭tomcat报错!!!! 但是我单独开启tomcat运行是没有问题。
错误信息如下:
[color=red]启动时: [/color]
2008-7-25 9:23:27 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:\Program Files\Java\jdk1.5.0_06\bin;D:\Tomcat 5.5\bin
2008-7-25 9:23:27 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2008-7-25 9:23:27 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 2657 ms
2008-7-25 9:23:27 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2008-7-25 9:23:27 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.26
2008-7-25 9:23:27 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2008-7-25 9:23:29 org.apache.catalina.core.ApplicationContext log
信息: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2008-7-25 9:23:31 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\Tomcat 5.5\webapps\eProcurement\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Quartz Initializer Servlet loaded, initializing Scheduler...

[color=red]关闭时: [/color]

2008-7-25 9:10:19 org.apache.catalina.startup.Catalina stopServer
严重: Catalina.stop:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket. (Socket.java:365)
at java.net.Socket. (Socket.java:178)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
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:585)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • lggegegmail 2008-07-25 14:10
    已采纳

    [quote]信息: validateJarFile(D:\Tomcat 5.5\webapps\eProcurement\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class [/quote]

    这个是由于你的eProcurement项目下\WEB-INF\lib\有servlet-api.jar. 在tomcat下同样也有一个servlet-api.jar. [在tomcat\common\lib\servlet-api.jar].

    [1]
    你完全可以将eProcurement\WEB-INF\lib\servlet-api.jar删掉.

    [2]
    你也可以忽略它, 这只是一个警告信息, 没关系的.

    [3]
    关闭时候的异常就忽略它吧. :D

    点赞 打赏 评论
  • aidiyuxin 2008-07-25 11:07

    [size=medium]关闭时候的错误是没问题的
    但是你启动时候的错误在那呢?
    怎么没找到啊?[/size]

    点赞 打赏 评论
  • llade163 2008-07-25 11:36

    信息: validateJarFile(D:\Tomcat 5.5\webapps\eProcurement\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet
    ...

    D:\Tomcat 5.5\webapps\eProcurement\WEB-INF\lib\servlet-api.jar,删掉,tomcat自己的LIB有这个JAR, 可能是你项目里的servlet-api.jar的Servlet版本太旧。

    点赞 打赏 评论

相关推荐 更多相似问题