[jboss-user] [EJB 3.0] - Re: There is no default persistence unit in this deployment

davestar do-not-reply at jboss.com
Fri Jan 16 15:16:56 EST 2009


Thanks Everyone.
Thanks jaikiran! it worked when i moved the persistence.xml to the META-INF within the EJB jar.

I also found with my existing file structure with the persistence.xml at the top level META-INF in the ear file.  It works if I add the unitName to the
@PersistenceContext annotation.
eg: 
@PersistenceContext(unitName=UNIT_NAME)

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

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



More information about the jboss-user mailing list