problem while doing  remote debugging in oc4j

Posted on 2004-11-16
Medium Priority
Last Modified: 2008-02-01
i am getting problem while doing  remote debugging in oc4j ;

using ant i created ear and  deployed into oc4j container;

 i have taken the same source files that i have recently created ear file;

i have created workspace in jdeveloper;

should i compile the source files in jdeveloper?

using http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_21185874.html#12434192\

i have started remote debugging ;

i put breakpoint in controller;

when i am debugging it has not stopped at breakpoint.what may be the problem;

Question by:chaitu chaitu
  • 2
  • 2
LVL 13

Expert Comment

ID: 12601342
yes in ur ant task that compile should look like this:

   <target name="ejb-classes" depends="prepare">

      <javac srcdir="${src.dir}/ejb" debug="on"
    destdir="${lib.dir}/ejb" includes="com/pmy/**" classpath="${dependency.lib}/j2ee.jar" />


make sure debug is on (debug="on")

to generate the complied code with the needed debug info
LVL 20

Author Comment

by:chaitu chaitu
ID: 12601379
hi petmagdy

good morning;

i am using ant upto creating ear file and deploying that ear into oc4j container;

after that i created workspace say release3.0.jws,under that two folders will be there
EJB.jpr and etrans.jpr;

i have imported all source files from c directory into this ejb.jar and  etrans.jpr respectively;

using rightclick rebuild EJB.jpr  and etrans.jar;compiled well;

Is it neccassary to compile EJB.jpr  and etrans.jar in jdeveloper;

because why i have doubt like this because already compiled class files are in ear file that i have deployed in oc4j;

LVL 13

Accepted Solution

petmagdy earned 1000 total points
ID: 12601410
in order to do remote debbugging the EAR should contain complied classes with the debug information is generated and included in the .class files
by default jdeveloper do this when u compile inside jdeveloper
if u want to do this from ant in ur javac tasks in ant (build.xml) just make sure that  (debug="on")
LVL 20

Author Comment

by:chaitu chaitu
ID: 12601662
hi petmagdy

excellent answer.

i think there is no need to compile ejb and etrans projects while doing remote debugging

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month16 days, 14 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question