ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » wsadmin JACL with WSAD 5.1

Post new topic  Reply to topic
 wsadmin JACL with WSAD 5.1 « View previous topic :: View next topic » 
Author Message
teal
PostPosted: Wed Mar 02, 2005 7:07 am    Post subject: wsadmin JACL with WSAD 5.1 Reply with quote

Acolyte

Joined: 15 Dec 2004
Posts: 66

Hello all,

I have successfully written a few wsadmin JACL's that run great on the actual WebSphere Application Server 5.1.

However I want to run the same scripts for my test env. (WSAD 5.1)
problem is the node on the actual WAS server is CP444 and the server is server1.
but on my wsad config the node is localhost and the server is server1.
Even though I change this to localhost, it continues to throw an exception. I tried the same scripts on a different WAS (changing the node accordingly) it worked perfect also.

So it seems that only with WSAD, I am having this issue.

the lines in the JACL I'm referring to are:



Code:

set SVR [$AdminConfig getid /Node:localhost/Server:server1/]
set MsgLSVC [$AdminConfig list MessageListenerService $SVR]




error:
Quote:

WASX7209I: Connected to process "server1" on node localhost using SOAP connector
; The type of process is: UnManagedProcess

Creating NorthStar1 MessageListenerPort1
WASX7017E: Exception received while running file "setMLP.jacl"; exception inform
ation: com.ibm.websphere.management.exception.ConfigServiceException
java.lang.NullPointerException: java.lang.NullPointerException


Last edited by teal on Wed Mar 02, 2005 4:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 02, 2005 7:29 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can't really use the normal administration methods to administer a server defined under WSADs WebSphere Test Environment.

It's not quite a real WAS, from an administration point of view.

You should be able to do everything you want from the Server Configuration screen inside WSAD.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
teal
PostPosted: Wed Mar 02, 2005 7:42 am    Post subject: Reply with quote

Acolyte

Joined: 15 Dec 2004
Posts: 66

thanks for the reply Jeff.

I found a post at developerworks that is saying:

Quote:

basically JACL/wsadmin is not supported with the WSAD TestEnvironment. Out of the box it does NOT work.

There is one single thing you have to do to make it work:
copy the whole folder structure of [WSAD_DIR]\runtimes\[YOUR_WAS_VERSION]\config\templates to [YOUR_WORKSPACE]\servers\[YOUR_SERVER]\templates.

Thats it!


but haven't quite gotten it to run yet either.

So you are saying there is no way to run scripts to create my JNDI object(QCF's Qdest's etc) in WSAD 5.1?

all must be entered manually through the wsad Admin console?

thanks again.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 02, 2005 8:04 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Let me try and be clear.

In WSAD, in the Server perspective, if you double-click your server in the list on the Server Configuration View, it will open up the Server Configuration for your server.

As far as I know, this window is the only place you can properly administer a WTE server.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 02, 2005 11:21 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Embedded MQ setup can be done through server tab config.

MQ JNDI setup on WSAD is really only done easily through the ADMIN Console.
Now you can look up the created XML file and determine the patterns created. If you have a high number of objects to be created you might be able to create the XML snippet and insert it into the respective resources config file.

DO NOT change the resource file without having taken a backup to fall back to. Do not change the resource file with the app server running.

Enjoy
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Wed Mar 02, 2005 11:43 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

fjb_saper wrote:
MQ JNDI setup on WSAD is really only done easily through the ADMIN Console.



But of course, you have to enable the Admin console IN the Server Config tab FIRST.

I wonder if that is also necessary to get the earlier note about copying templates from {WSAD}.../runtimes.... to {WORKSPACE}.../wte-server-folder.... to work.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
teal
PostPosted: Wed Mar 02, 2005 4:00 pm    Post subject: Reply with quote

Acolyte

Joined: 15 Dec 2004
Posts: 66

Hey Fellas,

just a note, but I have my wsadmin JACl scripts working perfectly with WSAD 5.1 now.

I just followed the instructions from that previous post I found at developer works and VOILA!

..so now we can automate all the JNDI object creation for my QCF's Qdest's etc for WAS and WSAD without tediuously doing it through the console.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 03, 2005 5:34 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

First you said the instructions didn't work, and then you said the instructions did work.

What was different - how did you "fix" it?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
teal
PostPosted: Thu Mar 03, 2005 7:55 am    Post subject: Reply with quote

Acolyte

Joined: 15 Dec 2004
Posts: 66

well, I said

Quote:

but haven't quite gotten it to run yet either.


not, the instructions don't work.

I was basically putting the templates structure down in the server1 directory where I thought the person was actually getting to.

It actually needed to be put the higher level SERVER1.wsc to work

hope this helps other people.

I guess the botton line is you can use wsadmin to automate you configuration in WSAD 5.1 as well as regular WAS, You are not forced to use the admin cosole or wsad serverconfig screen.

cheers!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » wsadmin JACL with WSAD 5.1
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.