8

我在 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]

可能是什么问题?

4

2 回答 2

20

改变

-Xrunjdwp:transport=dt_socket,server=n,suspend=y,地址=9009

-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009

于 2011-02-28T18:49:58.553 回答
0

Glassfish 3.0.1 中有许多 domain.xml 文件。您必须确保修改与您的域对应的一个,例如:

<GLASSFISH_HOME>/domains/domain1/config/domain.xml
于 2013-02-19T13:48:30.677 回答