facebook

[Closed] Remote debugging problems with Glassfish

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #282321 Reply

    rycohen
    Member

    I can’t seem to get remote debugging going with using the myeclipse internal launcher. If I launch the container externally, it works fine, but regardless of what I do with an internal launch I always get a “Failed to connect to remote VM. Connection refused.” message when I run the Remote Java Application connector.

    As far as I can tell, the Server is not listening, as the Glassfish web managment page (Application Server->General) debug status says “Not enabled”. This is in spite of launching the server in debug mode and the fact that the “Servers” view “Mode” column says “Debug”.

    I am using a vanilla install of Glassfish 2 (build b58c-fcs) , and myeclipse/eclipse are absolutely up-to-date. JDK 1.6.0_04

    I get no errors on server startup, and as far as I can see, no messages indicating that it is listening on port nnnn for remoted debugging connections.

    Any help would be appreciated, as using the external launch method is painful.

    Thanks,
    Ross

    #282357 Reply

    Loyal Water
    Member

    I can’t seem to get remote debugging going with using the myeclipse internal launcher.

    Are you trying to remote debug an internally launched server ? Have you taken a look at this quick start doc ? Is this what your trying ?
    http://www.myeclipseide.com/documentation/quickstarts/appservers/

    #282367 Reply

    rycohen
    Member

    @support-nipun wrote:

    I can’t seem to get remote debugging going with using the myeclipse internal launcher.

    Are you trying to remote debug an internally launched server ? Have you taken a look at this quick start doc ? Is this what your trying ?
    http://www.myeclipseide.com/documentation/quickstarts/appservers/

    Yes, I’ve read the quick-start docs (and googled around a while). Yes, I am trying to get the internally-launched server to allow remove debugging. All the details are in my initial post.

    Thanks in advance,
    Ross

    #282422 Reply

    Loyal Water
    Member

    Ross,
    I think there is some kind of confusion here. Remote Debugging is used for Externally launched server. Can you check this out please:-
    http://www.myeclipseide.com/documentation/quickstarts/remotedebugging/

    #282478 Reply

    rycohen
    Member

    @support-nipun wrote:

    Ross,
    I think there is some kind of confusion here. Remote Debugging is used for Externally launched server. Can you check this out please:-
    http://www.myeclipseide.com/documentation/quickstarts/remotedebugging/

    To clarify, I cannot get debugging working on a glassfish server which has been started using the myeclipse connector (ie using the Server view in the MyEclipse perspective). If I start glassfish externally (from the command line) I can debug code on the server without problems.

    Sorry about the terminology mismatch – my bad.

    Thanks in advance,
    Ross

    #282497 Reply

    Loyal Water
    Member

    Can you go to MyEclipse > Installation Summary > installation Details and paste the information here for me.

    #282503 Reply

    Riyad Kalla
    Member

    Ross,
    I think what Nipun was getting at is that when you start Glassfish from MyEclipse, the debugger is automatically attached directly to the process (you can confirm this by switching to the Debug perspective and seeing the running process).

    If you give us a bit more detail about what you were trying to debug and what was happening, that might provide some insight into why it wasn’t working.

    Also are you using Glassfish 1, Glassfish 2, or Sun App Server 9.1 (based on GF2)?

    #282520 Reply

    rycohen
    Member

    @support-rkalla wrote:

    Ross,
    I think what Nipun was getting at is that when you start Glassfish from MyEclipse, the debugger is automatically attached directly to the process (you can confirm this by switching to the Debug perspective and seeing the running process).

    If you give us a bit more detail about what you were trying to debug and what was happening, that might provide some insight into why it wasn’t working.

    Also are you using Glassfish 1, Glassfish 2, or Sun App Server 9.1 (based on GF2)?

    Not sure if this was the problem, but there were some problems in our network topography that were just fixed, and everything seems to be working well now. Anyways, I apologize for having wasted everyone’s time.

    Thank you,
    Ross

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: [Closed] Remote debugging problems with Glassfish

You must be logged in to post in the forum log in