我在domain.xml上有这行代码:
<java-config classpath-suffix="" debug-enabled="false" debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=9009" env-classpath-ignored="true" java-home="${com.sun.aas.javaRoot}" javac-options="-g" rmic-options="-iiop -poa -alwaysgenerate -keepgenerated -g" system-classpath="">
如果我启动域,则没有错误.但是我想获得调试功能,所以我改变了这个部分:
debug-enabled="true"
当我想启动域时,它会给出错误:
FATAL ERROR in native method: JDWP No transports initialized,jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: connect Failed: Connection refused ERROR: JDWP Transport dt_socket Failed to initialize,TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
可能是什么问题?
解决方法
更改
-Xrunjdwp:运输= dt_socket,服务器= N,暂停= Y,地址= 9009
至
-Xrunjdwp:运输= dt_socket,服务器= Y,暂停= n时,地址= 9009