JBoss 7: how to change a WAR context root

给你一囗甜甜゛ 提交于 2019-11-30 13:36:39

this works in AS 7.0.1, WEB-INF/jboss-web.xml

<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
    <context-root>/my_custom_root</context-root>
</jboss-web>

I don't think it is possible to have app root like "server/something/app", but you can simulate this behavior through application structure

Just for sharing a personal experience...if the context-root in jboss-web.xml seems to be ignored...try to see if it is (the context root) already declared in your application.xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!