几种常用servlet容器开启调试的方法

1、jboss4.2.3.GA

在%JBOSS_HOME%/bin/run.conf里,增加

JAVA_OPTS="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

2、jboss-as-7.1.1.Final

在%JBOSS_HOME%/bin/standalone.conf里,增加

JAVA_OPTS="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

3、apache-tomcat-7.0.29

用以下命令运行%TOMCAT_HOME%/bin/catalinajpdastart,默认的调试端口是8000

相关推荐