3

異なるコンテキスト ルートを持つ 2 つの Web サービスをデプロイすることは可能ですか? 各 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を使用しています

4

1 に答える 1

0

You cannot deploy two separate web applications with same context name.

If you want to deploy multiple service end points you don't need to package the applications in separate war files, rather you need to configure multiple endpoints in WEB-INF/...jaxws.xml file. Check the following.

http://www.soa4j.com/RequestContentFromID?q=370576046290944130&lang=en

于 2013-09-19T08:56:26.163 に答える