| Debug issues in Indigo/Glassfish 3.1.1 environment [message #723839] |
Fri, 09 September 2011 12:17  |
John Panelli Messages: 2 Registered: September 2011 |
Junior Member |
|
|
Enviroment: Eclipse Indigo with Glassfish 3.1.1 (running externally) and 64-bit JDK 6 u27
When I press the Debug icon in the Servers on my Glassfish 3.1.1 server, glassfish starts up ok, but the debugger never attaches to the JVM. The Debug view just shows "<terminated, exit value: 0>".
Also, when I view the Debug Configuration under "Glassfish Application Server", I get a NullPointerException dialog popping up (see attachment) and the Server dropdown is completely empty.
I can create a separate Remote Java Application debug configuration and connect to the JVM using that and it works fine, but that's painful to setup.
Question: Is anyone else seeing this? Any ideas for working around it (aside from doing the remote attach every time)?
|
|
|
| Re: Debug issues in Indigo/Glassfish 3.1.1 environment [message #724233 is a reply to message #723839] |
Sun, 11 September 2011 12:44   |
John Panelli Messages: 2 Registered: September 2011 |
Junior Member |
|
|
I found this to be a bug in the Eclipse Glassfish plugin. In my case, I was creating a domain using the following command:
asadmin --user "admin" create-domain --nopassword=true --portbase=8000 domain1
Because of the --portbase=8000, the debug port winds up on port 8009 instead of the default 9009. The Eclipse Glassfish plugin doesn't seem to pickup on this and can't deal with it. If I create the domain without --portbase=8000, the debug port uses it's default 9009 and all is good. Note that this also fixed a problem related to the JMX port. In that case, I was getting exceptions at startup having to do with JMX and those have now cleared as well.
So, I guess we have to use the default ports in our domains.
[Updated on: Sun, 11 September 2011 12:59] Report message to a moderator
|
|
|
|
|
| Re: Debug issues in Indigo/Glassfish 3.1.1 environment [message #805916 is a reply to message #723839] |
Fri, 24 February 2012 04:43  |
Anthony Garratt Messages: 1 Registered: February 2012 |
Junior Member |
|
|
I dropped on this thread when failing to get debugging working between Glassfish 3.1.1 and Eclipse Indigo. The port number information set me looking for some domain config and I found the port numbering in my domain.xml file. Changing this config fixed it for me. So, changed:
<system-property name="JAVA_DEBUGGER_PORT" value="29009"></system-property>
to:
<system-property name="JAVA_DEBUGGER_PORT" value="9009"></system-property>
Debug seems to be working now. Posted for anyone else searching for it.
|
|
|
Powered by
FUDForum. Page generated in 0.01649 seconds