[jboss-user] [EJB 3.0] - Single persistence.xml file with multiple EJB jars

DeanoUK do-not-reply at jboss.com
Thu Mar 27 08:06:47 EDT 2008


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139233#4139233

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139233



More information about the jboss-user mailing list