facebook

Stale reference to javaee.jar?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #281523 Reply

    msmalley
    Member

    I’m trying to debug a custom (ice)faces component and needed to see Sun’s jsf-ri source. I realized that my eclipse project was linking to the MyEclipse library Java EE 5, which contains javaee.jar, jsf-api.jar, jsf-ri.jar, yet my app runs in jboss 4.2.1 which contains it’s own jsf jars (not necessarily different, but I want to be sure I’m linking the right source with the right jars.) So I removed Java EE 5 from the build path and created a user library that contains references to the jsf jars from jboss.

    That part went fine. Now I’m debugging my app but I can’t get to the jsf sources I linked to those jars. When I try to step into UIComponentBase.encodeBegin I get the “no source attachment” page, which is looking in javaee.jar! However if I manually walk through the code and ctrl+click on UIComponent.encodeBegin the source appears as it should.

    #281525 Reply

    msmalley
    Member

    I guess I should clarify a little…when I ctrl+click on the method I want to step into I’m taken to the reference of the interface UIComponent, which is implemented in UIComponentBase, the class the debugger is trying to find. So maybe there’s a discrepancy there, but both of those are implemented in jsf-api.jar so you’d think if it finds one it finds both.

    #281527 Reply

    msmalley
    Member

    A little more testing revealed that if I navigate to UIComponentBase.class (in jsf-api.jar that I’ve linked to in my user lib) through the package explorer and set a break point the app will break as expected, but still shows the source attachment not found page for javaee.jar.

    #281569 Reply

    Loyal Water
    Member

    Can you make sure if your using the JBoss JARs and you removed our Java EE 5 libs from the build path. Also make sure you have attached the source for all the JBoss jars accordingly.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Stale reference to javaee.jar?

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