[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: 5.0.0CR1: deployment error with @PersistenceContext and

jaikiran do-not-reply at jboss.com
Mon Jul 7 06:41:50 EDT 2008


"jaikiran" wrote : I too see the same exception. Looks like a bug. 
  | 
  | 

I guess its not a bug. I just read the @PersistenceContext reference here http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-annotations.html#PersistenceContext.

You should be using unitName attribute and not the name attribute, in this case. So the bean should be changed to:

  | @SuppressWarnings("unused")
  | 	@PersistenceContext(unitName="hskaPersistence")
  | 	private EntityManager em;

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

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



More information about the jboss-user mailing list