1 2 3 Previous Next 30 Replies Latest reply on May 24, 2008 1:38 PM by gcshields

    Single persistence.xml file with multiple EJB jars

    deanouk

      Hi all,

      Trying to place the persistence.xml file in the ear META-INF, and adding the two EJB jars explicitely, like so:

      <?xml version="1.0" encoding="UTF-8"?>
      <persistence xmlns="http://java.sun.com/xml/ns/persistence">
       <persistence-unit name="msp-par">
       <jta-data-source>java:/@deployeddatabase@</jta-data-source>
       <jar-file>../msp-ejb.jar</jar-file>
       <jar-file>../msp-csi-ejb.jar</jar-file>
       <properties>
       <property name="hibernate.hbm2ddl.auto" value="false"/>
       <property name="com.intellij.javaee.persistence.datasource" value="Datasource"/>
       </properties>
       </persistence-unit>
      </persistence>
      


      Unforunately this causes JBoss to error on start, without an explicit cause:

      [27 Mar 2008 12:05:11] ERROR org.jboss.deployment.scanner.URLDeploymentScanner
      - Incomplete Deployment listing:
      
      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:ear=msp-ear.ear,jar=msp-csi-ejb.jar,name=AdminSurveyFacad
      eSession,service=EJB3
       State: NOTYETINSTALLED
      

      etc etc


      Can anyone help?

      JBoss 4.2.2.GA

        1 2 3 Previous Next