Hello
I hope someone can help me. I get the following error on deployment of my
bean.ear file on jboss-4.0.4RC1:
16:53:41,795 WARN [ServiceController] Problem starting service
jboss.j2ee:service=EJB3,module=calc
ulator_ejb.jar
java.lang.RuntimeException: Field javax.persistence.EntityManager
org.jboss.tutorial.stateless.bean
.CalculatorBean.em @PersistenceUnit in error: EMPTY STRING unitName but there
is no deployments in
scope
I can see, that the error occurs in the JNDI. When the server tries to locate
my EntityManager.
@PersistenceContext
EntityManager em;
Here is my persistence.xml:
<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="manager1" transaction-type="JTA">
org.hibernate.ejb.HibernatePersistence
<jta-data-source>java:/MySqlDS</jta-data-source>
<mapping-file>ormap.xml</mapping-file>
<jar-file>bean.jar</jar-file>
org.jboss.tutorial.entity.bean.Order
org.jboss.tutorial.entity.bean.LineItem
</persistence-unit>
Regards Ralph Michelsen, Denmark
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933414#3933414
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933414
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user