9 Replies Latest reply on Jan 23, 2008 5:56 PM by Srinivasan N. Raguraman

    problem with multiple seam component jars in a WAR

    Alex Sun Newbie

      i want to divide my web application into some modules, so i have some seam component jar each with Entity classes, my problem is that Entity in module jar can not be loaded or mapped by JPA, why?

      my WAR looks like :
      ---------------------------------------------

      my-application.war/
       META-INF/
       MANIFEST.MF
       WEB-INF/
       web.xml
       components.xml
       faces-config.xml
       pages.xml
       lib/
       jboss-seam.jar
       jboss-seam-ui.jar
       jboss-el.jar
       jsf-facelets.jar
       jsf-api.jar
       jsf-impl.jar
       ...
       classes/
       persistence.xml
      
       my-module1.jar/
       META-INF/
       MANIFEST.MF
       components.xml(blank)
       org/
       jboss/
       module1/
       User.class
       Login.class
       LoginBean.class
       Register.class
       RegisterBean.class
       seam.properties
       ...
       my-module2.jar/
       META-INF/
       MANIFEST.MF
       components.xml(blank)
       org/
       jboss/
       module2/
       Entity2.class
       seam.properties
       ...
       login.jsp
       register.jsp
       ...