websphere admin:运行jython脚本wasx7025e时出错:在

ifsvaxew  于 2021-07-07  发布在  Java
关注(0)|答案(0)|浏览(472)

我使用war文件在websphere上安装了一个web应用程序。我正在尝试使用jython脚本使用更新的war文件重新安装应用程序。脚本是:


### cat deplApps.py

import time

# the 3 arguments are jvm name, ent app name, and path to war file

print "Args are:" , sys.argv
SERVERMBEAN = AdminServerManagement.queryMBeans("AppSrvNode01", sys.argv[0] , "Server")
if SERVERMBEAN == [] :
        print "Server is in stopped state"
else :
        AdminServerManagement.stopSingleServer("AppSrvNode01", sys.argv[0] )

print "sleeping for 10 seconds"
time.sleep(10)
AdminApplication.updateApplicationUsingDefaultMerge( sys.argv[1],  sys.argv[2] )
time.sleep(10)
Sync1 = AdminControl.completeObjectName('type=NodeSync,process=nodeagent,node=AppSrvNode01,*')
AdminControl.invoke(Sync1, 'sync')
print "sleeping for 120 seconds before starting the server"
time.sleep(120)
AdminServerManagement.startSingleServer("AppSrvNode01", sys.argv[0] )

当我运行脚本时,我得到以下日志和错误:

ADMA5017I: Uninstallation of productX started.
ADMA5104I: The server index entry for WebSphere:cell=Cell01,node=Node01 is updated successfully.
ADMA5102I: The configuration data for productX from the configuration repository is deleted successfully.
ADMA5011I: The cleanup of the temp directory for application productX is complete.
ADMA5106I: Application productX uninstalled successfully.
ADMA5016I: Installation of productX started.
ADMA5058I: Application and module versions are validated with versions of deployment targets.
ADMA5005I: The application productX is configured in the WebSphere Application Server repository.
ADMA5005I: The application productX is configured in the WebSphere Application Server repository.
ADMA5081I: The bootstrap address for client module is configured in the WebSphere Application Server repository.
ADMA5053I: The library references for the installed optional package are created.
ADMA5005I: The application productX is configured in the WebSphere Application Server repository.
ADMA5001I: The application binaries are saved in /usr/WebSphere/AppServer/profiles/Dmgr/wstemp/Script176216ef255/workspace/cells/Cell01/applications/productX.ear/productX.ear
ADMA5005I: The application productX is configured in the WebSphere Application Server repository.
SECJ0400I: Successfully updated the application productX with the appContextIDForSecurity information.
ADMA5005I: The application productX is configured in the WebSphere Application Server repository.
ADMA5005I: The application productX is configured in the WebSphere Application Server repository.
ADMA5113I: Activation plan created successfully.
ADMA5011I: The cleanup of the temp directory for application productX is complete.
ADMA5013I: Application productX installed successfully.
OK: updateApplicationUsingDefaultMerge('productX', '/apps/tempFiles/productXAPP.war', 'false'):
WASX7017E: Exception received while running file "/apps/deploy/deplApps.py"; exception information: com.ibm.ws.scripting.ScriptingException: WASX7025E: Error found in String ""; cannot create ObjectName.

当日志显示productx已卸载时,我检查了应用程序,但应用程序仍在工作。这里有什么问题吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题