JBoss Community

Re: Can't find a persistence unit named

created by Mitesh pandey in EJB3 - View the full discussion

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

 

-ejbModule

     -com

       --chapter3

            ---travelAgent.java

            ---travelAgentlocal.java

            ---travelAgentRemote.java 

       --domain

          --Cabin.java

     -meta-inf

          --manifest-mf

          --persistence.xml

 

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