JOnAS 5.1.5 and JSR-250 annotations with Spring 3.0.5
Celinio Fernandes <[email protected]> Tue, 13 Sep 2011 13:11:31 -0700 (PDT)
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
--0-697164326-1315944691=:40550 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0AI am trying to inject some Spring managed beans in some classes using= the @Resource annotation, that is part of the JSR-250.=0A=0A=A0=A0=A0 @Res= ource=0A=A0=A0=A0 ManageTrace manageTraceApplication;=0A=0AIn my Spring XML= file, I have definied the managed bean :=0A=0A=A0=A0=A0 <bean id=3D"manage= TraceApplication"=0A=A0=A0=A0=A0=A0=A0=A0 class=3D"com.aa.bb.cc.application= .impl.ManageTraceImpl"=0A=A0=A0=A0=A0=A0=A0=A0 scope=3D"singleton" />=0A=0A= I keep getting the following error :=0Aorg.ow2.jonas.deployment.web.WebCont= ainerDeploymentDescException: jonas-resource missing for res-ref-name com.a= a.bb.cc.presentation.server.ManageDemandeDelegate/manageTraceApplication: j= onas-resource missing for res-ref-name com.aa.bb.cc.presentation.server.Man= ageDemandeDelegate/manageTraceApplication=0A=0AIt's like it's looking for a= n environment variable manageTraceApplication in the JNDI registry.=0A=0ADo= i need to modify something in Jonas to avoid that ?=0AAny clue ?=0A=0AThan= ks for helping.=0A --0-697164326-1315944691=:40550 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:ti= mes new roman, new york, times, serif;font-size:12pt"><div>Hi,<br>I am tryi= ng to inject some Spring managed beans in some classes using the @Resource = annotation, that is part of the JSR-250.<br><br> @Resourc= e<br> ManageTrace manageTraceApplication;<br><br>In my Sp= ring XML file, I have definied the managed bean :<br><br> = <bean id=3D"manageTraceApplication"<br> &n= bsp; class=3D"com.aa.bb.cc.application.impl.ManageTraceImpl"<br> = ; scope=3D"singleton" /><br><br>I ke= ep getting the following error :<br>org.ow2.jonas.deployment.web.WebContain= erDeploymentDescException: jonas-resource missing for res-ref-name com.aa.b= b.cc.presentation.server.ManageDemandeDelegate/manageTraceApplication: jona= s-resource missing for res-ref-name com.aa.bb.cc.presentation.server.ManageDemandeDelegate/manageTraceApplicat= ion<br><br>It's like it's looking for an environment variable manageTraceAp= plication in the JNDI registry.<br><br>Do i need to modify something in Jon= as to avoid that ?<br>Any clue ?<br><br>Thanks for helping.</div></div></bo= dy></html> --0-697164326-1315944691=:40550--