本文介绍了日食中的Tomcat错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个eclipse的问题,表示端口已经在使用(80,8009),当我更改端口我收到一个错误:Tomcat v6在localhost无法启动。当我调试Tomcat时,我收到此错误:
2011年3月21:11:40 org.apache.catalina.core.AprLifecycleListener init
INFO:基于APR的Apache Tomcat Native库,在生产环境中允许最佳性能在java.library.path中找不到:C :\Program Files\Java\jdk1.6.0_21\bin;。; C:\Windows\Sun\Java\bin; C:\Windows\system32; C:\Windows; C:/ Program Files / Java / jre6 / bin / client; C:/ Program Files / Java / jre6 / bin; C:/ Program Files / Java / jre6 / lib / i386; C:\Program Files\Java\\ \\ jdk1.5.0_09\bin; C:\Program Files\QuickTime\QTSystem\; C:\Windows\system32; C:\Windows; C:\Windows \System32 \Wbem ; C:\Windows\System32\WindowsPowerShell\v1.0; C:\Program Files\apache-ant-1.8.1\bin; C:\Program Files\Subversion\bin; C:\Program Files\Java\jdk1.6.0_21\bin; C:\ Users\Rajin\Desktop\eclipse-JEE-赫利俄斯-SR1-win32\eclipse;
2011年3月11日21:11:41 org.apache.tomcat.util.digester.SetPropertiesRule开始
警告:[SetPropertiesRule] {服务器/服务/引擎/主机/上下文}设置属性的来源'到'org.eclipse.jst.jee.server:EducationGamesApp'找不到匹配的属性。
2011年3月11日21:11:41 org.apache.coyote.http11.Http11Protocol init
INFO:初始化http-8080上的Coyote HTTP / 1.1
2011年3月11日21: 11:41 org.apache.catalina.startup.Catalina load
INFO:初始化处理635 ms
2011年3月11日21:11:41 org.apache.catalina.core.StandardService start
信息:启动服务Catalina
2011年3月11日21:11:41 org.apache.catalina.core.StandardEngine start
INFO:启动Servlet引擎:Apache Tomcat / 6.0.29
2011年3月11日21:11:41 org.apache.coyote.http11.Http11Protocol start
INFO:在http-8080上启动Coyote HTTP / 1.1
2011年3月11日21:11:41 org.apache.jk.common.ChannelSocket init
INFO:JK:ajp13 listen on /0.0.0.0:8008
2011年3月11日21:11:41 org.apache.jk.server.JkMain启动
INFO:Jk运行ID = 0时间= 0/29 config = null
2011年3月11日21:11:41 org.apache.catalina.startup.Catalina起始
信息:服务器启动在390毫秒
2011年3月11日21:11:41 org.apache.catalina.core.StandardServer await
SEVERE:StandardServer.await:create [8005]:
java.net.BindException:已经在使用的地址:java.net.PlainSocketImpl.socketBind(Native Method)的JVM_Bind
在java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
在java.net.ServerSocket.bind(ServerSocket.java:319)
在java.net.ServerSocket。< init>( ServerSocket.java:185)
在org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
在org.apache.catalina.startup.Catalina.await(Catalina.java: 662)
在org.apache.catalina.startup.Catalina.start(Catalina.java:614)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect。 NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
在java.lang.reflect.Method.invoke(Method.java:597)
在org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289 )
在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
谢谢
解决方案
通过运行
找出哪个应用程序保存端口- Windows:
netstat -no
- Linux:
netstat -anp
寻找 8005
8080
, 8009
侦听 127.0.0.1
0.0.0.0
。在任务管理器(Windows)或 ps
(Linux)中查找PID(进程ID),以查找它是哪个程序,终止它,然后尝试重新启动Tomcat。 p>
I have a problem with eclipse that says the ports are already in use (80, 8009), When I change the ports I receive an error: Tomcat v6 at localhost failed to start.
When I debug Tomcat I receive this error:
11-Mar-2011 21:11:40 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: C:\Program Files\Java\jdk1.6.0_21\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\Program Files\Java\jdk1.5.0_09\bin;C:\Program Files\QuickTime\QTSystem\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\apache-ant-1.8.1\bin;C:\Program Files\Subversion\bin;C:\Program Files\Java\jdk1.6.0_21\bin;C:\Users\Rajin\Desktop\eclipse-jee-helios-SR1-win32\eclipse;
11-Mar-2011 21:11:41 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:EducationGamesApp' did not find a matching property.
11-Mar-2011 21:11:41 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
11-Mar-2011 21:11:41 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 635 ms
11-Mar-2011 21:11:41 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
11-Mar-2011 21:11:41 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
11-Mar-2011 21:11:41 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
11-Mar-2011 21:11:41 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8008
11-Mar-2011 21:11:41 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/29 config=null
11-Mar-2011 21:11:41 org.apache.catalina.startup.Catalina start
INFO: Server startup in 390 ms
11-Mar-2011 21:11:41 org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
at org.apache.catalina.startup.Catalina.await(Catalina.java:662)
at org.apache.catalina.startup.Catalina.start(Catalina.java:614)
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)
Thanks
解决方案
Find out which application hold the port(s) by running
- Windows:
netstat -no
- Linux:
netstat -anp
Look for 8005
, 8080
, 8009
ports listening on either 127.0.0.1
or 0.0.0.0
. Lookup the PID (process id) in Task Manager (Windows) or ps
(Linux) to find out which program it is, terminate it, and try starting Tomcat again.
这篇关于日食中的Tomcat错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!