[jboss-user] [EJB 3.0] - Re: Another NULL Pointer Exception on Entity Manager =/

PeterJ do-not-reply at jboss.com
Wed Feb 11 13:03:39 EST 2009

You are running a standalone client and loading ManagerBean as a POJO. In that environment annotations are not processed.

If you want to get this to work you need to package ManagerBean, Endereco and persistence.xml in an EJB JAR file and deploy it and then convert your client code to a servlet (for example), and invoke the EJB from there via JNDI. 

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

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

More information about the jboss-user mailing list