This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

how to run servlet in eclipse  RSS feed

Shanthi Mari
Posts: 24
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am using eclipse3,tomcat 5.0.28 and Sysdeo plugin

I created a servlet program in Eclipse when I debug I get this error.

Failed to connect to remote VM. EOF encountered during handshake

Is any configuration error?
Help me ...........
Andrew Moores
Posts: 12
  • Mark post as helpful
  • send pies
  • Report post to moderator
I assume the servlet is running successfully in Tomcat. If so, to debug it from eclipse you need to make some changes to the tomcat start-up script along the following lines:

set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=6666 (You can change this number if you don't like it!)
catalina jpda start

Then, from eclipse create a new debug configuration for a remote Java application and specify the port as defined above.

When you run in debug mode Eclipse will connect to the VM used by Tomcat. Take a look at the Tomcat docs as they explain this better than I can here, but this should help you to get going.

Jack Wiesenthaler
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Report post to moderator
Or Install Exadel studio basic version ;-)
David O'Meara
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is a duplicate of the post here and will be closed.

Please don't post the same question in multiple forums.

    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!