Monday, October 15, 2012

WebSphere: PCT command line

Problem:
wctcmd.bat -tool pct -defLocPathname "C:\Program Files (x86)\IBM\WebSphere\Plugins" -defLocName webserver1 -response C:\apps\dmgr.rsp


Launching tool pct ...
com.ibm.wsspi.profile.WSProfileException: File wasprofile.properties could not be located.

Resolution:

The solution to the problem is to use  "double" backward-slashes to replace the single backward-slashes in the paths in your response file. e.g,  d:\windows\a --> d:\\windows\\a

i.e.:

configType=local_distributed
enableAdminServerSupport=true
enableWinService=true
ihsAdminPort=8008
ihsWindowsStartupType=auto
mapWebServerToApplications=true
profileName=Dmgr01
wasExistingLocation=C:\\Program Files (x86)\\IBM\\WebSphere\\AppServer
wasMachineHostName=WASABCCWDVAPP02
webServerConfigFile1=C:\\Program Files (x86)\\IBM\\HTTPServer\\conf\\httpd.conf
webServerDefinition=webserver1
webServerHostName=WASABCCWDVAPP02.goweekend.ca
webServerInstallArch=32
webServerPortNumber=80
webServerSelected=ihs
webServerType=IHS

No comments:

Post a Comment