我需要在Jython中创建一个脚本,以将某些应用程序从WAS 7迁移到WAS 8.5。我似乎找不到某个应用程序的上下文根(我在application.xml文件中找到了所有其他应用程序的上下文根)。
该应用程序没有上述文件。是否存在另一个可以在其中找到此信息的默认文件,或者是否存在可以帮助我检索上下文根目录的wsadmin命令?
提前致谢!
您可以使用例如以下命令:
wsadmin>AdminApp.view('Application Name', '-CtxRootForWebMod')
例如:
wsadmin>print AdminApp.view('Dynamic Cache Monitor', '-CtxRootForWebMod')
CtxRootForWebMod: Specify the Context root of web module
Configure values for context roots in web modules.
Web module: Dynamic Cache Monitor
URI: CacheMonitor.war,WEB-INF/web.xml
Context Root: /cachemonitor
如果应用程序没有,application.xml
则:
WEB-INF/ibm-web-ext.xml
文件,看看是否有元素<context-root uri="myctx"/>
filename
不带.war
扩展名,例如,MyWebMod.war
上下文将是/MyWebMod
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句