Manually Changing Glassfish domain.xml for debugging error

I have this line of code in 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 run the domain, there are no errors. However, I want to get a debugging function, so I changed this part as follows:

 debug-enabled="true" 

When I want to start a domain, it gives an 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 could be the problem?

+7
source share
2 answers

Edit

-Xrunjdwp: transport = transport on sockets, server = n, pause = y, address = 9009

to

-Xrunjdwp: transport = transport on sockets, server = y, pause = n, address = 9009

+16
source

Glassfish 3.0.1 has many domain.xml files. You must definitely change the one that matches your domain, for example:

 <GLASSFISH_HOME>/domains/domain1/config/domain.xml 
0
source

All Articles