myeclipse 用自带tomcat 老会出现问题
开机第一次启动服务器,运行程序总会失败。然后要点击菜单栏project中的clean后,再重新启动服务器才有可能能运行。这是怎么回事啊。。。程序编着编着就出现这个毛病了。。网上说tomcat的里的javax.servlet.jar和程序重复了,但是我找不到自带的tomcat路径啊,我程序的web-info---lib里面也没有这个jar包啊。。 新人,谢谢大家指教!
首先是
正确运行的信息
2012-6-1 22:28:30 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: D:\MyEclipse\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\bin;D:\MyEclipse\MyEclipse\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_9.0.0.me201012172208\tomcat\bin
2012-6-1 22:28:30 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2012-6-1 22:28:30 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 442 ms
2012-6-1 22:28:30 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-6-1 22:28:30 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.13
2012-6-1 22:28:31 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2012-6-1 22:28:31 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2012-6-1 22:28:31 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/19 config=null
2012-6-1 22:28:31 org.apache.catalina.startup.Catalina start
信息: Server startup in 519 ms
然后是
错误时的信息:
2012-6-2 14:19:43 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: D:\MyEclipse\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\bin;D:\MyEclipse\MyEclipse\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_9.0.0.me201012172208\tomcat\bin
2012-6-2 14:19:43 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2012-6-2 14:19:43 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 657 ms
2012-6-2 14:19:43 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-6-2 14:19:43 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.13
2012-6-2 14:19:44 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\MyEclipse\WebAPP\.metadata\.me_tcat\webapps\ContainerTransportSystem\WEB-INF\lib\javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2012-6-2 14:19:45 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2012-6-2 14:19:45 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2012-6-2 14:19:45 org.apache.jk.server.Jk