Tomcat failed to shutdown

前端 未结 7 806
遥遥无期
遥遥无期 2020-12-14 01:31

When I add the following Java options to enable debugging:

JAVA_OPTS=\"$JAVA_OPTS -noverify -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_soc         


        
相关标签:
7条回答
  • 2020-12-14 02:09

    The problem is your tomcat is still running on the debug port(5005) or some other service running on the same port(5005).

    If tomcat still running, you can kill it

    • if it in linux environment ps -ef|grep java, and identify the process id of it. and kill the process using sudo kill -9 .
    • If it in windows environment got to task manager and kill the tomcat and java process.

    Now you should be able to start the server in debug mood without any prob.

    This can happen on debugging unit test through the tool(eclipse) which has been executed through the maven. To sole this you can flow the same process.

    First close the Eclipse and kill the java process as well and start it again.

    0 讨论(0)
提交回复
热议问题