如何在 WebSphere Liberty 8.5.5.8 上的 IBM MobileFirst 8.0 运行 中重命名 Application Center 的上下文根?

How do I rename the context root of Application Center in IBM MobileFirst 8.0 running on WebSphere Liberty 8.5.5.8?

我想将 appcenterconsole 重命名为 appcenterconsoledev,将 applicationcenter 重命名为 applicationcenterdev。我是 WebSphere Liberty 8.5.5.8 上的 运行 MobileFirst 8.0。我想知道这是否像重命名 war 文件一样简单,部署它并更新 server.xml?

试图将 idname 字段更改为 server.xml 中应用程序标签的 appcenterconsoledev 并重新启动服务器。服务器正常启动,可以登录应用中心控制台。登录到控制台后,它给出了一个错误,指出 "An unexpected error occurred (HTTP status 404)".

更新了 Server.xml 中的应用程序标签:

<application id="appcenterconsoledev" name="appcenterconsoledev" location="appcenterconsole.war" type="war">

Messages.log:

[8/18/17 15:30:26:881 EDT] 0000001c com.ibm.ws.webcontainer.servlet                              I SRVE0242I: [appcenterconsoledev] [/appcenterconsoledev] [localeServlet]: Initialization successful.
[8/18/17 15:30:26:882 EDT] 0000001c com.ibm.ws.webcontainer.servlet                              I SRVE0242I: [appcenterconsoledev] [/appcenterconsoledev] [servicesServlet]: Initialization successful.
[8/18/17 15:30:27:478 EDT] 0000001e com.ibm.puremeap.util.PureMeapBaseUtil                       I Resource conf/jndi/default.properties not found. This is not an error. Context path is /applicationcenter
[8/18/17 15:30:27:487 EDT] 0000001e com.ibm.appcenter.servlet.ConsoleServicesServlet             I The endpoint used to invoke the ApplicationCenter administration services is http://localhost:9081/applicationcenter

控制台截图:

尝试更改上下文根属性。像下面的例子

<application context-root="appcenterconsoledev" type="war" id="appcenterconsole" location="appcenterconsole.war" name="appcenterconsole"/>

通过将以下 JNDI 服务端点条目添加到 server.xml,此问题已得到解决,现在我们能够访问 dev/uat appcenter 控制台。

<jndiEntry jndiName="ibm.appcenter.services.endpoint" value="*://*:*/applicationcenterdev" />