【问题标题】:Jenkins Websphere deploy Wsadmin errorJenkins Websphere 部署 Wsadmin 错误
【发布时间】:2014-04-03 05:39:21
【问题描述】:

我在 windowsxp 环境中安装了 jenkins 和 websphere。每当我尝试运行构建步骤以调用 WAS 部署程序插件以通过 wsadmin 部署 application.ear 时,我都会收到以下错误。

Building in workspace C:\.jenkins\jobs\websphereantdeploy\workspace
Using user admin defined at the build step level
$ C:\Program Files\IBM\WebSphere\AppServer\bin\wsadmin.bat -conntype SOAP -host localhost -port 9080 -user admin -password ******** -lang jacl -f c:/workspace/ex5.jacl C:/workspace/revision_document/build/ant/riversource.ear karanvmxpNode01
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Build step 'IBM WebSphere Application Server 6.x/7.x' marked build as failure
Finished: FAILURE

知道如何在 jenkins 中更改 wsadmin 的路径以指定 PROGRA~1 而不是程序文件,因为我认为这可能是这里的问题。如果我错了,请纠正我

【问题讨论】:

    标签: java jenkins websphere


    【解决方案1】:

    为了解决您的问题,您需要在命令中添加引号。

    "<WAS_PATH>" -conntype SOAP -host localhost
    

    另外,我不建议将WAS 安装到Program Files 目录或名称中带有空格的目录中。

    【讨论】:

      猜你喜欢
      • 2019-10-07
      • 2011-01-08
      • 1970-01-01
      • 2018-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多