Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [Persistence, JBoss/CMP, Hibernate,
 Database] - Fails to deploy persistence units

scott.stark@jboss.org

2007-08-07


Hi all,
I?m getting problem when deploying an Entity bean. Hope anyone can help me out with this one.

Jboss 4.2.1.GA
Jdk1.5

Error message when deploying the bean (start the default configuration):

07:45:38,769 INFO [EARDeployer] Started J2EE application: file:/Users/persegersten/Dev/jboss-4.2.1.GA/server/default/deploy/mytest.ear
07:45:38,770 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:ear=mytest.ear,jar=mytest-server-ejb.jar,name=BookTestBean,service=EJB3
State: NOTYETINSTALLED
I Depend On:
  persistence.units:unitName=mytest

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:unitName=mytest
State: NOTYETINSTALLED
Depends On Me:
  jboss.j2ee:ear=mytest.ear,jar=mytest-server-ejb.jar,name=BookTestBean,service=EJB3

It seams that my persistence unit doesn?t get installed and there is a circular dependency that prevents it from be installed. I?ve defined the persistence-unit in the persistence.xml (and is packed in META-INF of the mytest-server-ejb.jar). I?ve attached the persistence.xml file. Maybe the persistence unit should be deployed ?outside? the bean?

Does anyone know what?s wrong???
Thanks for any help.
Per

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071449
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.