facebook

[Closed] Debug Tomcat inside of Virtual Machine

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #260376 Reply

    I am running MyEclipse on OS X, trying to attach to a Tomcat 5.5 server running on Windows XP (via Parallels VM on the same machine). Problem is, I cannot get MyEclipse to see/connect to the debug port 8000.

    I have Tomcat configured with the following JVM options to enable debugging:
    -Xdebug
    -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

    Launching from within Win, the console shows all this is starting properly. I can use a browser on the Mac to see it is running (Windows has its own IP separate from Mac).

    But when I try to connect remotely via MyEclipse I get “Failed to connect to remote VM. Connection timed out.” (org.eclipse.jdi.TimeoutException). Firewall on Win is open for 8000.

    To connect I’m using Debug… “MyEclipse Externally Launched Server”, and have it configured for the Win IP, port 8000, attach via standard (sockets).

    And no, it is not possible for me to run Tomcat on Mac… the app requires DLLs and other Win-centric fooforah.

    Help!

    #260501

    Riyad Kalla
    Member

    Try and disable the firewall completely and then see if it works… also it’s very possible to run Tomcat on OS X, I’m not sure what problems you ran into but I used it on my MacBook Pro for all my development and testing.

    #260507

    I tried turning off the firewall before… no dice.

    The reason I cannot run Tomcat on OS X isn’t a technical issue, it’s a project one. The app uses DLLs and other code which force it to run on Windows.

    #260518

    Riyad Kalla
    Member

    Hmm, and you are using the directions from the remote debugging guide in our documentation section to try and attach the debugger and it’s just not working? I’ll admit I’m not sure what would stop it from connecting… but if it’s a standard connection it should work.

    #260757

    Got it working. Don’t know what the issue was… perhaps something with Tomcat (running on the Windows side)… perhaps a problem between the chair and the keyboard.

    I reinstalled TC, followed the instructions from the Apache Tomcat website and now MyEclipse on Mac can see & debug Tomcat running in the virtual Windows.

    Thanks for the help.

    Tim

    #260758

    Riyad Kalla
    Member

    Ahh, very cool glad it’s working now.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: [Closed] Debug Tomcat inside of Virtual Machine

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