tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stx_g <st...@yahoo.it>
Subject EJB injection issue
Date Fri, 04 May 2012 17:02:37 GMT
Hi All,
  
  I’m developing an application that use EJB and JAX-RS.

  Using Maven, I package the application in a war archive and deploy it to
TomEE+. 

  Sometimes it works very well but sometimes some EJBs are not injected
inside rest web service.

  In catalina.out log I found : 

-------------------------------
INFO: Auto-linking resource-ref 'java:comp/env/WdR2DS' in bean
EjbGenericDbTable to Resource(id=WdR2DS)
May 4, 2012 2:34:35 PM org.apache.openejb.config.JndiEncInfoBuilder
buildEjbRefs
WARNING: Unresolved ejb reference
"java:comp/env/it.kitelabs.wdr2.rs.RSRicercaCorrente/rc" in bean
"EJBMyBatisDb".  Will attempt resolution again at runtime.
May 4, 2012 2:34:35 PM org.apache.openejb.config.JndiEncInfoBuilder
buildEjbRefs
WARNING: Unresolved ejb reference
"java:comp/env/it.kitelabs.wdr2.rs.RSRicercaCorrente/rc" in bean
"EJBSessionManager".  Will attempt resolution again at runtime.
May 4, 2012 2:34:35 PM org.apache.openejb.config.JndiEncInfoBuilder
buildEjbRefs
WARNING: Unresolved ejb reference
"java:comp/env/it.kitelabs.wdr2.rs.RSRicercaCorrente/rc" in bean
"EJBRicercaCorrente".  Will attempt resolution again at runtime.
May 4, 2012 2:34:35 PM org.apache.openejb.config.JndiEncInfoBuilder
buildEjbRefs
WARNING: Unresolved ejb reference
"java:comp/env/it.kitelabs.wdr2.rs.RSRicercaCorrente/rc" in bean
"EJBAuthService".  Will attempt resolution again at runtime.
May 4, 2012 2:34:35 PM org.apache.openejb.config.JndiEncInfoBuilder
buildEjbRefs
WARNING: Unresolved ejb reference
"java:comp/env/it.kitelabs.wdr2.rs.RSRicercaCorrente/rc" in bean
"EJBProgettoRF".  Will attempt resolution again at runtime.
May 4, 2012 2:34:35 PM org.apache.openejb.config.JndiEncInfoBuilder
buildEjbRefs
WARNING: Unresolved ejb reference
"java:comp/env/it.kitelabs.wdr2.rs.RSRicercaCorrente/rc" in bean
"EjbGenericDbTable".  Will attempt resolution again at runtime.
May 4, 2012 2:34:35 PM org.apache.openejb.config.JndiEncInfoBuilder
buildEjbRefs
WARNING: Unresolved ejb reference
"java:comp/env/it.kitelabs.wdr2.rs.RSRicercaCorrente/rc" in bean
"/home/Users/stefano/apache-tomee-plus-1.0.0/webapps/wdr2".  Will attempt
resolution again at runtime.
May 4, 2012 2:34:35 PM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application
"/home/Users/stefano/apache-tomee-plus-1.0.0/webapps/wdr2.war" loaded.
-------------------------------


And when rest web service end up with exceptions like that.

-------------------------------
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at
org.apache.openejb.server.cxf.rs.OpenEJBPerRequestPojoResourceProvider$InitialContextWrapper.invoke(OpenEJBPerRequestPojoResourceProvider.java:102)
        ... 37 more
Caused by: javax.naming.NameNotFoundException: Name
"comp/env/it.kitelabs.wdr2.rs. RSRicercaCorrente/rc" not found.
        at
org.apache.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:195)
        at
org.apache.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:149)
        ... 42 more
-------------------------------

  I can’t understand why!! 

  Could you help me, please?


- Stefano

--
View this message in context: http://openejb.979440.n4.nabble.com/EJB-injection-issue-tp4609164.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message