2

I need to create a script in Jython to migrate some applications from WAS 7 to WAS 8.5. I can't seem to find the context root for a certain application (i found the context root for all other applications in the application.xml file).

This application does not have the above mentioned file. Is there another default file in which this information can be found or is there a wsadmin command that can help me retrieve the context root?

Thanks in advance!

4

1 回答 1

3

例如,您可以使用以下命令:

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"/>
  • web 模块可能有默认名称 -filename没有.war扩展名,例如MyWebMod.war上下文将是/MyWebMod
于 2014-10-13T21:27:34.833 回答