[jboss-user] [EJB 3.0] - Re: Problem in Deployment in JBoss 4.0.4

azhurakousky do-not-reply at jboss.com
Tue Jul 25 20:44:50 EDT 2006


Did you declare persistence-unit element in your persistence.xml?
i.e.,

  | <persistence>
  |    <persistence-unit name="phx4EJB">
  | 	  <jta-data-source>java:/MySqlDS</jta-data-source>
  |       <properties>
  |          . . . . .
  |       </properties>
  |    </persistence-unit>
  | </persistence>
  | 
  | 

It seems like you are telling your PersistenceContext, pointing it to persistence-unit phx4EJB @PersistenceContext(unitName="phx4EJB")
, but EJB3 deployer can not find it.

I was able to replicate it by doing just that.

 
Regards

Oleg Zhurakousky

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

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



More information about the jboss-user mailing list