When I change my EJB to have the EntityMangager annotated with @In instead of @PerstistenceContext it does get deployed in the ejb server , but then no EntityManager is injected and I get the following exception when calling a method on that bean:
org.jboss.seam.RequiredException: In attribute requires non-null value: register.em | org.jboss.seam.Component.getValueToInject(Component.java:1919) | org.jboss.seam.Component.injectAttributes(Component.java:1368) | org.jboss.seam.Component.inject(Component.java:1195) | org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46) | org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27) | org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103) | org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53) | sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | java.lang.reflect.Method.invoke(Method.java:597) | org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118) | org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) | org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) | org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) | org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) | ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054256#4054256 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054256 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
