我正在使用Eclipse Kepler和Tomcat 7以及Ubuntu 12.04。当Tomcat在45秒后启动它时,它说
Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.
我增加了超时,重新安装了Eclipse和Tomcat,但问题仍未解决。
在调试模式下,我收到此错误。
<terminated, exit value: 143>/usr/lib/jvm/java-7-openjdk-amd64/bin/java (May 26, 2014, 12:26:09 PM)
我的控制台说:
May 26, 2014 12:26:10 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
May 26, 2014 12:26:10 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
May 26, 2014 12:26:10 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
May 26, 2014 12:26:10 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 995 ms
May 26, 2014 12:26:10 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
May 26, 2014 12:26:10 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
May 26, 2014 12:26:11 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
May 26, 2014 12:26:11 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
May 26, 2014 12:26:11 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 804 ms
答案 0 :(得分:0)
在eclipse环境中创建任何内容时添加服务器运行时 添加指定的已安装的tomcat库和jdk位置,它将起作用