|
|
|
|
Re: Multiple JPA Persistences loading issue in JBOSS 5 [message #1065891 is a reply to message #1064486] |
Fri, 28 June 2013 03:29  |
Eclipse User |
|
|
|
Hi Chris Delahunt,
Thanking you for your reply.
Sorry for delay response...
Quote:Are you sure your issue is related to project B? The error doesn't seem to reference anything in project B, and I would assume that you would get issues accessing persistence-unit "Entity" from the PersistenceProvider class
When i am deploying only ProjectA or only ProjectB then it is executing successfully. But if i merged both the product then it is showing the above error.
Yes your are right, here the problem with persistence-unit problem. It is unable to call the "Entity" object.
"INFO [IportIBEntity] finding IptUsers instance with property: userCode, value: ADMIN"
If we can observe the above code, here "IportIBEntity" is the ProjectB's persistence-unit name. But "IptUsers" is the db table's pojo reference which was mentioned in ProjectA's persistence.xml
Quote:Does this happen when the server is restarted? On first deployment? How are you accessing the EntityManager and EMFs?
The above issue is showing when the JBOSS loading time.
I am accessing the EntityManager by using the code which was attached this post. (This code is for ProjectA)
[Updated on: Fri, 28 June 2013 03:39] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03262 seconds