[jboss-user] [EJB 3.0] - How to get this (very simple) tutorial to work in JBoss 4.2.
do-not-reply at jboss.com
Thu May 17 10:58:50 EDT 2007
I am trying for hours already to get this tutorial to work in JBoss 4.2.0:
I always get a NPE with that:
@PersistenceUnit(name="EJBProject1") EntityManagerFactory emf;
(inside a method)
EntityManager em1 = emf.createEntityManager(); // <== This causes a NullPointerException
Maybe its related to this: http://www.jboss.com/index.html?module=bb&op=viewforum&f=221
but I can't figure out how to fix it. Any help is appreciated.
The eclipse project files can be downloaded here: http://hellekalek.com/diverses/workspace.zip
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046525#4046525
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046525
More information about the jboss-user