[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Failed to find persistence unit

2008-12-18 Thread ubersoldat
This is getting annoying. Why does JBoss follows an alphabetic order when doing the deployment? Shouldn't it follow the order given in application.xml? Now another bean called BeanB which depends on BeanK isn't being deployed. F%* View the original post :

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Failed to find persistence unit

2008-12-18 Thread ubersoldat
BTW, BeanB calls BeanK, which has the PU_K. That's why it isn't being deployed. BeanB (for some reason) wants the PU_K registered, but until BeanK isn't deployed, the PU_K won't be accessible. This is very frustrating. Three days to migrate from Jboss 4 to 5. View the original post :

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Failed to find persistence unit

2008-12-18 Thread ubersoldat
Hell, I just repeat the Persistence Unit declaration in every JAR and things start working... well, I get a zillion (PU_K is alredy registered), but it works. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4197422#4197422 Reply to the post :

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Failed to find persistence unit

2008-12-17 Thread ubersoldat
I still don't know why EJB_3 must know anything about the persistence units that don't belong to it. Anyway, I fixed this by adding a persistence.xml file to the ear. I get a resource already registered error at deployment, but things work fine. View the original post :