[jboss-user] [EJB3] - Re: Can't find a persistence unit named

Mitesh pandey do-not-reply at jboss.com
Sun Aug 7 06:19:20 EDT 2011

Mitesh pandey [http://community.jboss.org/people/mtshpandey] created the discussion

"Re: Can't find a persistence unit named"

To view the discussion, visit: http://community.jboss.org/message/619796#619796

Hi All,

I think the problem is with the java code where i am injecting the @persistencecontext(unit-name = "titan") private string entitymanager. 
When  i commented the injection. there was no issue with the jboss server . It started properly.

The folder structure are as follows


I think the problem is  with the folder structure where the persistence injection in the travelAgent is not able to access the persistence.xml

Reply to this message by going to Community

Start a new discussion in EJB3 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110807/00e52269/attachment.html 

More information about the jboss-user mailing list