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
-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
[
http://community.jboss.org/message/619796#619796]
Start a new discussion in EJB3 at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]