Hey, I have a curious problem. I have 1 app which provides 3 services, one remote (FrontController) and two local services (TestService, StringConverter). FrontController depends on TestService and TestService depends on StringConverter. When I inject the dependencies with @Inject I get an error (see below). If I deploy the app wihtout the FrontController depending on TestService everything works fine. It also works when I use @EJB instead of @Inject in the FrontController to inject the StringConverter. Any suggestion what I do wrong? There are no circular dependencies.
Error message: org.apache.openejb.OpenEJBException: Creating application failed: /opt/openejb/apps/one-0.0.1-S ... Caused by: org.apache.openejb.OpenEJBRuntimeException: javax.enterprise.inject.UnsatisfiedResolutionException: Api type [de.pgalise.ejb.example.one.TestService] is not found with the qualifiers Qualifiers: [@javax.enterprise.inject.Default()] for injection into Field Injection Point, field name : testService, Bean Owner : [DefaultFrontController, Name:null, WebBeans Type:ENTERPRISE, API Types:[java.lang.Object], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]] at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:325) at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:108) ... 52 more Caused by: javax.enterprise.inject.UnsatisfiedResolutionException: Api type [de.pgalise.ejb.example.one.TestService] is not found with the qualifiers Qualifiers: [@javax.enterprise.inject.Default()] for injection into Field Injection Point, field name : testService, Bean Owner : [DefaultFrontController, Name:null, WebBeans Type:ENTERPRISE, API Types:[java.lang.Object], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]] at org.apache.webbeans.util.InjectionExceptionUtils.throwUnsatisfiedResolutionException(InjectionExceptionUtils.java:92) at org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:98) at org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:197) at org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1156) at org.apache.openejb.cdi.BeansDeployer.validate(BeansDeployer.java:262) at org.apache.openejb.cdi.BeansDeployer.validateInjectionPoints(BeansDeployer.java:215) at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:286) -- View this message in context: http://openejb.979440.n4.nabble.com/Access-the-local-instance-of-a-remote-ejb-tp4658727p4658763.html Sent from the OpenEJB User mailing list archive at Nabble.com.