JOnAS 5.1.5 and JSR-250 annotations with Spring 3.0.5
Celinio Fernandes <[email protected]> Tue, 13 Sep 2011 06:45:13 -0700 (PDT)
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
--0-928175347-1315921513=:61558 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 class=3D"com.aa.bb.cc.application.i= mpl.ManageTraceImpl" =0A=A0=A0=A0 =A0=A0=A0 scope=3D"singleton" />=0A=0AI k= eep getting the following error :=0Aorg.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.Manage= DemandeDelegate/manageTraceApplication=0A=0AIt's like it's looking for an e= nvironment variable manageTraceApplication in the JNDI registry.=0A=0ADo i = need to modify something in Jonas to avoid that ?=0AAny clue ?=0A=0AThanks = for helping.=0A --0-928175347-1315921513=:61558 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">Hi,<br>I am trying to= inject some Spring managed beans in some classes using the @Resource annot= ation, that is part of the JSR-250.<br><br> @Resource<br>= ManageTrace manageTraceApplication;<br><br>In my Spring = XML file, I have definied the managed bean :<br><br> <= bean id=3D"manageTraceApplication"<br> = class=3D"com.aa.bb.cc.application.impl.ManageTraceImpl" <br> &n= bsp; scope=3D"singleton" /><br><br>I keep getting the= following error :<br>org.ow2.jonas.deployment.web.WebContainerDeploymentDe= scException: jonas-resource missing for res-ref-name com.aa.bb.cc.presentat= ion.server.ManageDemandeDelegate/manageTraceApplication: jonas-resource mis= sing 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.<br></div></body= ></html> --0-928175347-1315921513=:61558--