problem while doing remote debugging in oc4j

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?


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;

LVL 20
chaitu chaituAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
chaitu chaituAuthor Commented:
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;

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")

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chaitu chaituAuthor Commented:
hi petmagdy

excellent answer.

i think there is no need to compile ejb and etrans projects while doing remote debugging
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.