JBoss 7: how to change a WAR context root

前端 未结 2 1931
南笙
南笙 2020-12-31 14:46

I have an application that is to be deployed in a WAR file (app.war). After deployment it is available from http://:8080/app I would like to have it being made available

相关标签:
2条回答
  • 2020-12-31 15:08

    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

    0 讨论(0)
  • 2020-12-31 15:09

    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

    0 讨论(0)
提交回复
热议问题