Author |
Message
|
error_lee |
Posted: Tue Sep 14, 2004 12:48 am Post subject: failed to create MQQueueManager on AIX |
|
|
Newbie
Joined: 14 Sep 2004 Posts: 3
|
Has anyone ever encounter this problem? When WAS 4.0 startup, a exception thrown out:
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'jms.queue.manager'
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironm
ent.java:546)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1137)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:799)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:255)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:7
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueue
ConnectionFactory.java:142)
at jms.sample.JMSReceiverThread.init(JMSReceiverThread.java:72)
at jms.sample.JMSReceiverThread.run(JMSReceiverThread.java:117)
at java.lang.Thread.run(Thread.java:498)
I'm sure that this QManager jms.queue.manager has been created correctly, and this problem does not occoured on Win 2k and Linux platforms.
Is there any idea?
Thanks
error_lee@tom.com |
|
Back to top |
|
 |
Manikandan |
Posted: Tue Sep 14, 2004 3:18 am Post subject: |
|
|
Voyager
Joined: 07 Jul 2004 Posts: 78
|
Not sure how your setup is!!
Can u please let us know?. |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Sep 14, 2004 4:54 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Can you get the linked exception:
Code: |
} catch( JMSException je ) {
System.out.println("JMS Exception: " + je);
// check for a linked exception
Exception le = je.getLinkedException();
if (le != null) {
System.out.println("Linked exception: " + le);
}
}
|
I imagine that it will give you a 2059. I'd suggest that if you are running in client mode that you make sure your listener is running and that your connection factory is set correctly. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Sep 14, 2004 4:54 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What userid is WAS running as?
Does it have the necessary permissions to create a queue manager? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
JT |
Posted: Tue Sep 14, 2004 5:37 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
|
Back to top |
|
 |
error_lee |
Posted: Wed Sep 15, 2004 1:43 am Post subject: |
|
|
Newbie
Joined: 14 Sep 2004 Posts: 3
|
-------------------------------------------------------------------------
Use this script to create QCF and Q
-------------------------------------------------------------------------
def qcf(jms_sample_QCF) qmanager(jms.queue.manager)
# Define a WAS-specific QueueConnectionFactory for two-phase commit support to MQ
def wsqcf(jms_sample_XAQCF) qmanager(jms.queue.manager)
# Define Queues
def q(jms_sample_Q1) Qu(Q1)
def q(jms_sample_Q2) Qu(Q2)
# Display the current context
dis ctx
end
--------------------------------------------------
Use file system context
--------------------------------------------------
InitCtx> InitCtx>
InitCtx> InitCtx> InitCtx>
InitCtx> InitCtx> InitCtx>
InitCtx>
InitCtx> InitCtx> InitCtx>
Contents of InitCtx
.bindings java.io.File
a jms_sample_Q1 com.ibm.mq.jms.MQQueue
a jms_sample_XAQCF com.ibm.ejs.jms.mq.JMSWrapXAQueueConnectionFactory
a jms_sample_Q2 com.ibm.mq.jms.MQQueue
a jms_sample_QCF com.ibm.mq.jms.MQQueueConnectionFactory
5 Object(s)
0 Context(s)
5 Binding(s), 4 Administered
InitCtx> InitCtx>
Stopping Websphere MQ classes for Java(tm) Message Service Administration
-------------------------
It's so strange that this problems only happened on AIX platform !! |
|
Back to top |
|
 |
|