我尝试使用IBM Websphere $AdminApp
(以及Ant任务)在远程服务器上安装/更新应用程序EAR。 You may want to read this question too
手动流程
我用这个命令行打开一个jython控制台:
$was61profile1\bin$> wsadmin.bat -lang jython -host MYHOST -port 32092
之后我想列出所有应用程序:
wsadmin>AdminApp.list()
WASX7015E: Exception running command: "$AdminApp list"; exception information:
com.ibm.ws.scripting.ScriptingException: WASX7206W: The application management service is not running. Application management commands will not run.
我认为此处的消息很明确:应用程序管理服务未运行。
如何启用应用程序管理服务?
我确实在可怕的,可怕的IBM网站上搜索了文档。我还尝试单击Websphere管理页面上的配置选项。但我找不到任何远离应用程序管理服务的东西。我现在用英语语言设置再次点击,但是如果有人能指出配置选项或文档,我会很感激。
答案 0 :(得分:11)
废话,我连接到错误的端口。如果要使用AdminApp.list()
,则必须连接到Deployment Manager(缩写为DMGR)。我用
*WAS_HOME*\profiles\was61profile1\bin>wsadmin.bat -lang jython -host MYHOST -port 32003
然后我可以通过AdminApp
列出已安装的应用程序。
确保转到Websphere管理控制台Web界面并转到系统配置 - > 部署管理器并检查页面右侧的端口列表。有SOAP_CONNECTOR_ADDRESS
的端口,这是您需要用于控制台的端口。