简体   繁体   English

Tomcat服务器远程重新部署

[英]Tomcat server remote redeployement

We have a web app using Apache Shiro for security and deployed in a Tomcat 7 server, and an administration application in java swing. 我们有一个使用Apache Shiro来确保安全并部署在Tomcat 7服务器中的Web应用程序,以及一个使用Java swing的管理应用程序。 One of the purposes of the administration application is to manage urls access rights for users in the web application. 管理应用程序的目的之一是为Web应用程序中的用户管理url访问权限。 When the rights are modified, the web app need to be redeployed. 修改权限后,需要重新部署Web应用程序。 We are already using JMX to start/stop/reload the web app in Tomcat, but is there a way to redeploy the web app each time the shiro.ini file is updated? 我们已经在使用JMX在Tomcat中启动/停止/重新加载Web应用程序,但是是否有一种方法可以在每次shiro.ini文件更新时重新部署该Web应用程序?

The place where the shiro.ini file was apparently wrong (it was in the classpath root folder). shiro.ini文件明显错误的地方(在classpath根文件夹中)。 We've just tried to move it to WEB-INF folder, and now, we don't need manual redeployement anymore. 我们刚刚尝试将其移动到WEB-INF文件夹,现在,我们不再需要手动重新部署。 Just a reload of the web app eventually, and it is possible to do it with JMX. 最终只需重新加载Web应用程序,就可以使用JMX进行此操作。

Thank you dinesh707, you're comment helped us in some way. 谢谢dinesh707,您的评论对我们有所帮助。

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

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