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

    Single persistence.xml file with multiple EJB jars

    Dean Pullen Novice

      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">
       <property name="hibernate.hbm2ddl.auto" value="false"/>
       <property name="com.intellij.javaee.persistence.datasource" value="Datasource"/>

      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

      etc etc

      Can anyone help?

      JBoss 4.2.2.GA

        1 2 3 Previous Next