[jboss-user] [JBoss Seam] - problem configuring SMPC

amitev do-not-reply at jboss.com
Sat Aug 11 19:46:32 EDT 2007


Hi all. I'm trying to configure SMPC on glass fish

This is from components.xml

  |   <core:managed-persistence-context name="em"
  |                                       auto-create="true"
  |                                       persistence-unit-jndi-name="java:/SeamGenProject">
  |     </core:managed-persistence-context>
  | 

This is from persistence.xml

  | <persistence-unit name="SeamGenProject">
  | .....
  | 

As exception i get 


  | 
  | java.lang.IllegalArgumentException: EntityManagerFactory not found in JNDI
  |         at org.jboss.seam.core.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:164)
  |         at org.jboss.seam.core.ManagedPersistenceContext.initEntityManager(ManagedPersistenceContext.java:77)
  |         at org.jboss.seam.core.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:105)
  |         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)
  |         at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
  |         at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
  |         at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
  |         at org.jboss.seam.Component.unwrap(Component.java:1860)
  |         at org.jboss.seam.Component.getInstance(Component.java:1657)
  |         at org.jboss.seam.Component.getInstance(Component.java:1610)
  |         at org.jboss.seam.Component.getValueToInject(Component.java:1885)
  |         at org.jboss.seam.Component.injectAttributes(Component.java:1368)
  |         at org.jboss.seam.Component.inject(Component.java:1195)
  |         at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  |         at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  |         at org.jboss.seam.interceptors.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:54)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  |         at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  |         at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
  |         at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
  |         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)
  |         at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:560)
  |         at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:470)
  |         at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:192)
  |         at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3922)
  |         at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
  |         at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:114)
  |         at $Proxy331.begin(Unknown Source)
  |         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)
  |         at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
  |         at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  |         at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:72)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
  |         at org.jboss.seam.interceptors.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:40)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  |         at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
  |         at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:50)
  |         at org.javassist.tmp.java.lang.Object_$$_javassist_3.begin(Object_$$_javassist_3.java)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 
  | Caused by: javax.naming.NameNotFoundException: No object bound to name java:/SeamGenProject
  |         at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:807)
  |         at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:205)
  |         at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:313)
  |         at javax.naming.InitialContext.lookup(InitialContext.java:351)
  |         at org.jboss.seam.core.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:160)
  |         ... 113 more
  | 
  | 

Idea what's wrong. I'm using seam 1.2.1.GA

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

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



More information about the jboss-user mailing list