strRusty_gal 14 Unverified User

Hi all,

Thanks for viewing this thread.

I would like to do a remote debugging of WAR file that contain one Java servlet. Anyone tried that before?

I tried to use cmd with the following command:
java -Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=y -classpath "TestingServlet.war" MyServletName

Not sure if the command above is correct, please enlighten me if it is not correct.

I executed the command and then went to eclipse and right click on the project then choose "Debug Configuration" --> "Add new Remote Java Application" --> "Host = localhost" --> "Port: 8001"

Whenever I clicked on the Debug button, the command prompt (the window that I executed the java command as above) will display an Error message : "Error: Could not find or load main class MyServletName"

Did I miss any step? Sorry but please enlighten me.