Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JMS and Websphere

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get a strange Exception when looking up a QueueConnectionFactory from an EJB in Websphere.
I have added the factory to Websphere namespace using the administration console (web).
Also put it in the deployment descriptor.
What have I done wrong???
W NMSV0605E: A Reference object looked up from the context "domainRoots/UnspecifiedDomainName/legacyRoot" with the name "MyQueueConnectionFactory" was sent to the JNDI Naming Manager and an exception resulted.
Reference data follows:
Reference Factory Class Name: progress.message.jclient.AdministeredObjectFactory
Reference Factory Class Location URLs: <null>
Reference Class Name: progress.message.jclient.QueueConnectionFactory
Type: brokerURL
Content: localhost
Type: connectID
Content: ""
Type: defaultUserName
Content:
Type: defaultPassword
Content:
Type: clientID
Content: ""
Type: versionID
Content: 3.5.1
Type: randomizeBrokers
Content: false
Type: loadBalancing
Content: false
Exception data follows:
java.lang.ExceptionInInitializerError: java.lang.ClassCastException: progress.message.zclient.prBundle
at progress.message.zclient.prAccessor.getResource(Unknown Source)
at progress.message.zclient.prAccessor.getString(Unknown Source)
at progress.message.zclient.SessionConfig.<clinit>(Unknown Source)
at progress.message.jclient.BrokerName.BX_(Unknown Source)
at progress.message.jclient.BrokerName.<init>(Unknown Source)
at progress.message.jclient.QueueConnectionFactory.<init>(Unknown Source)
at progress.message.jclient.AdministeredObjectFactory.vJ_(Unknown Source)
at progress.message.jclient.AdministeredObjectFactory.getObjectInstance(Unknown Source)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:782)
at com.ibm.ejs.ns.jndi.CNContextImpl.processResolveResults(CNContextImpl.java:1599)
at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup(CNContextImpl.java:1475)
at com.ibm.ejs.ns.jndi.CNContextImpl.lookup(CNContextImpl.java:1129)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:128)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory.getObjectInstance(IndirectJndiLookupObjectFactory.java:193)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
at com.ibm.ws.naming.urlbase.UrlContextHelper.isReference(UrlContextHelper.java:119)
at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup(UrlContextHelper.java:248)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1185)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1162)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1214)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory.getObjectInstance(IndirectJndiLookupObjectFactory.java:193)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
at com.ibm.ws.naming.urlbase.UrlContextHelper.isReference(UrlContextHelper.java:119)
at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup(UrlContextHelper.java:240)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1185)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1162)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1214)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at dk.bdata.basis.server.MessageSenderServerSide.createConnection(MessageSenderServerSide.java:73)
at dk.bdata.basis.server.MessageSenderServerSide.sendTextMessage(MessageSenderServerSide.java:109)
at dk.bdata.henvendelse.server.HenvendelseServerSide.findByID(HenvendelseServerSide.java:894)
at dk.bdata.henvendelse.server.HenvendelseSession.findByID(HenvendelseSession.java:103)
at dk.bdata.henvendelse.server.EJSRemoteStatelessHenvendelseSessionRemote.findByID(EJSRemoteStatelessHenvendelseSessionRemote.java:79)
at dk.bdata.henvendelse.server._EJSRemoteStatelessHenvendelseSessionRemote_Tie._invoke(_EJSRemoteStatelessHenvendelseSessionRemote_Tie.java:151)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:515)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2377)
at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:186)
at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)
 
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it a message bean?
EJB 2.0 is not supported in WebSphere (not until Websphere 5.0)
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming you are using MQSeries as the JMS provider have you got the JMS jars (mq.jar, mqjms.jar, providerutil.jar) on the nodes classpath?
 
A wop bop a lu bop a womp bam boom! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic