Eclipse - Glassfish 4 Debug Debug Timeout

The Glassfish 4.0 final gives a timeout every time I try to run it in debug mode. Normal start on the server (from Eclipse) works without a timeout.
I tried to run Glassfish 4.0 from Eclipse Juno and Eclipse Kepler, both have the correct port configuration for debugging (9009), both do not start Glassfish when debugging.

Is this a known issue? How to fix it?

+4
source share
3 answers

Yes, this is a known issue with the Glassfish 4.0 adapter in Eclipse.

Here is a workaround:

  • Shut down Eclipse, open a command prompt in the Glassfish server’s home directory and stop the domain:

    asadmin stop-domain domain1

  • Launch Eclipse, select "Run \ Debug Configurations ..." from the menu and launch the "Debug Configurations" dialog

  • Find GlassFish 4.0 Application Server

  • Go to the "Arguments" tab and change the argument of the virtual machine to:

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

  • Click "Debug" to start Glassfish in debug mode or use "Debug on server" in the server view

+10
source

After installing the latest Glassfish tools update for Kepler, I received some sort of average message that actually helps me solve the problem, and now I can run Glassfish in debug mode. Here is my workaround: Go to the folder .\glassfish4\glassfish\domains\domain1\config . Open the domain.xml file in any editor. Go to ./domain/configs/config[name=server-config]/java-config node. You must have the debug-options attribute as shown below:

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

Remove "-Xrun" and it should look like this:

 debug-options="-Xdebugjdwp:transport=dt_socket,address=9009,server=y,suspend=n" 

Save. Restart / start Eclipse Kepler and you can run Glassfish again in debug mode if you had a similar problem like mine.

Hope this helps.

+2
source

This issue has been fixed. The error was reported here: http://java.net/jira/browse/GLASSFISHPLUGINS-370 . You can update the plugin from the update sites http://download.java.net/glassfish/eclipse/juno (or kepler). I think you need to remove all old startup and debug configurations and possibly re-register the runtime and the GF server.

0
source

Source: https://habr.com/ru/post/1485962/


All Articles