[jboss-user] [EJB 3.0] - Persistent unit problem
ravisoni1986
do-not-reply at jboss.com
Tue Nov 20 07:26:44 EST 2007
Hello,
When I am trying to deploy my sample application in EJB3 the I am getting following error
17:38:46,013 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:jar=test.jar,name=Bank,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:unitName=test
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:unitName=test
State: NOTYETINSTALLED
Depends On Me:
jboss.j2ee:jar=test.jar,name=Bank,service=EJB3
My persistence.xml file is:-
<?xml version="1.0" encoding="UTF-8"?>
| <persistence xmlns="http://java.sun.com/xml/ns/persistence"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
| version="1.0">
| <persistence-unit name="test">
| <jta-data-source>java:/eCMDataSource</jta-data-source>
| </properties-->
| </persistence-unit>
| </persistence>
I am doing injection like this
@PersistenceContext(unitName="test")
private EntityManager manager=null;
When I was running my client then it was throwing NameNotFoundException.
Please help me..
Thanks,
Ravi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106346#4106346
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106346
More information about the jboss-user
mailing list