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.
Velyo source share