problem while doing  remote debugging in oc4j

Posted on 2004-11-16
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?


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
    LVL 13

    Expert Comment

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

    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
    hi petmagdy

    excellent answer.

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

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Suggested Solutions

    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 contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    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 different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now