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

DeanoUK do-not-reply at jboss.com
Thu Apr 3 11:09:16 EDT 2008


Persistence.xml:

  | <?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:/maindatabase</jta-data-source>
  | 		<jar-file>../ejbcommon.jar</jar-file>
  | 		<jar-file>../ejbmsp.jar</jar-file>		
  | 		<properties>			
  | 			<property name="hibernate.hbm2ddl.auto" value="false"/>
  | 			<property name="com.intellij.javaee.persistence.datasource" value="Datasource"/>
  | 		</properties>
  | 	</persistence-unit>
  | </persistence>
  | 
  | 

I can't post the server.log file, this would be huge. 

Suffice to say, it simply ends up with the below error, but without any previous error within the stack trace:




  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: persistence.units:unitName=msp-par
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  |     jboss.j2ee:ear=earmsp.ear,jar=ejbcommon.jar,name=AuditSe
  | ssion,service=EJB3
  |     jboss.j2ee:ear=earmsp.ear,jar=ejbcommon.jar,name=Company
  | Session,service=EJB3
  |     jboss.j2ee:ear=earmsp.ear,jar=ejbcommon.jar,name=Countri
  | esSession,service=EJB3
  |     jboss.j2ee:ear=earmsp.ear,jar=ejbcommon.jar,name=Dealers
  | Session,service=EJB3
  |     jboss.j2ee:ear=earmsp.ear,jar=ejbcommon.jar,name=UserLoc
  | alesSession,service=EJB3
  |     jboss.j2ee:ear=earmsp.ear,jar=ejbcommon.jar,name=Utility
  | Session,service=EJB3
  |     jboss.j2ee:ear=earmsp.ear,jar=ejbcommon.jar,name=EmailMa
  | nagerSession,service=EJB3
  |     jboss.j2ee:ear=earmsp.ear,jar=ejbcommon.jar,name=Vehicle
  | Session,service=EJB3
  | 

The package is laid out as I stated before:

earmsp.ear
----ejbcommon.jar
----ejbmsp.jar 


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

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



More information about the jboss-user mailing list