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 » WebSphere Process Server (WID/WPS/WAS+) » Creating Scrip to install App using wsadmin

Post new topic  Reply to topic
 Creating Scrip to install App using wsadmin « View previous topic :: View next topic » 
Author Message
chauhan_vin1
PostPosted: Thu Jan 29, 2009 2:44 pm    Post subject: Creating Scrip to install App using wsadmin Reply with quote

Apprentice

Joined: 24 Feb 2006
Posts: 36
Location: Phoenix AZ

Hi All,

I am creating a script to install/uninstall an EAR file to process server using the wsadmin $AdminApp task .

I am getting weird error eventhough everythign is fine :

here is my script :
-----------------------------------------------------------------------------
SET pathProfile=C:\IBM\WebSphere\ProcServer\profiles\ProcSrv01\
SET pathbuild=C:\EAR\
SET authStmt=-user eaisupport -password EASuser1
call %pathProfile%bin\wsadmin.bat %authStmt% -c "$AdminApp install %pathbuild%testdataApp.ear"

call %pathProfile%bin\wsadmin.bat %authStmt% -c "$AdminConfig save"
----------------------------------------------------------------------------------

Error i am getting is :

-------------------------------------------------------------------------------

C:\>call C:\IBM\WebSphere\ProcServer\profiles\ProcSrv01\bin\wsadmin.bat -user ea
isupport -password EASuser1 -c "$AdminApp install C:\EAR\testdataApp.ear"
WASX7209I: Connected to process "server1" on node AZ11VMEAS033Node01 using SOAP
connector; The type of process is: UnManagedProcess
WASX7015E: Exception running command: "$AdminApp install C:\EAR\testdataApp.ear"
; exception information:
com.ibm.ws.scripting.ScriptingException: WASX7115E: Cannot read input file "C:\
\C;EAR estdataApp.ear"

---------------------------------------------------------------------

How is the Ear file C:\EAR\testdataApp.ear is getting modified to C:\
\C;EAR estdataApp.ear , and where the the t og testdataApp.ear going ????


Can someone help...this seems to be some bug in WPS $AdminApp task or what ???

Its WPS6.0.2
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
fde
PostPosted: Thu Feb 05, 2009 12:51 am    Post subject: Reply with quote

Acolyte

Joined: 05 Jul 2007
Posts: 65

In Java, the \ char ist treated as an escape character for the subsequent character. That would explain the missmatch.
In http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/txml_launchscript.html they are using the / for windows.
If the string containing windows paths is somehow passed to a javacontext you should use the / in general.
_________________
Global warming is an unintentional side effect of SOA's hotness.
-- http://soafacts.com/
a business integration methodology
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 » WebSphere Process Server (WID/WPS/WAS+) » Creating Scrip to install App using wsadmin
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.