aspose file tools*
The moose likes Websphere and the fly likes JMSAdmin WebSphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "JMSAdmin WebSphere " Watch "JMSAdmin WebSphere " New topic
Author

JMSAdmin WebSphere

Richard Hu
Greenhorn

Joined: May 27, 2002
Posts: 5
Hi,
I had a problem when I tried to define a JNDI name of QueueConnectionFactory or Queue with JMSAdmin and WebSphere 4.0.1. My configuration is as following:
In JMSAdmin.config file:
INITIAL_CONTEXT_FACTORY=com.ibm.ejs.ns.jndi.CNInitialContextFactory
PROVIDER_URL=iiop://localhost:900
I used JMSAdmin -t -cfg JMSAdmin.config, and could define a context, such as MQ, but unable to bind a Queue or QueueConnectionFactory.
InitCtx> chg ctx(mq)
InitCtx/cn=mq> def qcf(MyQCF) qmgr(QM1)
Unable to bind object
I've started my MQ Series5.2(Windows2000) Server, and define Queue Manager QM1 and Queue Q1.
Check the trace file, get the following exception information:
com.ibm.mq.jms.admin.AdminObject@4eee9351 <== errorRaised() exit
10:18:24 [1032661104297] [P=73363 =0:CT] com.ibm.mq.jms.admin.JMSAdmin$Command@6045351 ==> getObjName() entry
10:18:24 [1032661104297] [P=73363 =0:CT] com.ibm.mq.jms.admin.JMSAdmin$Command@6045351 <== getObjName() exit
10:18:24 [1032661104307] [P=73363 =0:CT] com.ibm.mq.jms.admin.AdminService@32875351 ==> bind() entry
10:18:24 [1032661104317] [P=73363 =0:CT] com.ibm.mq.jms.services.psk.MessageCatalogue@3df11351 ==> getMessage(0)() entry
10:18:24 [1032661104317] [P=73363 =0:CT] com.ibm.mq.jms.services.psk.MessageCatalogue@3df11351 <== getMessage(0)() exit
10:18:24 [1032661104317] [P=73363 =0:CT] com.ibm.mq.jms.admin.JMSAdmin@5a7d1350 doDefine() java.lang.ClassCastException exception caught: com.ibm.ejs.ns.jndi.CNContextImpl
java.lang.ClassCastException: com.ibm.ejs.ns.jndi.CNContextImpl
at com.ibm.mq.jms.admin.AdminService.bind(AdminService.java:487)
at com.ibm.mq.jms.admin.JMSAdmin.doDefine(JMSAdmin.java:768)
at com.ibm.mq.jms.admin.JMSAdmin.execCommand(JMSAdmin.java:410)
at com.ibm.mq.jms.admin.JMSAdmin.commandLoop(JMSAdmin.java:337)
at com.ibm.mq.jms.admin.JMSAdmin.<init>(JMSAdmin.java:247)
at com.ibm.mq.jms.admin.JMSAdmin.main(JMSAdmin.java:1818)
Any suggestions will be appreicated. Thanks.


SCJP2<br />SCWCD<br />BEA Certified Specialist: Server
Antonio Soares
Greenhorn

Joined: Dec 30, 2009
Posts: 1
I know it is a little bit late, but try to change the .bindings perms to 777 using: chmod 777 .bindings
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMSAdmin WebSphere
 
Similar Threads
UnsatisfiedLinkError
JMSAdmin tool problem
Problem opening JMSAdmin tool
Need HELP configuring MQ/JMS environment on WSAD
MQSeries, JMS, WebSphere