microsoft / vsts-ibm-websphere-extension

VSTS Extension to integrate with IBM WebSphere Application Server
Other
8 stars 16 forks source link

Not able to deploy war file using IBM task #8

Open sriramdasbalaji opened 6 years ago

sriramdasbalaji commented 6 years ago

Hi,

I am trying to deploy war file to IBM websphere from VSTS release. I am getting below error. 2018-01-29T07:30:07.9178584Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files (x86)\IBM\WebSphere\AppServer\bin\wsadmin.bat" -username **** -password **** -host IBMWAS.f2qfizqmojpu3apl2cxgrzzkxb.tx.internal.cloudapp.net -port 8880 -conntype SOAP -c "AdminConfig.getid('/Deployment:myshuttledev/');"" 2018-01-29T07:30:15.9865651Z WASX7209I: Connected to process "server1" on node IBMWASNode01 using SOAP connector; The type of process is: UnManagedProcess 2018-01-29T07:30:15.9866360Z WASX7015E: Exception running command: "AdminConfig.getid('/Deployment:myshuttledev/');"; exception information: 2018-01-29T07:30:15.9866739Z com.ibm.bsf.BSFException: error while eval'ing Jacl expression: 2018-01-29T07:30:15.9867004Z invalid command name "AdminConfig.getid('/Deployment:myshuttledev/')" 2018-01-29T07:30:15.9867433Z while executing 2018-01-29T07:30:15.9867673Z "AdminConfig.getid('/Deployment:myshuttledev/')" 2018-01-29T07:30:15.9896674Z Found existing app myshuttledev, update. 2018-01-29T07:30:15.9932428Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files (x86)\IBM\WebSphere\AppServer\bin\wsadmin.bat" -username **** -password **** -host IBMWAS.f2qfizqmojpu3apl2cxgrzzkxb.tx.internal.cloudapp.net -port 8880 -conntype SOAP -c "AdminApp.update('myshuttledev', 'app', '[-operation update -contents c:/Users/****/Downloads/vsts-agent-win-x64-2.126.0/_work/r1/a/Javaproject CI/site/myshuttledev.war ]'); AdminConfig.save();"" 2018-01-29T07:30:18.8002697Z WASX7209I: Connected to process "server1" on node IBMWASNode01 using SOAP connector; The type of process is: UnManagedProcess 2018-01-29T07:30:24.2158344Z WASX7015E: Exception running command: "AdminApp.update('myshuttledev', 'app', '[-operation update -contents c:/Users/****/Downloads/vsts-agent-win-x64-2.126.0/_work/r1/a/Javaproject CI/site/myshuttledev.war ]'); AdminConfig.save();"; exception information: 2018-01-29T07:30:24.2159248Z com.ibm.bsf.BSFException: error while eval'ing Jacl expression: 2018-01-29T07:30:24.2223735Z invalid command name "-operation" 2018-01-29T07:30:24.2298473Z while executing 2018-01-29T07:30:24.2310472Z "-operation update -contents c:/Users/****/Downloads/vsts-agent-win-x64-2.126.0/_work/r1/a/Javaproject CI/site/myshuttledev.war " 2018-01-29T07:30:24.2312003Z invoked from within 2018-01-29T07:30:24.2312489Z "AdminApp.update('myshuttledev', 'app', '[-operation update -contents c:/Users/****/Downloads/vsts-agent-win-x64-2.126.0/_work/r1/a/Javaproject CI/s..." 2018-01-29T07:30:24.8122669Z ##[error]Error: C:\Program Files (x86)\IBM\WebSphere\AppServer\bin\wsadmin.bat failed with return code: 103 2018-01-29T07:30:24.8127890Z ##[section]Finishing: Deploy to IBM WebSphere

And also I am trying to do the same form Wsadmin command line utility using below commands wsadmin>$AdminApp update myshuttledev app {-operation update -contents c:/users/vmadmin/downloads/myshuttledev.war}; $AdminConfig save

$AdminConfig save this command is throwing below error $AdminConfig save"; exception information: com.ibm.websphere.management.exception.ConfigServiceException com.ibm.ws.sm.workspace.WorkSpaceException: RepositoryException while retry updating documents in master repository

Please let us know how to resolve this errors

Thanks Sriramdas Balaji

ParvinGill-V21863 commented 3 years ago

how did you fix the issue