问题描述
早上做实验:wsadmin>printAdminApp.list()WASX7015E:Exceptionrunningcommand:"AdminApp.list()";exceptioninformation:com.ibm.ws.scripting.ScriptingException:WASX7206W:Theapplicationmanagementserviceisnotrunning.Applicationmanagementcommandswillnotrun.很显然,是服务没有启动,因此我使用serverstatusserver1产看server状态,显示:C:IBMWebSphereAppServerprofilesprofile1bin>serverstatusserver1ADMU0116I:Toolinformationisbeingloggedinfilec:IBMWebSphereAppServerprofilesprofile1logsserver1serverStatus.logADMU0128I:Startingtoolwiththeprofile1profileADMU0500I:Retrievingserverstatusforserver1ADMU0509I:TheApplicationServer"server1"cannotbereached.Itappearstobestopped.看上去server没有启动,但是我的控制台都已经打开了,并且可以操作,这时候我如果再次启动,信息如下:C:IBMWebSphereAppServerprofilesprofile1bin>startserverserver1ADMU0116I:Toolinformationisbeingloggedinfilec:IBMWebSphereAppServerprofilesprofile1logsserver1startServer.logADMU0128I:Startingtoolwiththeprofile1profileADMU3100I:Readingconfigurationforserver:server1ADMU3028I:Conflictdetectedonport8880.Likelycauses:a)Aninstanceoftheserverserver1isalreadyrunningb)someotherprocessisusingport8880ADMU3027E:Aninstanceoftheservermayalreadyberunning:server1ADMU0111E:Programexitingwitherror:com.ibm.websphere.management.exception.AdminException:ADMU3027E:Aninstanceoftheservermayalreadyberunning:server1ADMU1211I:Toobtainafulltraceofthefailure,usethe-traceoption.ADMU0211I:Errordetailsmaybeseeninthefile:c:IBMWebSphereAppServerprofilesprofile1logsserver1startServer.log这个信息明显告诉我server1正在运行,而上面的serverstatus告诉我当前没有运行,问题出在哪?请大侠指点
解决方案
解决方案二:
首先,控制台能否打开与server1是否正常没关系,控制台是运行在DMGR上的,有时候可能Dmgr与node之间同步出问题,就会导致你看到的server1的状态与实际的状态不一致。另外,你的WASADMIN命令要连接到DMGR上去,而不是NODEAGENT上。