Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manually Changing Glassfish domain.xml for Debug Error

I have this line of code at 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="">

If I start the domain there is no error. However I want to get debug feature so I changed this part like this:

debug-enabled="true"

When I want to start the domain it gives error:

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]

What may be the problem?

like image 970
kamaci Avatar asked Feb 28 '11 09:02

kamaci


1 Answers

Change

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

to

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

like image 94
vkraemer Avatar answered Oct 13 '22 14:10

vkraemer