4 Replies Latest reply on Jan 3, 2013 8:40 AM by John Franey

    can jboss as7.1 recognize and deploy a JPA-entity-only sub-deployment?

    John Franey Novice

      In my app, I have a jar file with jpa entities only, and another jar with ejb beans.  The ejb beans references classes in the entities jar.  The deploy fails.  The references to the entities are not resolved.

       

      john@isidore:~/projects/sdp-model/sdp-model-ear/target$ jar tvf sdp-model-ear-2.0.5.4-SNAPSHOT.ear

           0 Wed Jan 02 17:19:48 EST 2013 META-INF/

         123 Wed Jan 02 17:19:46 EST 2013 META-INF/MANIFEST.MF

           0 Wed Jan 02 13:12:06 EST 2013 lib/

         124 Wed Jan 02 17:19:46 EST 2013 META-INF/jboss-deployment-structure.xml

         149 Wed Jan 02 17:19:46 EST 2013 META-INF/jboss-classloading.xml

      172830 Wed Jan 02 13:12:06 EST 2013 lib/jasypt-1.7.1.jar

      129522 Wed Jan 02 13:12:06 EST 2013 lib/usertype.core-3.0.0.GA.jar

      12342 Wed Jan 02 16:01:02 EST 2013 lib/sdp-model-constraints-2.0.5.4-SNAPSHOT.jar

      51479 Wed Jan 02 13:12:06 EST 2013 lib/usertype.spi-3.0.0.GA.jar

      46123 Wed Jan 02 13:12:06 EST 2013 lib/jasypt-hibernate4-1.9.0.jar

      570478 Wed Jan 02 13:12:06 EST 2013 lib/joda-time-2.1.jar

      187495 Wed Jan 02 16:01:02 EST 2013 sdp-model-entities-2.0.5.4-SNAPSHOT.jar

      33012 Wed Jan 02 17:19:46 EST 2013 sdp-model-beans-2.0.5.4-SNAPSHOT.jar

           0 Wed Jan 02 17:19:48 EST 2013 META-INF/maven/

           0 Wed Jan 02 17:19:48 EST 2013 META-INF/maven/xxxxxxxxx/

           0 Wed Jan 02 17:19:48 EST 2013 META-INF/maven/xxxxxxxxx/sdp-model-ear/

        2289 Wed Jan 02 13:09:20 EST 2013 META-INF/maven/xxxxxxxxx/sdp-model-ear/pom.xml

         134 Wed Jan 02 17:19:46 EST 2013 META-INF/maven/xxxxxxxxx/sdp-model-ear/pom.properties

       

      I tried different settings in jboss-deployment-structure.xml and none worked, so, I decided to deploy the same as above WITHOUT the ejb beans module (a deployable named test.ear).  The deploy succeeds, but the log file does not show that sdp-model-entities was deployed or even seen.  This tells me that jboss does not recognize the sdp-model-entities.jar sub-deployment.  Why?

       

      john@isidore:~/projects/sdp-model/sdp-model-ear/target$ jar tvf test.ear

           0 Wed Jan 02 19:47:02 EST 2013 META-INF/

          71 Wed Jan 02 19:47:02 EST 2013 META-INF/MANIFEST.MF

         124 Wed Jan 02 17:19:46 EST 2013 META-INF/jboss-deployment-structure.xml

           0 Wed Jan 02 17:19:48 EST 2013 META-INF/maven/

           0 Wed Jan 02 17:19:48 EST 2013 META-INF/maven/xxxxxxxxx/

           0 Wed Jan 02 17:19:48 EST 2013 META-INF/maven/xxxxxxxxx/sdp-model-ear/

        2289 Wed Jan 02 13:09:20 EST 2013 META-INF/maven/xxxxxxxxx/sdp-model-ear/pom.xml

         134 Wed Jan 02 17:19:46 EST 2013 META-INF/maven/xxxxxxxxx/sdp-model-ear/pom.properties

         149 Wed Jan 02 17:19:46 EST 2013 META-INF/jboss-classloading.xml

           0 Wed Jan 02 13:12:06 EST 2013 lib/

      172830 Wed Jan 02 13:12:06 EST 2013 lib/jasypt-1.7.1.jar

      129522 Wed Jan 02 13:12:06 EST 2013 lib/usertype.core-3.0.0.GA.jar

      12342 Wed Jan 02 16:01:02 EST 2013 lib/sdp-model-constraints-2.0.5.4-SNAPSHOT.jar

      51479 Wed Jan 02 13:12:06 EST 2013 lib/usertype.spi-3.0.0.GA.jar

      46123 Wed Jan 02 13:12:06 EST 2013 lib/jasypt-hibernate4-1.9.0.jar

      570478 Wed Jan 02 13:12:06 EST 2013 lib/joda-time-2.1.jar

      187495 Wed Jan 02 16:01:02 EST 2013 sdp-model-entities-2.0.5.4-SNAPSHOT.jar

       

       

      Attached is a log file from this attempt.

       

      The sdp-model-entities has jpa entity classes (java classes marked with @Entity), no javax.ejb annotations, no @PersistenceContext, and a persistence.xml file.

       

      Thanks,

      John