简体   繁体   English

在Websphere 6.1上更改Web应用程序的上下文根

[英]changing context root of web application on websphere 6.1

I can change context root in the application.xml in RAD and it takes my new application context root there. 我可以在RAD的application.xml中更改上下文根,它将新的应用程序上下文根放在那里。 Not sure what steps I need to take to change application context root permanently when application is built and deployed to anywhere other then my local server. 不确定在构建应用程序并将其部署到本地服务器以外的任何其他位置时,需要采取哪些步骤来永久更改应用程序上下文根。 I did request to change context root in Websphere admin console and it did work. 我确实请求在Websphere管理控制台中更改上下文根,但它确实起作用。 However when I rebult my application and redeployed to the server it went back to the original context root. 但是,当我重新整理应用程序并重新部署到服务器时,它又回到了原始上下文根。 What do I need to change at the application build/deploy time for it to take my new application context root? 为了使我的新应用程序上下文扎根,我需要在应用程序构建/部署时进行哪些更改? Is it the name of my application war file ? 是我的应用程序war文件的名称吗?

Thank you in advance for any information on this subject 预先感谢您提供有关此主题的任何信息

The context root is set in the EAR file. 上下文根在EAR文件中设置。 Look for META-INF/application.xml. 查找META-INF / application.xml。 You have the context root for your applications there. 您在那里拥有应用程序的上下文根。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM