Skip to Content
author's profile photo
Former Member

Ear to Ear reference

Howdy folks, We have Ear1 and Ear2. In Ear1 we have a class that is used by Ear2. We make an API reference to it for compile time but at deploy time we get a ClassDefNotFound. We do have Ear1 being referenced in Ear2's application-j2ee-engine.xml.

Question: Is the Ear to Ear reference only used to share EJB's ONLY or can we refer to other classes in the package?

Thanks,

Brian

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Oct 05, 2005 at 11:17 AM

    Hi Brian,

    I guess your EAR project contains ony your EJB and Web module project references. You actual classes in EJB or Web Module project. So, take reference of relative project instead of taking reference of EAR project.

    Regards.

    Bhavik

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Brian,

      Remove your java project from the used dc.

      Now add that java project once again.

      When you have added your java project as used dc in your ejb, there are various checkboxes for dependency check.

      There, uncheck deploy time and runtime check mark.

      It is checked by default. So, when you deploy it will check its dependancy and it is giving such error.

      Regards,

      Bhavik

      P.S. Don't forget to award points if it was helpful.