MattDuPlessis
asked on
Problem injecting JMS resource into stateless session bean on websphere
This works on Glassfish but throws exception on Websphere.
[2/11/11 13:57:42:864 SAST] 0000002c InjectionProc E CWNEN0044E: A resource reference binding could not be found for the brandGroup/jms/NearFastHan dlerQueue resource reference, defined for the brandGroup/ejb/NearFastHan dlerEnqueu er component.
[2/11/11 13:57:42:865 SAST] 0000002c InjectionProc E CWNEN0044E: A resource reference binding could not be found for the brandGroup/jms/NearFastHan dlerFactor y resource reference, defined for the brandGroup/ejb/NearFastHan dlerEnqueu er component.
[2/11/11 13:57:42:906 SAST] 0000002c FfdcProvider I com.ibm.ws.ffdc.impl.FfdcP rovider logIncident FFDC1003I: FFDC Incident emitted on /opt/IBM/WebSphere/AppServ er/profile s/AppSrv01 /logs/ffdc /server1_2 f41ff3c_11 .02.11_13. 57.42.8663 8785.txt com.ibm.ws.injectionengine .Injection EngineImpl .processBi ndings 480
[2/11/11 13:57:42:910 SAST] 0000002c InjectionEngi E CWNEN0011E: The injection engine failed to process bindings for the metadata.
[2/11/11 13:57:42:912 SAST] 0000002c FfdcProvider I com.ibm.ws.ffdc.impl.FfdcP rovider logIncident FFDC1003I: FFDC Incident emitted on /opt/IBM/WebSphere/AppServ er/profile s/AppSrv01 /logs/ffdc /server1_2 f41ff3c_11 .02.11_13. 57.42.9113 8786.txt com.ibm.ws.util.ComponentN ameSpaceHe lper.popul ateJavaNam eSpace 640
[2/11/11 13:57:42:914 SAST] 0000002c ComponentName E CNTR0125E: Unable to process injection information for class: [class com.fundamo.messaging.jms. NearFastHa ndlerEnque uer].
[2/11/11 13:57:43:452 SAST] 0000002c FfdcProvider I com.ibm.ws.ffdc.impl.FfdcP rovider logIncident FFDC1003I: FFDC Incident emitted on /opt/IBM/WebSphere/AppServ er/profile s/AppSrv01 /logs/ffdc /server1_2 f41ff3c_11 .02.11_13. 57.42.9153 8787.txt com.ibm.ws.metadata.ejb.EJ BMDOrchest rator.fini shBMDInit 810
[2/11/11 13:57:43:455 SAST] 0000002c EJBMDOrchestr E CNTR0035E: EJB container caught com.ibm.wsspi.injectioneng ine.Inject ionExcepti on: Failed to process bindings for metadata
at com.ibm.ws.injectionengine .Injection EngineImpl .processBi ndings(Inj ectionEngi neImpl.jav a:488)
at com.ibm.ws.injectionengine .Injection EngineImpl .processIn jectionMet aData(Inje ctionEngin eImpl.java :285)
at com.ibm.ws.util.ComponentN ameSpaceHe lper.popul ateJavaNam eSpace(Com ponentName SpaceHelpe r.java:806 )
at com.ibm.ws.util.ComponentN ameSpaceHe lper.popul ateJavaNam eSpace(Com ponentName SpaceHelpe r.java:519 )
at com.ibm.ws.metadata.ejb.EJ BMDOrchest rator.fini shBMDInit( EJBMDOrche strator.ja va:1842)
at com.ibm.ws.runtime.compone nt.EJBCont ainerImpl. finishDefe rredBeanMe taData(EJB ContainerI mpl.java:5 034)
at com.ibm.ws.runtime.compone nt.EJBCont ainerImpl. initialize DeferredEJ B(EJBConta inerImpl.j ava:4832)
at com.ibm.ejs.container.Home OfHomes$1. run(HomeOf Homes.java :404)
at com.ibm.ws.security.util.A ccessContr oller.doPr ivileged(A ccessContr oller.java :118)
at com.ibm.ejs.container.Home OfHomes.ge tHome(Home OfHomes.ja va:401)
at com.ibm.ejs.container.Home OfHomes.ge tHome(Home OfHomes.ja va:337)
at com.ibm.ws.ejbcontainer.in jection.fa ctory.EJBL inkObjectF actory.get ObjectInst ance(EJBLi nkObjectFa ctory.java :208)
at com.ibm.ws.injectionengine .processor .EJBInject ionBinding .getInject ionObject( EJBInjecti onBinding. java:749)
at com.ibm.wsspi.injectioneng ine.Inject ionTargetF ield.injec t(Injectio nTargetFie ld.java:24 5)
at com.ibm.ws.injectionengine .Injection EngineImpl .inject(In jectionEng ineImpl.ja va:579)
at com.ibm.ejs.container.Stat elessBeanO .initializ e(Stateles sBeanO.jav a:315)
at com.ibm.ejs.container.CMSt atelessBea nOFactory. create(CMS tatelessBe anOFactory .java:45)
at com.ibm.ejs.container.EJSH ome.create BeanO(EJSH ome.java:1 028)
at com.ibm.ejs.container.EJSH ome.create BeanO(EJSH ome.java:1 138)
at com.ibm.ejs.container.acti vator.Unca chedActiva tionStrate gy.atActiv ate(Uncach edActivati onStrategy .java:84)
at com.ibm.ejs.container.acti vator.Acti vator.acti vateBean(A ctivator.j ava:599)
at com.ibm.ejs.container.EJSC ontainer.p reInvokeAc tivate(EJS Container. java:3919)
at com.ibm.ejs.container.EJSC ontainer.E jbPreInvok e(EJSConta iner.java: 3304)
at com.fundamo.businessevents .service.E JSLocal0SL BusinessEv entService Local_faa9 ae79.gener ateId(EJSL ocal0SLBus inessEvent ServiceLoc al_faa9ae7 9.java)
at com.fundamo.interceptors.B usinessEve ntIntercep tor.create BusinessEv ent(Busine ssEventInt erceptor.j ava:153)
at com.fundamo.interceptors.B usinessEve ntIntercep tor.logMet hodEntry(B usinessEve ntIntercep tor.java:5 1)
at sun.reflect.GeneratedMetho dAccessor4 4.invoke(U nknown Source)
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:59 7)
at com.ibm.ejs.container.inte rceptors.I nterceptor Proxy.invo keIntercep tor(Interc eptorProxy .java:227)
at com.ibm.ejs.container.inte rceptors.I nvocationC ontextImpl .proceed(I nvocationC ontextImpl .java:566)
at com.ibm.ejs.container.inte rceptors.I nvocationC ontextImpl .doAroundI nvoke(Invo cationCont extImpl.ja va:217)
at com.ibm.ejs.container.EJSC ontainer.i nvoke(EJSC ontainer.j ava:5720)
at com.fundamo.mno.service.EJ SRemote0SL MnoService Local_d4f3 7c4c.inser tMno(EJSRe mote0SLMno ServiceLoc al_d4f37c4 c.java)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:59 7)
at com.ibm.rmi.util.ProxyUtil $4.run(Pro xyUtil.jav a:692)
at java.security.AccessContro ller.doPri vileged(Na tive Method)
at com.ibm.rmi.util.ProxyUtil .invokeWit hClassLoad ers(ProxyU til.java:6 90)
at com.ibm.CORBA.iiop.ClientD elegate.in voke(Clien tDelegate. java:1156)
at $Proxy82.insertMno(Unknown Source)
at com.fundamo.mno.service._M noServiceR emote_Stub .insertMno (_MnoServi ceRemote_S tub.java)
at com.fundamo.mno.service.Mn oServicePr oxy.insert Mno(MnoSer viceProxy. java:48)
at com.fundamo.mno.controller .MaintainM noControll er.save(Ma intainMnoC ontroller. java:229)
at com.fundamo.web.BaseBean.b uttonType( BaseBean.j ava:472)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:59 7)
at org.apache.el.parser.AstVa lue.invoke (AstValue. java:131)
at org.apache.el.MethodExpres sionImpl.i nvoke(Meth odExpressi onImpl.jav a:277)
at com.sun.facelets.el.TagMet hodExpress ion.invoke (TagMethod Expression .java:68)
at javax.faces.event.MethodEx pressionAc tionListen er.process Action(Met hodExpress ionActionL istener.ja va:99)
at javax.faces.event.ActionEv ent.proces sListener( ActionEven t.java:88)
at javax.faces.component.UICo mponentBas e.broadcas t(UICompon entBase.ja va:760)
at javax.faces.component.UICo mmand.broa dcast(UICo mmand.java :372)
at javax.faces.component.UIVi ewRoot.bro adcastEven ts(UIViewR oot.java:4 58)
at javax.faces.component.UIVi ewRoot.pro cessApplic ation(UIVi ewRoot.jav a:763)
at com.sun.faces.lifecycle.In vokeApplic ationPhase .execute(I nvokeAppli cationPhas e.java:82)
at com.sun.faces.lifecycle.Ph ase.doPhas e(Phase.ja va:100)
at com.sun.faces.lifecycle.Li fecycleImp l.execute( LifecycleI mpl.java:1 18)
at com.icesoft.faces.webapp.h ttp.core.J sfLifecycl eExecutor. apply(JsfL ifecycleEx ecutor.jav a:18)
at com.icesoft.faces.webapp.h ttp.core.R eceiveSend Updates.re nderCycle( ReceiveSen dUpdates.j ava:132)
at com.icesoft.faces.webapp.h ttp.core.R eceiveSend Updates.se rvice(Rece iveSendUpd ates.java: 74)
at com.icesoft.faces.webapp.h ttp.core.R equestVeri fier.servi ce(Request Verifier.j ava:31)
at com.icesoft.faces.webapp.h ttp.common .standard. PathDispat cherServer .service(P athDispatc herServer. java:24)
at com.icesoft.faces.webapp.h ttp.servle t.BasicAda ptingServl et.service (BasicAdap tingServle t.java:16)
at com.icesoft.faces.webapp.h ttp.servle t.PathDisp atcher.ser vice(PathD ispatcher. java:23)
at com.icesoft.faces.webapp.h ttp.servle t.SessionD ispatcher. service(Se ssionDispa tcher.java :53)
at com.icesoft.faces.webapp.h ttp.servle t.SessionV erifier.se rvice(Sess ionVerifie r.java:26)
at com.icesoft.faces.webapp.h ttp.servle t.PathDisp atcher.ser vice(PathD ispatcher. java:23)
at com.icesoft.faces.webapp.h ttp.servle t.MainServ let.servic e(MainServ let.java:1 31)
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 831)
at com.icesoft.faces.webapp.x mlhttp.Blo ckingServl et.service (BlockingS ervlet.jav a:56)
at com.ibm.ws.webcontainer.se rvlet.Serv letWrapper .service(S ervletWrap per.java:1 443)
at com.ibm.ws.webcontainer.se rvlet.Serv letWrapper .service(S ervletWrap per.java:1 384)
at com.ibm.ws.webcontainer.fi lter.WebAp pFilterCha in.doFilte r(WebAppFi lterChain. java:104)
at com.ibm.ws.webcontainer.fi lter.WebAp pFilterCha in._doFilt er(WebAppF ilterChain .java:77)
at com.ibm.ws.webcontainer.fi lter.WebAp pFilterMan ager.doFil ter(WebApp FilterMana ger.java:8 52)
at com.ibm.ws.webcontainer.se rvlet.Serv letWrapper .handleReq uest(Servl etWrapper. java:785)
at com.ibm.ws.webcontainer.se rvlet.Serv letWrapper .handleReq uest(Servl etWrapper. java:443)
at com.ibm.ws.webcontainer.se rvlet.Serv letWrapper Impl.handl eRequest(S ervletWrap perImpl.ja va:175)
at com.ibm.ws.webcontainer.se rvlet.Cach eServletWr apper.hand leRequest( CacheServl etWrapper. java:91)
at com.ibm.ws.webcontainer.We bContainer .handleReq uest(WebCo ntainer.ja va:859)
at com.ibm.ws.webcontainer.WS WebContain er.handleR equest(WSW ebContaine r.java:155 7)
at com.ibm.ws.webcontainer.ch annel.WCCh annelLink. ready(WCCh annelLink. java:173)
at com.ibm.ws.http.channel.in bound.impl .HttpInbou ndLink.han dleDiscrim ination(Ht tpInboundL ink.java:4 55)
at com.ibm.ws.http.channel.in bound.impl .HttpInbou ndLink.han dleNewInfo rmation(Ht tpInboundL ink.java:3 84)
at com.ibm.ws.http.channel.in bound.impl .HttpICLRe adCallback .complete( HttpICLRea dCallback. java:83)
at com.ibm.ws.tcp.channel.imp l.AioReadC ompletionL istener.fu tureComple ted(AioRea dCompletio nListener. java:165)
at com.ibm.io.async.AbstractA syncFuture .invokeCal lback(Abst ractAsyncF uture.java :217)
at com.ibm.io.async.AsyncChan nelFuture. fireComple tionAction s(AsyncCha nnelFuture .java:161)
at com.ibm.io.async.AsyncFutu re.complet ed(AsyncFu ture.java: 138)
at com.ibm.io.async.ResultHan dler.compl ete(Result Handler.ja va:202)
at com.ibm.io.async.ResultHan dler.runEv entProcess ingLoop(Re sultHandle r.java:766 )
at com.ibm.io.async.ResultHan dler$2.run (ResultHan dler.java: 896)
at com.ibm.ws.util.ThreadPool $Worker.ru n(ThreadPo ol.java:15 27)
Caused by: com.ibm.wsspi.injectioneng ine.Inject ionExcepti on: CWNEN0044E: A resource reference binding could not be found for the following resource references [brandGroup/jms/NearFastHa ndlerQueue , brandGroup/jms/NearFastHan dlerFactor y], defined for the brandGroup/ejb/NearFastHan dlerEnqueu er component.
at com.ibm.wsspi.injectioneng ine.Inject ionProcess or.collect InjectionN BindingDat a(Injectio nProcessor .java:947)
at com.ibm.ws.injectionengine .Injection EngineImpl .processBi ndings(Inj ectionEngi neImpl.jav a:475)
... 98 more
and is throwing com.ibm.ejs.container.Cont ainerExcep tion: Failed to initialize BeanMetaData instance; nested exception is:
com.ibm.wsspi.injectioneng ine.Inject ionExcepti on: Failed to process bindings for metadata.
[2/11/11 13:57:42:864 SAST] 0000002c InjectionProc E CWNEN0044E: A resource reference binding could not be found for the brandGroup/jms/NearFastHan
[2/11/11 13:57:42:865 SAST] 0000002c InjectionProc E CWNEN0044E: A resource reference binding could not be found for the brandGroup/jms/NearFastHan
[2/11/11 13:57:42:906 SAST] 0000002c FfdcProvider I com.ibm.ws.ffdc.impl.FfdcP
[2/11/11 13:57:42:910 SAST] 0000002c InjectionEngi E CWNEN0011E: The injection engine failed to process bindings for the metadata.
[2/11/11 13:57:42:912 SAST] 0000002c FfdcProvider I com.ibm.ws.ffdc.impl.FfdcP
[2/11/11 13:57:42:914 SAST] 0000002c ComponentName E CNTR0125E: Unable to process injection information for class: [class com.fundamo.messaging.jms.
[2/11/11 13:57:43:452 SAST] 0000002c FfdcProvider I com.ibm.ws.ffdc.impl.FfdcP
[2/11/11 13:57:43:455 SAST] 0000002c EJBMDOrchestr E CNTR0035E: EJB container caught com.ibm.wsspi.injectioneng
at com.ibm.ws.injectionengine
at com.ibm.ws.injectionengine
at com.ibm.ws.util.ComponentN
at com.ibm.ws.util.ComponentN
at com.ibm.ws.metadata.ejb.EJ
at com.ibm.ws.runtime.compone
at com.ibm.ws.runtime.compone
at com.ibm.ejs.container.Home
at com.ibm.ws.security.util.A
at com.ibm.ejs.container.Home
at com.ibm.ejs.container.Home
at com.ibm.ws.ejbcontainer.in
at com.ibm.ws.injectionengine
at com.ibm.wsspi.injectioneng
at com.ibm.ws.injectionengine
at com.ibm.ejs.container.Stat
at com.ibm.ejs.container.CMSt
at com.ibm.ejs.container.EJSH
at com.ibm.ejs.container.EJSH
at com.ibm.ejs.container.acti
at com.ibm.ejs.container.acti
at com.ibm.ejs.container.EJSC
at com.ibm.ejs.container.EJSC
at com.fundamo.businessevents
at com.fundamo.interceptors.B
at com.fundamo.interceptors.B
at sun.reflect.GeneratedMetho
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at com.ibm.ejs.container.inte
at com.ibm.ejs.container.inte
at com.ibm.ejs.container.inte
at com.ibm.ejs.container.EJSC
at com.fundamo.mno.service.EJ
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at com.ibm.rmi.util.ProxyUtil
at java.security.AccessContro
at com.ibm.rmi.util.ProxyUtil
at com.ibm.CORBA.iiop.ClientD
at $Proxy82.insertMno(Unknown
at com.fundamo.mno.service._M
at com.fundamo.mno.service.Mn
at com.fundamo.mno.controller
at com.fundamo.web.BaseBean.b
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at org.apache.el.parser.AstVa
at org.apache.el.MethodExpres
at com.sun.facelets.el.TagMet
at javax.faces.event.MethodEx
at javax.faces.event.ActionEv
at javax.faces.component.UICo
at javax.faces.component.UICo
at javax.faces.component.UIVi
at javax.faces.component.UIVi
at com.sun.faces.lifecycle.In
at com.sun.faces.lifecycle.Ph
at com.sun.faces.lifecycle.Li
at com.icesoft.faces.webapp.h
at com.icesoft.faces.webapp.h
at com.icesoft.faces.webapp.h
at com.icesoft.faces.webapp.h
at com.icesoft.faces.webapp.h
at com.icesoft.faces.webapp.h
at com.icesoft.faces.webapp.h
at com.icesoft.faces.webapp.h
at com.icesoft.faces.webapp.h
at com.icesoft.faces.webapp.h
at com.icesoft.faces.webapp.h
at javax.servlet.http.HttpSer
at com.icesoft.faces.webapp.x
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.fi
at com.ibm.ws.webcontainer.fi
at com.ibm.ws.webcontainer.fi
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.We
at com.ibm.ws.webcontainer.WS
at com.ibm.ws.webcontainer.ch
at com.ibm.ws.http.channel.in
at com.ibm.ws.http.channel.in
at com.ibm.ws.http.channel.in
at com.ibm.ws.tcp.channel.imp
at com.ibm.io.async.AbstractA
at com.ibm.io.async.AsyncChan
at com.ibm.io.async.AsyncFutu
at com.ibm.io.async.ResultHan
at com.ibm.io.async.ResultHan
at com.ibm.io.async.ResultHan
at com.ibm.ws.util.ThreadPool
Caused by: com.ibm.wsspi.injectioneng
at com.ibm.wsspi.injectioneng
at com.ibm.ws.injectionengine
... 98 more
and is throwing com.ibm.ejs.container.Cont
com.ibm.wsspi.injectioneng
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ok ... good luck :-)
ASKER
Workaround to enable under both glassfish and WAS
http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14534664