File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

how to run servlet in eclipse

 
Shanthi Mari
Greenhorn
Posts: 24
  • 0
  • 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.

java.io.IOException: EOF encountered during handshake
org.eclipse.jdi.internal.connect.SocketTransportImpl.PerformHandshake(SocketTransportImpl.java:151)
org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:48)
org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:103)
org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:131)
org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:75)
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

Is any configuration error?
Help me ...........
 
Andrew Moores
Greenhorn
Posts: 12
  • 0
  • 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.

Andrew
 
Jack Wiesenthaler
Ranch Hand
Posts: 75
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Or Install Exadel studio basic version ;-)
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • 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.

thanks,
Dave.
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic