[jboss-user] [EJB 3.0] - Re: entityManager is null

Wolfgang Knauf do-not-reply at jboss.com
Wed Mar 7 11:14:56 EST 2007


Hi Sami,

your bean and persistence.xml in the same jar file ?

Your persistence.xml was probably only a snippet ? I miss the xml document root "persistence":

<?xml version="1.0" encoding="UTF-8"?>
  | <persistence xmlns="http://java.sun.com/xml/ns/persistence"
  | 	<persistence-unit name="MessageServer" transaction-type="jta">
  | 	...
  | 	</persistence-unit>
  | </persistence> 

Hope this helps

Wolfgang

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025849#4025849

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025849



More information about the jboss-user mailing list