3 Replies Latest reply on Oct 31, 2008 12:39 AM by Jerrold Eads

    EntityManager and @PersistenceContext not found

    Jerrold Eads Newbie
      After building and deploying my app based on an Oracle database on JBoss 5.0.0.CR2 using jboss-seam-2.1.0.GA I can view the standard
      SEAM Home page but after logging in using admin/"blank" when I try to view one of the lists links on the top of the home page I get this error:
      2008-10-30 09:17:44,078 ERROR [facelets.viewhandler] (http-127.0.0.1-8080-2) Error Rendering View[/CompaniesList.xhtml]
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: companiesList
           at org.jboss.seam.Component.newInstance(Component.java:2066)
           at org.jboss.seam.Component.getInstance(Component.java:1948)
           at org.jboss.seam.Component.getInstance(Component.java:1910)
           at org.jboss.seam.Component.getInstance(Component.java:1904)
           at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
           at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
           at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
           at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
           at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
      ...
      Caused by: java.lang.IllegalArgumentException: EntityManagerFactory not found in JNDI : java:/piTechABACEntityManagerFactory
           at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:231)
           at org.jboss.seam.persistence.ManagedPersistenceContext.initEntityManager(ManagedPersistenceContext.java:78)
           at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:107)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
      ...
      Caused by: javax.naming.NameNotFoundException: piTechABACEntityManagerFactory not bound
           at org.jnp.server.NamingServer.getBinding(NamingServer.java:564)
           at org.jnp.server.NamingServer.getBinding(NamingServer.java:572)
           at org.jnp.server.NamingServer.getObject(NamingServer.java:578)
           at org.jnp.server.NamingServer.lookup(NamingServer.java:317)
           at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)

      Any help would be greatly appreciated.

      Jerry