users@glassfish.java.net

problem launching remote debugging of EJB with Eclipse IDE and Glass Fish

From: <glassfish_at_javadesktop.org>
Date: Fri, 04 Dec 2009 07:16:22 PST

Hi,

I am new to trying to debug a deployed EJB on a running glassfish server from Eclipse. Here is what I tried.

(1) Go to JVM settings in Glassfish and click "enable debugging".

(2) Create debug configuration and pass it these arguments in the JVM:

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

Then when I press F-11 to step through the code I get this error message in Eclipse:

ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.
[Message sent by forum member 'werowe' ]

http://forums.java.net/jive/thread.jspa?messageID=374754