application management,服务未启,但我已经启动
早上做实验:wsadmin>print 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.
很显然,是服务没有启动,因此我使用serverstatus server1产看server状态,显示:
C:\IBM\WebSphere\AppServer\profiles\profile1\bin>serverstatus server1
ADMU0116I: Tool information is being logged in file
c:\IBM\WebSphere\AppServer\profiles\profile1\logs\server1\serverStatu
s.log
ADMU0128I: Starting tool with the profile1 profile
ADMU0500I: Retrieving server status for server1
ADMU0509I: The Application Server "server1" cannot be reached. It appears to be
stopped.
看上去server没有启动,但是我的控制台都已经打开了,并且可以操作,这时候我如果再次启动,信息如下:
C:\IBM\WebSphere\AppServer\profiles\profile1\bin>startserver server1
ADMU0116I: Tool information is being logged in file
c:\IBM\WebSphere\AppServer\profiles\profile1\logs\server1\startServer
.log
ADMU0128I: Starting tool with the profile1 profile
ADMU3100I: Reading configuration for server: server1
ADMU3028I: Conflict detected on port 8880. Likely causes: a) An instance of
the server server1 is already running b) some other process is
using port 8880
ADMU3027E: An instance of the server may already be running: server1
ADMU0111E: Program exiting with error:
com.ibm.websphere.management.exception.AdminException: ADMU3027E: An
instance of the server may already be running: server1
ADMU1211I: To obtain a full trace of the failure, use the -trace option.
ADMU0211I: Error details may be seen in the file:
c:\IBM\WebSphere\AppServer\profiles\profile1\logs\server1\startServer
.log
这个信息明显告诉我server1正在运行,而上面的serverstatus 告诉我当前没有运行,问题出在哪?请大侠指点 --------------------编程问答-------------------- 首先,控制台能否打开与server1是否正常没关系,控制台是运行在DMGR上的,有时候可能Dmgr与node之间同步出问题,就会导致你看到的server1的状态与实际的状态不一致。另外,你的WASADMIN命令要连接到DMGR上去,而不是NODEAGENT上。
补充:企业软件 , WebSphere