Myeclipse 启动tomcat 报错production environments...

报以下错:

 

2009-5-26 14:57:05 org.apache.catalina.core.AprLifecycleListener init
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jdk153\bin;C:\Tomcat6\bin
2009-5-26 14:57:05 org.apache.coyote.http11.Http11Protocol init
严重: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:499)
 at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:175)
 at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
 at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
 at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
 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.load(Bootstrap.java:260)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
2009-5-26 14:57:05 org.apache.catalina.startup.Catalina load
严重: Catalina.start
LifecycleException:  Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8080
 at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)
 at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
 at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
 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.load(Bootstrap.java:260)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
2009-5-26 14:57:05 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 2203 ms
2009-5-26 14:57:05 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-5-26 14:57:05 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.10
2009-5-26 14:57:10 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(C:\Tomcat6\webapps\loan\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

 

 

解决方法:

 

tomcat推荐使用apache的apr(Apache portable Run-time libraries,Apache可移植运行库)

我看到有个解决办法是在http://tomcat.heanet.ie/native/ 下面去下个tcnative-1.dll放到\WINDOWS\system32下面重起Myeclipse 6.0,但是我怎么重启几次,都TM不行,气死人.我把哪个tcnative-1.dll放到\TOMCAT\bin\下 就OK了.

你可能感兴趣的:(java,apache,tomcat,servlet,MyEclipse)