[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:32:25 EDT 2008


Just tried out with a simple application. I too see the same exception. Looks like a bug. 

If your persistence.xml is in the same jar as the beans, then as a workaround, change your injection code as follows:

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

Specifying a "name" attribute to the @PersistenceContext injection seems to be creating the issue.


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

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



More information about the jboss-user mailing list