简体   繁体   English

如何在apache tomcat 8中将uaa部署为war文件?

[英]How to deploy uaa as a war file in apache tomcat 8?

I want to deploy uaa in tomcat 8.我想在 tomcat 8 中部署 uaa。

I have created a war file and placed it at this location C:\\Softwares\\apache-tomcat-8.5.5\\webapps\\cloudfoundry-identity-uaa-3.6.0.war .我创建了一个 war 文件并将它放在这个位置C:\\Softwares\\apache-tomcat-8.5.5\\webapps\\cloudfoundry-identity-uaa-3.6.0.war My tomcat is getting started but when m trying to open UAA login page http://localhost:8080/uaa/login , I'm getting the following error:我的 tomcat 正在启动,但是当我尝试打开 UAA 登录页面http://localhost:8080/uaa/login ,出现以下错误:

HTTP Status 404 - /uaa/login . HTTP Status 404 - /uaa/login

Please tell me whether I am doing it correctly or not, if not please suggest a way.请告诉我我的做法是否正确,如果不正确,请提出建议。

By default, the context root for the web app in Tomcat will be the war file's name, which in this case is cloudfoundry-identity-uaa-3.6.0 .默认情况下,Tomcat 中 Web 应用程序的上下文根将是 war 文件的名称,在本例中为cloudfoundry-identity-uaa-3.6.0 So, try going to the URL at http://localhost:8080/cloudfoundry-identity-uaa-3.6.0/login .因此,尝试访问http://localhost:8080/cloudfoundry-identity-uaa-3.6.0/login上的 URL。 You can change the default context path in the Tomcat Manager app.您可以在 Tomcat Manager 应用程序中更改默认上下文路径。

1 copy your war to webapp directiory 1 将您的战争复制到 webapp 目录

2 rename your war to ROOT.war 2 将你的战争重命名为 ROOT.war

3 make sure your tomcat/conf/server.xml is like: 3 确保你的 tomcat/conf/server.xml 是这样的:

<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">

4 start the server 4 启动服务器

bin/startup.sh

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

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