是否可以部署两个具有不同上下文根的two服务?每个war服务都位于war中。战争和其他自由派充斥着耳朵。我正在尝试这样的东西:
<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
发布于 2013-09-19 16:56:26
不能使用相同的上下文名称部署两个单独的web应用程序。
如果希望部署多个服务端点,则不需要将应用程序打包到单独的war文件中,而是需要在WEB-INF/...jaxws.xml文件中配置多个端点。检查以下内容。
http://www.soa4j.com/RequestContentFromID?q=370576046290944130&lang=en
https://stackoverflow.com/questions/18396692
复制相似问题