[jboss-user] [JBoss Seam] - Re: Tomcat + Embedded EJB
KnisterPeter
do-not-reply at jboss.com
Thu Jun 14 05:32:20 EDT 2007
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
More information about the jboss-user
mailing list