facebook

Unable to Debug EJBs [Closed]

💡
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 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #213123 Reply

    mmathias
    Member

    Eclipse : 3.8
    MyEclipse: 3.7
    Weblogic 8.1
    JDK 1.4.2

    I have an J2EE Application and has War and 2 EJB jar files. I can debug files from war file, But i cannot debug EJB which are in same ear file. It says EJB_Impl source not found and says Invalid class, But it shows variable values in debug window. Can you please point to to a documentation or tutorial as to How to Debug EJBs.

    Thanks

    #213205

    Scott Anderson
    Participant

    EJB_Impl is the container-generated skeleton class for your EJB and there isn’t any source for it. I think what you’ve tried to do is step through a call from the client all the way to the server. This can’t be done with full source since the classes are generated in memory by the server. To debug your EJB, just set a breakpoint in the EJB method you’re trying to call and hit the “continue” button. Once the container finally gets to your class, your breakpoint will be hit and your source displayed.

    #213323

    mmathias
    Member

    I did exactly the same, it still does not show me the source. When it hits the breakpoint, ‘Class File Editor’ window shows up and says ‘Source Not Found, There is no source file attached to the class file MyEJB.class’.

    Pleas advice what different step i need to do to make it work.

    Thanks

    #213376

    Scott Anderson
    Participant

    How are you deploying? Our exploded or packaged options or your own mechanism? From the sound of problem, it looks like there isn’t any symbolic information in the class file. This can happen if you changed your workbench compiler settings or are deploying using your own Ant build, for example.

    #213378

    Nabil Suleiman
    Participant

    I use XDoclet for my EJBs, and when I want a break point, I place it in the class I created, not the implemenations, not anything else. And run a test client and switch to the debug prospective.

    #213472

    mmathias
    Member

    I deploy it as a packaged ear file. The ear package has EJBs and Web. I can debug Web classes just fine. But not EJBs. I am using Eclipse to deploy too. I am not using any of external tools.

    #220644

    I am having the same issue , I deployed an exploded EAR in the applications dir of my domain . I can break in a servlet but not inside my own EJB code : I got :

    Source not found for ExtractionManager_tul4y2_Impl(ExtractionManagerBean).start() line: 295

    Thx

    #220646

    Riyad Kalla
    Member

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #220650

    What operating system and version are you running?
    WinXp SP1

    What Eclipse version and build id are you using? (Help > About Eclipse Platform)
    Version: 3.0.1
    Build id: 200409161125

    – Was Eclipse freshly installed for MyEclipse?
    Yes

    – Are any other external plugins installed?
    No

    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*

    8

    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)

    Version: 3.8.2
    What JDK version are you using to run Eclipse? (java -version)
    java version “1.4.2_04”

    What JDK version are you using to launch your application server?
    Version 1.4.2

    What steps did you take that resulted in the issue?
    debug perspective / launch wl 8 / deploy / post to a servlet ( which is calling an EJB)

    What application server are you using?
    Weblogic 8.1 SP3

    Are there any exceptions in the Eclipse log file? NO

    #220651

    Riyad Kalla
    Member

    Thank you herve. Is your entire app deployed under the WebLogic instance? (including the EJBs?) do you have the WL instance set to run in debug mode?

    Also try and shut down your app server, remove your deployment, rebuild all your projects and redeploy. Did that help?

    We have some enhancements comming for the source locater and remote debugging in the 3.8.3 release this week, so if that didn’t help I would ask that you wait and upgrade and see if 3.8.3 takes care of it.

    #220656

    Well , I deleted everything in the directory applications ( also .wldonotdelete ) and it just work perrfect !!!!!
    thx

    #220662

    Riyad Kalla
    Member

    Nice, I’m glad its working.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: Unable to Debug EJBs [Closed]

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