【发布时间】:2013-08-23 06:55:40
【问题描述】:
是否可以部署两个具有不同上下文根的 Web 服务?每个网络服务都位于战争中。战争和其他库被挤得满满当当。我正在尝试这样的事情:
<modules>
<webModule>
<groupId>group</groupId>
<artifactId>war1</artifactId>
<contextRoot>/api/test</contextRoot>
</webModule>
<webModule>
<groupId>group</groupId>
<artifactId>war2</artifactId>
<contextRoot>/gateway/test/bs</contextRoot>
</webModule>
</modules>
但它不起作用。
java.lang.IllegalStateException: Context root must be the same for all deployed endpoints
我正在使用 JBoss 6.1
【问题讨论】:
标签: java web-services jboss java-ee-6 jboss6.x