I managed to enable JDeveloper to debug with tomcat and here are the steps to accomplish that.
As a prerequisite for this, you must have a tomcat server locally installed. I need to note also that this way you won’t be able to debug jsp files (Only classes). Actually there is a way around that but it’s so buggy and tiresome.
First you need to add those lines to the java options in tomcat configuration:
Second, go to the folder where tomcat is installed (for me it is “C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost”) and create a file called “project1.xml” for example, and paste this line in it.
project1\ViewController\public_html" path="/project1" reloadable="true" />
docBase is the path to your public_html folder
reloadable=”true” allows tomcat to pickup any changes that you make to your jsps.
Path is the path that you can access your web application through.
Third, you need to create a new run configuration for tomcat (we need a remote debugging configuration):
* Check “Remote Debugging and Profiling”
* Go to Debugger -> Remote and change
o Protocol à Attach to JPDA
o Host à 127.0.0.1 as we are debugging through the locally installed tomcat server.
o Port à 8000 ( It should match the port specified in the tomcat configuration as in step 1)
Fourth, we need to change the Output Directory from “ViewController\classes” to “ViewController\public_html\WEB-INF\classes”
And to do this go to View Controller Project settings then to Project Content and change the Output Directory Textbox.
Thursday, February 21, 2008