【问题标题】:Failed to start Apache Tomcat from netbeans macOSX (Problem 1: deployment error: starting of Tomcat failed, Problem 2: port 8080 already in use)无法从 netbeans macOSX 启动 Apache Tomcat(问题 1:部署错误:Tomcat 启动失败,问题 2:端口 8080 已在使用中)
【发布时间】:2020-09-02 05:57:10
【问题描述】:
This is how it worked for me.
1) Go to **/Downloads/apache-tomcat-9.0.37/conf**

In the server.xml file, in the Connector element for HTTP/1.1, add the following attribute: server="Apache-Coyote/1.1".

Example:

<Connector
  connectionTimeout="20000"
  port="8080"
  protocol="HTTP/1.1"
  redirectPort="8443"
  server="Apache-Coyote/1.1"
/>

2) Go to netbeans8.2 . app -> right click show package contents ->contents->resources->netbeans->enterprise->modules->

then you can find and replace the file ("org-netbeans-modules-tomcat5.jar") with "https://issues.apache.org/jira/secure/attachment/12994224/org-netbeans-modules-tomcat5.jar"

https://issues.apache.org/jira/secure/attachment/12994224/org-netbeans-modules-tomcat5.jar

【问题讨论】:

    标签: java tomcat netbeans


    【解决方案1】:

    搜索进程id后杀死进程 ps -ef|grep tomcat 然后 kill -9 &lt;processid&gt;

    然后重新启动tomcat。

    【讨论】:

    • 问题出在 netbeans 上。 Apache tomact 服务器使用 ./catalina.sh start 命令正常启动,但从 netbeans 无法启动
    猜你喜欢
    • 2011-07-15
    • 1970-01-01
    • 2017-01-11
    • 2019-12-23
    • 1970-01-01
    • 2011-07-04
    • 2018-08-26
    • 2014-04-09
    • 2016-06-20
    相关资源
    最近更新 更多