I am using window XP. I tried startup.bat jpda. It says
"Failed to connect to remote VM. connection refused."
Main Topics
Browse All TopicsHi, there!
I am using Tomcat as webserver, and I am using spring MVC and hibernate build web applications. My IDE is Eclipse. Does someone could point me to how to make my controller called in debug mode? As far as I know, 1) I need to start Tomcat server with right optional parameters, i.e. debug port. But I do not know what I shall add, where in bat(catalina.bat) file I shall add. 2) In Eclispe debug option, I create remote debug, and set port to the optional debug port when I start the webserver.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Is this any use?
http://tomcat.apache.org/f
Not directly answering your question, I imagine that after a while debugging like that you'll get tired. Why not try a more integrated solution ? Eclipse 3.3 (Europa) with Webtools already has a tomcat starter that you can just run in debug mode with one mouse click and it will stop at your breakpoints.
For TimYates:
http://tomcat.apache.org/f
For mindwalkr:
Thanks for your suggestions. Webtool is not my intension since I might need to migrate the application to weblogic. And at this moment, I have no experience about webtool. I do not know how does it go with weblogic.
For TimYates:
Sorry I did not check doc carefully. This link also tells how to config tomcat in debug mode. It is an article above remote debug link. If it works, I will give you 500 points.
For mindwalkr:
I will give you 50 points for this new tool information. But if you do not mind, could you please tell me how webtool works with weblogic? I could open another question for it and find my questions.
Don't worry about points if my posts don't help... I'm more here to try and help (and learn along the way) than for points :-)
---
http://tomcat.apache.org/f
Seems to say that to start it off running in debug mode, you need to configure two variables and call
catalina jpda start
Then you should be able to connect eclipse to it...
I followed following instruction: But I still get "Failed to connect to remote VM. connection refused."
"The short answer is to add the following options when the JVM is started:
-Xdebug -Xrunjdwp:transport=dt_soc
There are a number of ways you can do this depending on how you normally start Tomcat:
Set environment variables JPDA_ADDRESS=8000 and JPDA_TRANSPORT=dt_socket and then start tomcat using catalina jpda start."
Business Accounts
Answer for Membership
by: TimYatesPosted on 2007-07-10 at 07:09:10ID: 19453701
don't you just start tomcat with:
catalina.sh jpda
And it uses port 8000 by default?