facebook

Debuggin an existing J2EE application

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #206129 Reply

    sjk
    Member

    I am evaluating MyEclipse in order to be able to debug J2EE applications running on an application server (Oracle 9iAS).

    I have got an existing application with a following source directory structure:

    <pre>
    |– src
    | |– java
    | | `– com
    | | `– mycompany
    | | |– myapp
    | | | |– ejb
    | | | |– util
    | | | `– web
    </pre>

    As you can see, java source is put under three different packages: com.mycompany.myapp.ejb, com.mycompany.myapp.util, com.mycompany.myapp.web. Ant scripts are used to build the following libraries

    <pre>
    |– lib
    | |– myapp-ejb.jar
    | |– myapp-util.jar
    | |– myapp-web.war
    </pre>

    and the myapp.ear is built from those.

    What should I do to be able to debug the application with MyEclipse and Oracle 9iAS?

    I tried to create an enterprise application project with an ejb module and a web module. I copied the sources from com.mycompany.myapp.ejb to the ejb module and the sources from com.mycompany.myapp.web to the web module. Where should I put the util sources? They are part of the application and both ejb and web modules are using them.

    Regards,

    Sami

    #206138

    support-michael
    Keymaster

    MyEclipse structures Web and EJB projects of an EAR project such that Web projects are dependent upon and have visibility to EJB projects. This is consistent with how the J2EE appserver’s classloader model functions. Thus, if you place util classes in the EJB project, web project references to those resources should be resolved.

    #206176

    petem1030
    Member

    How do you place util classes in the EJB project?

    #206177

    support-michael
    Keymaster

    For the EJB project’s build properties you can add a new src folder and point it to the util src root of your codebase. Doing this will add the util classes to the classpath along with the EJB’s classes and make them visible to the web-project module(s) of your ME enterpise project. Also the MyEclipse deployer will package these classes with your EJB jar. We are adding dependent projects for an upcoming release that will provide much more flexibility in this process.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Debuggin an existing J2EE application

You must be logged in to post in the forum log in