Failed to start Apache Tomcat from netbeans macOSX (Problem 1: deployment error: starting of Tomcat failed, Problem 2: port 8080 already in use)

huangapple go评论68阅读模式
英文:

Failed to start Apache Tomcat from netbeans macOSX (Problem 1: deployment error: starting of Tomcat failed, Problem 2: port 8080 already in use)

问题

这是对我有效的方法。
1) 进入 **/Downloads/apache-tomcat-9.0.37/conf**

在 server.xml 文件中,对于 HTTP/1.1 的 Connector 元素,添加以下属性:server="Apache-Coyote/1.1"。

示例:

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

2) 进入 netbeans8.2.app -> 右键单击显示包内容 -> contents -> resources -> netbeans -> enterprise -> modules ->

然后您可以找到并替换文件 ("org-netbeans-modules-tomcat5.jar") 为 "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

英文:

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

答案1

得分: 1

kill the process after searching the process id
ps -ef|grep tomcat
then
kill -9 <processid>

Then start tomcat again.

英文:

kill the process after searching the process id
ps -ef|grep tomcat
then
kill -9 &lt;processid&gt;

Then start tomcat again.

huangapple
  • 本文由 发表于 2020年9月2日 13:57:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/63699498.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定