无法从netbeans macOSX启动Apache Tomcat问题1:部署错误:Tomcat启动失败,问题2:端口8080已在使用中

问题描述

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

解决方法

搜索进程ID后

杀死该进程 ps -ef|grep tomcat 然后 kill -9 <processid>

然后再次启动tomcat。