Author |
Message
|
meetgaurav |
Posted: Fri Mar 19, 2010 4:49 am Post subject: JMSCMQ0001: WebSphere MQ call failed with compcode '2' |
|
|
Voyager
Joined: 08 Sep 2008 Posts: 94
|
Hi
I have a websphere APP Server(7.0 trail) installed in my local machine and the MQ installed in Unix machine.
While adding Queue connection factory I am getting below error. Please assit me.
""A connection could not be made to WebSphere MQ for the following reason: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED').""
Even I check this link
http://www.mqseries.net/phpBB2/viewtopic.php?t=51722&sid=7adb1bbd8c15db96233e71344be5c68b
Don't know add to add user group. Whether I need to add in Unix machine were MQ is insatlled ? |
|
Back to top |
|
 |
Mr Butcher |
Posted: Fri Mar 19, 2010 4:55 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
"A connection could not be made to WebSphere MQ " says it all _________________ Regards, Butcher |
|
Back to top |
|
 |
Vitor |
Posted: Fri Mar 19, 2010 5:15 am Post subject: Re: JMSCMQ0001: WebSphere MQ call failed with compcode '2' |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
meetgaurav wrote: |
Don't know add to add user group. Whether I need to add in Unix machine were MQ is insatlled ? |
It's all in the documentation. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
meetgaurav |
Posted: Sat Mar 20, 2010 3:41 am Post subject: |
|
|
Voyager
Joined: 08 Sep 2008 Posts: 94
|
I tried
setmqaut -m QMGR_NAME -t qmgr -p MeetGauravF +all (I executed this command in Unix machine where my Mq is insatlled and "MeetGauravF" is the windows username were the WAS is installed and accessing)
I got this error.
AMQ7026: A principal or group name was invalid.
Please assit me |
|
Back to top |
|
 |
Vitor |
Posted: Sat Mar 20, 2010 7:27 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
So...
meetgaurav wrote: |
I executed this command in Unix machine where my Mq is insatlled |
and
meetgaurav wrote: |
"MeetGauravF" is the windows username were the WAS is installed and accessing |
and you need assistance with the error
meetgaurav wrote: |
AMQ7026: A principal or group name was invalid.
|
I think it seems clear enough. A queue manager on a Unix machine is going to use Unix security not Windows. So you need to present a user id that's valid on the Unix machine not Windows.
Obviously you then need to present that user id when connecting, reading messages, etc. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
meetgaurav |
Posted: Sat Mar 20, 2010 9:26 am Post subject: |
|
|
Voyager
Joined: 08 Sep 2008 Posts: 94
|
Say for example If I suppose added u unix user id. Then how can I access that user id from windows.
Otherwise I need to install the application server in unix. But currently we don't have that facility.
I tried adding a user called mqm in unix and successfully added that. But still am facing the same error in Windows. |
|
Back to top |
|
 |
Vitor |
Posted: Sat Mar 20, 2010 10:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
meetgaurav wrote: |
Say for example If I suppose added u unix user id. Then how can I access that user id from windows. |
You'd need to supply it via the client connection. There are a number of ways of doing this, all described in the Client manual. Which you choose will depend on your set up, design, site standards, etc, etc.
meetgaurav wrote: |
I tried adding a user called mqm in unix and successfully added that. But still am facing the same error in Windows. |
I'm suprised and slightly worried to hear that. A user called mqm should have been added by the WMQ install process, who should own all the files in the WMQ installation & run the processes. If you've been able to add another user of that name something odd is happening.
And why did you think adding this user would help? You're adding a user that has no connection, technical or logical, to your application and thought that might help? If you like, I'll declare a user id for you on the site here. It will help just as much.
Don't randomly do things just to see if it helps. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|