[jboss-user] [EJB 3.0] - Re: one persistence.xml multiple jars with entity beans

jc7442 do-not-reply at jboss.com
Mon May 14 04:31:47 EDT 2007


I'm afraid it has not been fixed in 4.2.

I've just download it. I still have the exception:

  | 10:25:07,787 WARN  [ServiceController] Problem starting service persistence.units:ear=itests-ear-1.0-SNAPSHOT.ear,unitName=audittrail
  | java.lang.RuntimeException: error trying to scan <jar-file>: file:/D:/jboss-4.2.0.GA/bin/babar.j2ee-1.0-SNAPSHOT.jar
  |         at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:619)
  |         at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:338)
  |         at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)
  |         at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)

My persistence.xml is:

  | ?xml version="1.0" encoding="UTF-8"?>
  | <persistence>
  |    <persistence-unit name="demo">
  |       ...
  |    </persistence-unit>
  |    <persistence-unit name="audittrail">
  |       <jta-data-source>java:/MyDS</jta-data-source>
  |       <properties>
  |           <property name="hibernate.hbm2ddl.auto" value="update"/>
  |       </properties>
  |       <jar-file>babar.j2ee-1.0-SNAPSHOT.jar</jar-file>
  |    </persistence-unit>
  | </persistence>

Is there a workaround for that ?

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

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



More information about the jboss-user mailing list