-
1. Re: Failed to find persistence unit
Alejandro Ayuso Dec 17, 2008 7:24 AM (in response to Alejandro Ayuso)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. -
2. Re: Failed to find persistence unit
Alejandro Ayuso Dec 18, 2008 11:59 AM (in response to Alejandro Ayuso)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&%* -
3. Re: Failed to find persistence unit
Alejandro Ayuso Dec 18, 2008 12:02 PM (in response to Alejandro Ayuso)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. -
4. Re: Failed to find persistence unit
Alejandro Ayuso Dec 18, 2008 12:05 PM (in response to Alejandro Ayuso)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.