来自WTP的Tomcat忽略分配的端口 [英] Tomcat from WTP ignoring assigned port
问题描述
SEVERE:Catalina.start
LifecycleException:协议处理程序初始化失败:java.net.BindException:Address已经在使用中:JVM_Bind:8080
我检查了中的server.xml ; workspace> / servers
和< metadata> /。plugins / org.eclipse.wst.server.core / tmp1 / conf
具有以下陈述:
< Connector connectionTimeout =20000port =8081protocol =HTTP / 1.1redirectPort = 8443/>
<! - 使用共享线程池的连接器 - >
<! -
< Connector executor =tomcatThreadPool
port =8080protocol =HTTP / 1.1
connectionTimeout =20000
redirectPort =8443/>
- >
任何人都可以看出这一点吗? eclipse版本是Indigo,Tomcat的版本是6。
如果你在Eclipse中设置端口(double-点击服务器,编辑端口),然后点击保存,一切都可以。
I have a Tomcat launch configuration to which I assigned a Tomcat server that is configured to use ports 8006, 8010 and 8081. I have another server running on ports 8005, 8009 and 8080. When I try to start the launch configuration I get an error
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8080
I checked the server.xml in <workspace>/servers
and <metadata>/.plugins/org.eclipse.wst.server.core/tmp1/conf
directories and both have the following statements:
<Connector connectionTimeout="20000" port="8081" protocol="HTTP/1.1" redirectPort="8443"/>
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
Can anyone shed some light on this? Version of eclipse is Indigo, and version of Tomcat is 6.
If you are setting the ports from within Eclipse (double-click the server, edit "ports"), and then hit "save", everything should be OK.
这篇关于来自WTP的Tomcat忽略分配的端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!