wood burning stoves*
The moose likes IDEs, Version Control and other tools and the fly likes debug j2ee web application using eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "debug j2ee web application using eclipse" Watch "debug j2ee web application using eclipse" New topic
Author

debug j2ee web application using eclipse

Raj Ohadi
Ranch Hand

Joined: Jun 30, 2006
Posts: 316
I have all the java source codes, if I run ant to pack them into a .WAR or .EAR file and deploy to an application server like Weblogic, then can I use eclipse to debug it (assume I start my weblogic through eclipse) ?

I heard that if I want to debug a j2ee app, I have to deploy it in a way that the .class are in an expanded way, i.e. I can't just deploy a single .ear or .war and have to deploy the classes in a unpacked way, then in eclipse I link the output to that deployment location (WEB-INF/classes/..).

Is this true ?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

No. You can deploy your application however you like.

Typically you application server needs to be configured for remote debugging if you want to debug via the basic IDE. You do this by adding these options:

to the call to start your server. You can then configure a Remote Java Application debug configuration in Eclipse to connect to the JVM. Just configure it to connect over the same port as you defined in your JAVA_OPTS.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Raj Ohadi
Ranch Hand

Joined: Jun 30, 2006
Posts: 316
Originally posted by Paul Sturrock:
No. You can deploy your application however you like.

Typically you application server needs to be configured for remote debugging if you want to debug via the basic IDE. You do this by adding these options:

to the call to start your server. You can then configure a Remote Java Application debug configuration in Eclipse to connect to the JVM. Just configure it to connect over the same port as you defined in your JAVA_OPTS.



thanks Paul. Actually my case may be even simpler. I am not doing remote debugging. I am just deploying it to local PC. So I can just deploy a .ear to the local Weblogic deployment site and debug ? What's the corresponding procedure I shall follow (like the one you mentioned for remote debug) ?

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: debug j2ee web application using eclipse
 
Similar Threads
Debug in weblogic
porting to Oracle 11g weblogic server
WebLogicServer n compiling servlets n jsp
packing
how to build / deploy using jboss?