java - Webservices with two different context roots in one EAR - JBoss 6.1 -


is possible deploy 2 webservices different context roots? each webservice located in war. wars , other libs packed ear. i'm trying that:

                <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> 

but doesn't work.

java.lang.illegalstateexception: context root must same deployed endpoints 

i'm using jboss 6.1

you cannot deploy 2 separate web applications same context name.

if want deploy multiple service end points don't need package applications in separate war files, rather need configure multiple endpoints in web-inf/...jaxws.xml file. check following.

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