我不明白为什么我的JBoss7.1要在我的contextRoot上重定向。
当我访问localhost:8080/myContext/时,
它执行302重定向到"localhost:8080/myContext/myContext/。
我试着把我的战争部署到另一个Jboss身上,它没有这个问题。有什么想法吗?
jboss-web.xml:
<jboss-web>
<!-- <security-domain>java:/jaas/NeptuneRealm</security-domain> -->
<context-root>webNeptune</context-root>
</jboss-web>web.xml
<module-name>webNeptune</module-name>我正在寻找这个问题,但是在我的jboss配置中没有发现任何东西。
发布于 2017-01-13 02:25:31
在上下文根中添加“/”,就可以从<module-name>中删除web.xml元素
<jboss-web>
<context-root>/webNeptune</context-root>
</jboss-web>https://stackoverflow.com/questions/41570707
复制相似问题