来自WTP的Tomcat忽略分配的端口 [英] Tomcat from WTP ignoring assigned port

查看:159
本文介绍了来自WTP的Tomcat忽略分配的端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Tomcat启动配置,我分配了一个配置为使用端口8006,8010和8081的Tomcat服务器。我有另一台服务器在端口8005,8009和8080上运行。当我尝试启动启动配置时获取错误

  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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆