指定Tomcat 7仅在Eclipse中使用端口8443 [英] Specifying Tomcat 7 to use port 8443 only in Eclipse

查看:228
本文介绍了指定Tomcat 7仅在Eclipse中使用端口8443的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,我配置了我的Tomcat 7来执行从8080端口到8443的重定向。下面是配置的一部分,一切都按预期运行。

Normally, I configured my Tomcat 7 to perform redirect from port 8080 to 8443. Below is the portion of the configuration and everything works as expected.

server.xml

<Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1"
    connectionTimeout="20000" redirectPort="8443" />
<!-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the 
    JSSE configuration, when using APR, the connector should be using the OpenSSL 
    style configuration described in the APR documentation -->

<Connector SSLEnabled="true" clientAuth="false"
    keystoreFile="conf/somestore" keystorePass="somekey"
    maxThreads="200" port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
    scheme="https" secure="true" sslProtocol="TLS" />

只有今天,我决定从配置中删除第一个连接器。但是,在我启动之后,Eclipse中的服务器按钮一切似乎都很好,除了消息说启动Tomcat 7永远不会结束。

Only today, I decided to removed the first connector from configuration. However after I hit start the server button in Eclipse everything seems fine except the message says Starting Tomcat 7 never ends.

最终这样:

顺便说一下,此问题只出现在Eclipse中的Tomcat中。 Eclipse是否仍然尝试通过旧端口访问应用程序?任何指针都非常感激。

By the way, this issue only appears in Tomcat within Eclipse. Is it possible that Eclipse is still trying to access the application through the old port ? Any pointers is much appreciated.

更新

双击服务器后例如,我只能看到 Ports 部分下的两个端口号。

After I double clicked the server instance, I am only able to see two ports number under Ports section.


  1. Tomcat管理端口是8005

  2. SSL端口是8443


推荐答案

通过双击服务器上的tomcat,直接转到tomcat配置控制台。
检查指定的端口。
如果没有帮助,请删除服务器并在eclipse中再次安装tomcat。只需要几秒钟的时间。

Just goto the tomcat configuration console by double clicking on tomcat under the servers . Check the port specified there . If it doesn't help , delete the server and install the tomcat again in eclipse. It only takes a matter of seconds .

另请尝试从windows中退出所有的tomcat进程,然后再次尝试从eclipse启动tomcat。

Also please try exiting all the tomcat processes from windows and then try to start the tomcat from eclipse once again .

这篇关于指定Tomcat 7仅在Eclipse中使用端口8443的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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