debug-enabled was set to "false", but if I set it to "true", I get this, and the application doesn't start:
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: bind failed: Address already in use
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]
Java Result: 1
Attached JPDA debugger to localhost:9009
debug-Doctorats-app-client:
debug:
BUILD SUCCESSFUL (total time: 44 seconds)
Here is the domain.xml line (with debug-enabled set to false):
<java-config classpath-suffix="d:/Sun/AppServer/lib/Doctorats-authmodule.jar" debug-enabled="false" debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009" env-classpath-ignored="true" java-home="${com.sun.aas.javaRoot}" javac-options="-g" rmic-options="-iiop -poa -alwaysgenerate -keepgenerated -g">
I don't usually attach to the client application by hand (although I tried, and it works). I click on "debug" on my ear project.
wbossons wrote:
When you choose Run|Attach Debugger, there is a panel that pops up.
There is a host setting -- it should refer to your localhost or loopback
address.
Also, you may have to check your domain.xml to see if you have debugging
allowed. Look for this line ...
<java-config classpath-suffix="" debug-enabled="true"
debug-options="-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
env-classpath-ignored="true" java-home="${com.sun.aas.javaRoot}"
javac-options="-g" rmic-options="-iiop -poa -alwaysgenerate
-keepgenerated -g" system-classpath="">
Make sure that debug-enabled is set to true. Also, verify that the port
is correct.
..\W