Git Product home page Git Product logo

vsts-ibm-websphere-extension's Introduction

Azure DevOps Extension for IBM WebSphere Application Server
Provides deployment task that automatically installs/updates enterprise applications in WebSphere Application Servers.
Install now!

Azure DevOps Extension for IBM WebSphere Application Server

This extension contains a deployment task which allows you to automate the installation and update of applications to IBM WebSphere Application Servers. This extension installs the following components:

  • A service endpoint for connecting to IBM WebSphere Application Server on Azure DevOps and Team Foundation Server 2017.
  • A build task to install / update enterprise applications on WebSphere Application Servers.

Prerequisites

  • In order to automate the installation and update of enterprise applications to WebSphere Application Servers, the build agent must have access to the 'wsadmin' commands. Please follow the IBM WebSphere document to setup the command environment. To check if the environment is setup correctly:
    • You can run wsadmin.sh(Linux) / wsadmin.bat(Windows) command from the terminal or command line respectively. Make sure IBM WebSphere bin/ directory is in the PATH.
    • Execute "wsadmin.sh -conntype SOAP -host <your_websphere_hostname> -port <your_websphere_SOAP_port> -username <your_username> -password <your_password> -c AdminControl.getNode()" on the build agent. It should return the node name of the IBM WebSphere Application Server.
    • You may need to create a profile in your build agent to make the command line work.

Quick Start

Once you have set up the WebSphere environment, perform the following steps to automate the deployment of applications to WebSphere Application Servers:

  1. Install the IBM WebSphere extension from the Team Services Marketplace.

  2. Go to your Azure DevOps or TFS project, click on the Build tab, and create a new build definition (the "+" icon) that is hooked up to your project's appropriate source repository.

  3. Click Add build step... and select the necessary tasks to generate your release assets (e.g. Maven, Gradle).

  4. Click Add build step... and select IBM WebSphere Deployment task from the Deploy category.

  5. Configure the IBM Websphere Deployment task with the desired authentication method, and the install / update options.

  6. Click the Queue Build button or push a change to your configured repository in order to run the newly defined build.

  7. Your Websphere application changes will now be automatically installed / updated to the WebSphere Application Servers!

IBM WebSphere Application Deployment Task

  1. Open your build definition and add the "IBM WebSphere Deployment" task. The task can be found in the 'Deploy' section.

    IBM WebSphere Deployment Task

  2. Details of the install / update deployment task. Note that this task includes both install and update cases. If the target application does not exist, it will install it; Otherwise it will update the target application.

    IBM WebSphere Deployment Task Details

    • Setup Connection Options.
    • Enter the application name.
    • Enter the update content path. This should be the path points to the application file. Wildcards can be used, but the pattern must resolve to exactly one file.
    • By default "Install Application If Not Exist" is checked. If the application does not exist, it will be first installed.
    • Enter the target cell, node, and application server name if this application is expected to be installed for the first time.
    • Enter the optional context root information. If left blank, the default context root will be "/your_application_name".
    • Enter the optional Web Module, Virtual Host, and URI information. If left blank, the task will attempt to extract this information automatically from the application file.
    • By default "Start Application" is checked. It will start the application after the installation.
  3. If you are certain that the target application already exists in the IBM WebSphere Application Server, you can uncheck the "Install Application If Not Exist". The task will then hide fields that are only relevant to installation:

    IBM WebSphere Update-only Task Details

Setup Connection Options

The tasks provide two options to connect to IBM WebSphere Application Server:

  1. Connecting with an "IBM WebSphere" endpoint.

    • This option is supported on Azure DevOps and Team Foundation Server 2017. On Team Foundation Server 2015, please use other options to connect.

    IBM websphere Endpoint

    • Connection name: name used to identify this connection.
    • Hostname / IP Address: IP address or the hostname of the computer on which the IBM WebSphere is running. The hostname must be resolvable by the build agent. Do not prefix with protocol names.
    • Port: SOAP port of the target WebSphere.
    • Username and Password: Administrative user name and password of the target WebSphere. Make you can use this pair to login the WebSphere console.
  2. Manually enter credentials.

    • The same fields from "IBM WebSphere" endpoint section are repeated within the task.

Support

Support for this extension is provided on our GitHub Issue Tracker. You can submit a bug report, a feature request or participate in discussions.

Contributing to the Extension

See the developer documentation for details on how to contribute to this extension.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Privacy Statement

The Microsoft Visual Studio Product Family Privacy Statement describes the privacy statement of this software.

vsts-ibm-websphere-extension's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vsts-ibm-websphere-extension's Issues

Prerequisites can have more information - use of wsadmin scripting-library

This extension makes use of wsadmin-scripting-library. Such as "AdminNodeManagement.syncActiveNodes()"

I originally built a wsadmin thin client

That is enough to pass the recommended precheck:
wsadmin.sh -conntype SOAP -host <your_websphere_hostname> -port <your_websphere_SOAP_port> -username <your_username> -password <your_password> -c AdminControl.getNode\(\)

However when I attempted to deploy to a cluster. The commands generated make use of the wsadmin-scripting-library
wsadmin.bat -username *** -password *** -host HOST-SERVER -port 8881 -conntype SOAP -c "AdminApp.install('D:/agent_work/app.ear', '[-appname APP-NAME -cluster APP_Cluster -MapWebModToVH [[""app.war"" ""app.war,WEB-INF/web.xml"" ""default_host""]] -contextroot appRoot ]'); AdminConfig.save(); AdminNodeManagement.syncActiveNodes(); AdminApplication.startApplicationOnCluster('APP-NAME', 'APP_Cluster');""

This would actually give me an error
WASX7015E: Exception running command: "AdminApp.install('D:/agent_work/app.ear', '[-appname APP-NAME -cluster APP_Cluster -MapWebModToVH [[""app.war"" ""app.war,WEB-INF/web.xml"" ""default_host""]] -contextroot appRoot ]'); AdminConfig.save(); AdminNodeManagement.syncActiveNodes(); AdminApplication.startApplicationOnCluster('APP-NAME', 'APP_Cluster');"; exception information: com.ibm.bsf.BSFException: exception from Jython: Traceback (most recent call last): File "<input>", line 1, in <module> NameError: name 'AdminNodeManagement' is not defined

I resolved this by copying the app_server_root/scriptLibraries into my wsadmin thin client

Improve the Prerequisites information by highlighting the use of wsadmin-scripting-library and/or adding another precheck
wsadmin.sh -conntype SOAP -host <your_websphere_hostname> -port <your_websphere_SOAP_port> -username <your_username> -password <your_password> -c AdminNodeManagement.listNodes()

Access denied issue

Hi All,

I've installed T24 TAFJ application on Websphere. While starting the server I'm getting below error in ffdc log and server failed to start. I've checked file permissions are good for this directory. Could anyone help me to fix this issue?

FFDC Exception:java.io.FileNotFoundException SourceId:com.ibm.ws.classloader.ClassLoaderUtils.addDependents ProbeId:246 Reporter:java.lang.Class@7931f7ba
java.io.FileNotFoundException: C:\Temenos\WAST24\T24\Lib\T24Lib. (Access is denied.)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:241)
at java.util.zip.ZipFile.(ZipFile.java:171)
at java.util.jar.JarFile.(JarFile.java:179)
at java.util.jar.JarFile.(JarFile.java:143)
at com.ibm.ws.classloader.ClassLoaderUtils.addDependents(ClassLoaderUtils.java:148)
at com.ibm.ws.classloader.ClassLoaderUtils.addDependents(ClassLoaderUtils.java:197)
at com.ibm.ws.classloader.ClassLoaderUtils.addDependentJars(ClassLoaderUtils.java:114)
at com.ibm.ws.classloader.ClassGraph.(ClassGraph.java:124)

Instead of password can we give ssh key

Hello,

By giving password we successfully deployed the artifact in UAT .
But in production password won't be provided. Can we provide ssh key instead of password .
If we modify in code will it work?
Request your input on this.

com.ibm.bsf.BSFException

I'm getting the following error when running my build:

com.ibm.bsf.BSFException: error while eval'ing Jacl expression:
invalid command name "-operation"
while executing
"-operation update -contents C:/agent/_work/2/s/RADTest/radtest.war "
invoked from within
"AdminApp.update('RADTestApp', 'app', '[-operation update -contents C:/agent/_work/2/s/RADTest/radtest.war ]')"

Nevertheless that same command works when running from wsadmin manually. Please help.

Thanks

Leo

Failure to install application. Wrong escaping?

We are trying to deploy a ear file using the plugin. The plugin fails to deploy due to a syntax error which I suspect has to do with escaping the parameters.
It only fails in case of installing no existing applications for the first time. Updating applications works though.

We are using WebSphere 8.5.5 installed in a W2012 server.

Here is the log:
error_log.txt

Here is my config:
config

Thanks

Unable to install war file in Websphere

Hi yacaovsnc,
Hope you are doing good.

trying to install war file on WebSphere. We are getting below issue.
Attached logs and Screenshot for the same.
error
task

WASX7015E: Exception running command: "AdminApp.install('D:/KMBLAgent/_work/r31/a/_KOTAKPG_PROD-Maven-CI (19)/drop/Kotakpg/target/kotakpg-0.0.1-SNAPSHOT.war', '[-appname kotakpg-0.0.1-SNAPSHOT_war -node Node_PG_GBM -server PG -cell Dmgr1_Cell -MapWebModToVH [["PaymentGateway" "kotakpg-0.0.1-SNAPSHOT.war,WEB-INF/web.xml" "default_host"]] -contextroot pgvsts ]'); AdminConfig.save(); appManager = AdminControl.queryNames('cell=Dmgr1_Cell,node=Node_PG_GBM,type=ApplicationManager,process=PG,*'); AdminControl.invoke(appManager, 'startApplication', 'kotakpg-0.0.1-SNAPSHOT_war');"; exception information:
com.ibm.websphere.management.application.client.AppDeploymentException: com.ibm.websphere.management.application.client.AppDeploymentException: [Root exception is org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException: IWAE0017E Unable to replace original archive: C:\Users\Administrator\AppData\Local\Temp\2\kotakpg-0.0.1-SNAPSHOT_war1684b24a85f.ear]
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException: IWAE0017E Unable to replace original archive: C:\Users\Administrator\AppData\Local\Temp\2\kotakpg-0.0.1-SNAPSHOT_war1684b24a85f.ear
##[error]Error: C:\Program Files (x86)\IBM\WebSphere\AppServer\bin\wsadmin.bat failed with return code: 103
websphere_error.log

Sync nodes not happening on update of existing app in a cluster

When updating existing apps in a cluster the AdminNodeManagement.syncActiveNodes() isn't happening, In looking at the code on new application block you have the logic in the if(startApplication) block when building the command you append AdminNodeManagement.syncActiveNodes(); AdminApplication.startApplicationOnCluster('${appName}', '${clusterName}'); . I am seeing behavior across multiple environments where the application is updated and the nodes are eventually synced but are partial start. From what i could find here (https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/txml_updatingapp.html) step 4 is what is missing on the update app logic block.

Getting error: Unable to find wsadmin

My agent is having websphere installed in it and we are trying to deploy an application on the agent itself. So, technically the agent and the target server both have websphere and wsadmin installed. Also the WAS_HOME path is also correctly set and added in the Path variable.
But even after that, I am facing this issue
Error: Failed which: Not found wsadmin: null

Absolute path for pathSegments: C:\Windows\system32/wsadmin = C:\Windows\system32\wsadmin
2019-09-16T07:55:25.0849496Z ##[debug]Absolute path for pathSegments: C:\Windows/wsadmin = C:\Windows\wsadmin
2019-09-16T07:55:25.0849688Z ##[debug]Absolute path for pathSegments: C:\Windows\System32\Wbem/wsadmin = C:\Windows\System32\Wbem\wsadmin
2019-09-16T07:55:25.0849930Z ##[debug]Absolute path for pathSegments: C:\Windows\System32\WindowsPowerShell\v1.0\/wsadmin = C:\Windows\System32\WindowsPowerShell\v1.0\wsadmin
2019-09-16T07:55:25.0850184Z ##[debug]Absolute path for pathSegments: C:\Windows\CCM/wsadmin = C:\Windows\CCM\wsadmin
2019-09-16T07:55:25.0852102Z ##[debug]Absolute path for pathSegments: C:\Windows\CCM/wsadmin = C:\Windows\CCM\wsadmin
2019-09-16T07:55:25.0852329Z ##[debug]Absolute path for pathSegments: c:\program files\winzip/wsadmin = c:\program files\winzip\wsadmin
2019-09-16T07:55:25.0852545Z ##[debug]Absolute path for pathSegments: C:\Program Files\Microsoft Network Monitor 3\/wsadmin = C:\Program Files\Microsoft Network Monitor 3\wsadmin
2019-09-16T07:55:25.0852798Z ##[debug]Absolute path for pathSegments: C:\Program Files (x86)\Brackets\command/wsadmin = C:\Program Files (x86)\Brackets\command\wsadmin
2019-09-16T07:55:25.0853017Z ##[debug]check path : null
2019-09-16T07:55:25.0853206Z ##[debug]task result: Failed
2019-09-16T07:55:25.0928931Z ##[error]Error: Failed which: Not found wsadmin: null
2019-09-16T07:55:25.0938138Z ##[debug]Processed: ##vso[task.issue type=error;]Error: Failed which: Not found wsadmin: null
2019-09-16T07:55:25.0939226Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Failed which: Not found wsadmin: null

This extension is overrated, any update pleaase?

I try with the extension but doesn't works, the stdout from commands it is missed.

I tried putting console.log in stdout

C:\Windows\system32\cmd.exe /D /S /C "C:\IBM\WebSphere\AppServer\profiles\AppSrv03\bin\wsadmin.bat -username xxxx -password xx-host xxxx -port 8882 -conntype SOAP -c "AdminConfig.getid('/Deployment:cc/');"" {"type":"Buffer","data":[]} {"code":0,"stdout":"","stderr":""} Not found app cc, install. C:\Windows\system32\cmd.exe /D /S /C "C:\IBM\WebSphere\AppServer\profiles\AppSrv03\bin\wsadmin.bat -username xxxx -password xx -host xxxx -port 8882 -conntype SOAP -c "AdminApp.update('cc', 'app', '[-operation update -contents C:/agent/_work/1/s/dist/ear/xxx-jndi.ear ]'); AdminConfig.save();""

Please any can helpme?

Not found wsadmin: null

Hi, I'm using the plugin but you get the following error:
2017-05-29T13:57:29.5748039Z ##[debug]check path : null
2017-05-29T13:57:29.5904296Z ##[debug]task result: Failed
2017-05-29T13:57:29.6060553Z ##[error]Error: Failed which: Not found wsadmin: null
2017-05-29T13:57:29.6060553Z ##[debug]Processed: ##vso[task.issue type=error;]Error: Failed which: Not found wsadmin: null
2017-05-29T13:57:29.6060553Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Failed which: Not found wsadmin: null

The server where the plugin is running is different from the deployer and therefore did not install the wsadmin command.

Not able to deploy war file using IBM task

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

java.io.FileNotFoundException on .fileTableLock (Access is denied.)

Hi,

We are trying to implement continued deployment of a Java WebSphere application through the TFS Websphere plugin.
We have a problem running the "Deploy to IBM WebSphere" step:

[command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\IBM\WebSphere\AppServer\bin\wsadmin.bat" -username MYUSER -password ******** -host IPHOST -port 8879 -conntype SOAP -c "AdminConfig.getid('/Deployment:WAS9Migration/');""
(IP host and user are hidden).

An error is thrown.
Here is the log:
2017-07-18T14:38:41.0491482Z Access is denied.
2017-07-18T14:38:41.0491482Z !SESSION 2017-07-18 16:38:40.533 -----------------------------------------------
2017-07-18T14:38:41.0491482Z eclipse.buildId=M20060921-0945
2017-07-18T14:38:41.0491482Z java.fullversion=JRE 1.8.0 IBM J9 2.8 Windows Server 2012 R2 amd64-64 Compressed References 20170516_348050 (JIT enabled, AOT enabled)
2017-07-18T14:38:41.0491482Z J9VM - R28_20170516_1905_B348050
2017-07-18T14:38:41.0647715Z JIT - tr.r14.java_20170516_348050
2017-07-18T14:38:41.0647715Z GC - R28_20170516_1905_B348050_CMPRSS
2017-07-18T14:38:41.0647715Z J9CL - 20170516_348050
2017-07-18T14:38:41.0647715Z BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
2017-07-18T14:38:41.0647715Z Framework arguments: -application com.ibm.ws.bootstrap.WSLauncher
2017-07-18T14:38:41.0647715Z Command-line arguments: -application com.ibm.ws.bootstrap.WSLauncher
2017-07-18T14:38:41.0647715Z !ENTRY org.eclipse.osgi 4 0 2017-07-18 16:38:41.017
2017-07-18T14:38:41.0647715Z !MESSAGE Error reading configuration: C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\configuration\org.eclipse.osgi.manager.fileTableLock (Access is denied.)
2017-07-18T14:38:41.0647715Z !STACK 0
2017-07-18T14:38:41.0647715Z java.io.FileNotFoundException: C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\configuration\org.eclipse.osgi.manager.fileTableLock (Access is denied.)
2017-07-18T14:38:41.0647715Z at java.io.RandomAccessFile.open0(Native Method)
2017-07-18T14:38:41.0647715Z at java.io.RandomAccessFile.open(RandomAccessFile.java:333)
2017-07-18T14:38:41.0647715Z at java.io.RandomAccessFile.(RandomAccessFile.java:257)
2017-07-18T14:38:41.0647715Z at org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Locker_JavaNio.java:33)
2017-07-18T14:38:41.0647715Z at org.eclipse.osgi.storagemanager.StorageManager.lock(StorageManager.java:389)
2017-07-18T14:38:41.0647715Z at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:702)
2017-07-18T14:38:41.0647715Z at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(BaseStorage.java:226)
2017-07-18T14:38:41.0647715Z at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(BaseStorage.java:160)
2017-07-18T14:38:41.0647715Z at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:123)
2017-07-18T14:38:41.0647715Z at org.eclipse.osgi.framework.internal.core.Framework.(Framework.java:193)
2017-07-18T14:38:41.0647715Z at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:263)
2017-07-18T14:38:41.0647715Z at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
2017-07-18T14:38:41.0647715Z at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-07-18T14:38:41.0647715Z at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
2017-07-18T14:38:41.0647715Z at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
2017-07-18T14:38:41.0647715Z at java.lang.reflect.Method.invoke(Method.java:508)
2017-07-18T14:38:41.0647715Z at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
2017-07-18T14:38:41.0647715Z at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
2017-07-18T14:38:41.0647715Z at org.eclipse.core.launcher.Main.run(Main.java:981)
2017-07-18T14:38:41.0647715Z at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:412)
2017-07-18T14:38:41.0647715Z at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:173)
2017-07-18T14:38:41.0647715Z Not found app WAS9Migration, install.

However, the deployment is not stopped and attempts to execute the command:

2017-07-18T14:38:41.0961386Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\IBM\WebSphere\AppServer\bin\wsadmin.bat" -username MYUSER -password ******** -host IPHOST -port 8879 -conntype SOAP -c "AdminApp.update('WAS9Migration', 'app', '[-operation update -contents C:/agent/work/8e9a63e47/WAS9-MigrationWAS9_clean_package-P_prod/drop/MigrationWAS9EAR-1.0-SNAPSHOT.ear ]'); AdminConfig.save();""

And the following error appears:
2017-07-18T14:38:41.3460386Z Access is denied.
2017-07-18T14:38:42.1429541Z !SESSION 2017-07-18 16:38:41.674 -----------------------------------------------
2017-07-18T14:38:42.1429541Z eclipse.buildId=M20060921-0945
2017-07-18T14:38:42.1429541Z java.fullversion=JRE 1.8.0 IBM J9 2.8 Windows Server 2012 R2 amd64-64 Compressed References 20170516_348050 (JIT enabled, AOT enabled)
2017-07-18T14:38:42.1429541Z J9VM - R28_20170516_1905_B348050
2017-07-18T14:38:42.1429541Z JIT - tr.r14.java_20170516_348050
2017-07-18T14:38:42.1429541Z GC - R28_20170516_1905_B348050_CMPRSS
2017-07-18T14:38:42.1429541Z J9CL - 20170516_348050
2017-07-18T14:38:42.1585668Z BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
2017-07-18T14:38:42.1585668Z Framework arguments: -application com.ibm.ws.bootstrap.WSLauncher
2017-07-18T14:38:42.1585668Z Command-line arguments: -application com.ibm.ws.bootstrap.WSLauncher
2017-07-18T14:38:42.1585668Z !ENTRY org.eclipse.osgi 4 0 2017-07-18 16:38:42.142
2017-07-18T14:38:42.1585668Z !MESSAGE Error reading configuration: C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\configuration\org.eclipse.osgi.manager.fileTableLock (Access is denied.)
2017-07-18T14:38:42.1585668Z !STACK 0
2017-07-18T14:38:42.1585668Z java.io.FileNotFoundException: C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\configuration\org.eclipse.osgi.manager.fileTableLock (Access is denied.)
2017-07-18T14:38:42.1585668Z at java.io.RandomAccessFile.open0(Native Method)
2017-07-18T14:38:42.1585668Z at java.io.RandomAccessFile.open(RandomAccessFile.java:333)
2017-07-18T14:38:42.1585668Z at java.io.RandomAccessFile.(RandomAccessFile.java:257)
2017-07-18T14:38:42.1585668Z at org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Locker_JavaNio.java:33)
2017-07-18T14:38:42.1585668Z at org.eclipse.osgi.storagemanager.StorageManager.lock(StorageManager.java:389)
2017-07-18T14:38:42.1585668Z at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:702)
2017-07-18T14:38:42.1585668Z at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(BaseStorage.java:226)
2017-07-18T14:38:42.1585668Z at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(BaseStorage.java:160)
2017-07-18T14:38:42.1585668Z at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:123)
2017-07-18T14:38:42.1585668Z at org.eclipse.osgi.framework.internal.core.Framework.(Framework.java:193)
2017-07-18T14:38:42.1585668Z at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:263)
2017-07-18T14:38:42.1585668Z at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
2017-07-18T14:38:42.1585668Z at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-07-18T14:38:42.1585668Z at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
2017-07-18T14:38:42.1585668Z at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
2017-07-18T14:38:42.1585668Z at java.lang.reflect.Method.invoke(Method.java:508)
2017-07-18T14:38:42.1585668Z at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
2017-07-18T14:38:42.1585668Z at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
2017-07-18T14:38:42.1585668Z at org.eclipse.core.launcher.Main.run(Main.java:981)
2017-07-18T14:38:42.1585668Z at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:412)
2017-07-18T14:38:42.1585668Z at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:173)
2017-07-18T14:38:42.1898344Z ##[debug]rc:15
2017-07-18T14:38:42.1898344Z ##[debug]success:false
2017-07-18T14:38:42.1898344Z ##[debug]task result: Failed
2017-07-18T14:38:42.1898344Z ##[error]Error: C:\Program Files\IBM\WebSphere\AppServer\bin\wsadmin.bat failed with return code: 15

If we execute both commands from the TFS release agent, they will work, our application will deploy correctly on our server.

Do you have an idea ?

Thank you

Prerequisites section

Hi,

I am a new learner of WAS and I have been trying to deploy my .WAR build file to WebSphere Application Server through TFS. But your expressions in prerequisites section is little bit perplexing for me.

Would you please give me more details about how to fullfill prerequisites section ?

Thanks in advance,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.