简体   繁体   English

WSO2应用程序服务器5.0.1:如何将应用程序作为根上下文运行?

[英]WSO2 application server 5.0.1: How to run app as root context?

When I deploy a webapp war to WSO2 application server, it gets deployed to a context path such as /MyApp How do I deploy it to the root context so that MyApp runs at / ? 当我将Webapp war部署到WSO2应用程序服务器时,它将部署到/ MyApp等上下文路径。如何将其部署到根上下文,以便MyApp在/上运行?

I have tried setting WebContextRoot in carbon.xml to /MyApp/ but doing that just results in a 404 error. 我尝试将carbon.xml中的WebContextRoot设置为/ MyApp /,但这只会导致404错误。 Any suggestions? 有什么建议么?

As I understand you want to run some your webapp as the root webapp? 据我了解,您想将某些Web应用程序作为根Web应用程序运行? If so you have to follow the below steps 如果是这样,您必须执行以下步骤

  1. Change WebContextRoot top something like /console in the carbon.xml 在carbon.xml中将WebContextRoot更改为类似/ console的顶部
  2. file Rename your webapp as ROOT.war 文件将您的Web应用重命名为ROOT.war

Then you will be able to deploy your webapp as the root webapp. 然后,您将能够将您的Web应用程序部署为根Web应用程序。

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

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