tags:

views:

41

answers:

4

Hi,

I joined a project which has been already developed and its an Web Application deployed on Tomcat Server.

I have configured the Web Application on my local Tomcat Server and it is running fine. I want to start debugging the Application but I am not sure where to start from and how to debug an Java Web Application from Eclipse and so my question is

Q: How to Debug Java Web Application which is running on Tomcat Server on Local Machine in Eclipse Environment {Pointers to useful resources or other steps would be highly appreciated}?

A: 

There are at least a couple of ways to do this:

krock
Yes. I am creating Dynamic Project from within eclipse and so I guess I can use Web Tools Platform.
Rachel
A: 

First get the JEE edition of Eclipse

You then need to have the Eclipse project containing the WEB-INF folder be a Dynamic Web Project. Then the full tooling becomes available and allow you to work with your projects inside any server including Tomcat. The trick is to locate the Server view pane, and right click to add a new Tomcat server adapter.

Thorbjørn Ravn Andersen
Can you elaborate more on this ? I am not clear with the approach.
Rachel
You might find http://www.eclipse.org/webtools/community/tutorials/BuildJ2EEWebApp/BuildJ2EEWebApp.html interesting. Remember to use the JEE edition of Eclipse.
Thorbjørn Ravn Andersen
A: 

NB also has got debugging WebApp facilities it is very good i feel. here

org.life.java
I am using eclipse as the IDE of choice, do you know an approach where in I can achieve my goal using eclipse ?
Rachel
A: 

I have had to do this a few times. Often it is not convenient to create a Dynamic web project to debug a web application in tomcat. This technique is fairly simple but requires some configuration in tomcat and then using Elcipse (or netbeans) to attach to tomcat when its running.

http://wiki.apache.org/tomcat/FAQ/Developing, in particular

How do I configure Tomcat to support remote debugging? and How do I remotely debug Tomcat using Eclipse?

Dunderklumpen