1 2 Previous Next 15 Replies Latest reply on Jul 21, 2011 2:16 PM by prasad.deshpande Go to original post
      • 15. Re: [EAR deployment] War classes cannot see EJB classes
        prasad.deshpande

        guinotphil wrote:

         

        If I want my war (MyTest.WAR.war) to see the classes in my jar (MyTest.EJB.jar), I have to edit the MANIFEST of all the jars which are in EarContent/lib ??!!

        No, editing just any one jar in Ear/lib is enough.

         

        Isn't there a simplier way to add the jar in the ear classpath ?! (As said before, adding the <module name="deployment.MyTestEAR.ear.MyTestEJB.jar" /> depency in the EAR deployement descriptio does not work)

         

        Yes, adding your jar in ear/lib is the simplest way. However, if you decide not to put in ear/lib, then your classes must be a module (in ear modules are ear/lib, ejb jar or war.. simple jar that is neither in ear/lib nor contain any ejb is not a module)  As Jaikiran above said, you'll need to have atleast one ejb in MyTest.EJB.jar to qualify as module & then you can add dependency using <module.... tag. Other way is to either put it in ear/lib or make reference in any of jar in ear/lib.

         

        Refer this https://docs.jboss.org/author/display/AS7/Developer+Guide#DeveloperGuide-EARClassLoading

        1 2 Previous Next