I am assuming you are using JBoss 4.2.2 or atleast JBossWS 2.0.1. If that is true you can set the context root using the following annotation:
The WebContext class is in the jbossws-spi.jar in the client folder of your jboss 4.2.2 installation.
I have the same issue on Jboss 4.0.5 + EJB3 RC9 + Jbossws-native-2.0.3.
I've seen multiple bugs on jboss.com about context-root with webservices but i'm not sure they all include EJB3 based WS (ex : http://jira.jboss.com/jira/browse/JBWS-1813 - works fine without EJB3 RC9 installed).
Another bug (http://jira.jboss.com/jira/browse/JBAS-4852) seems to be like my problem but for a 4.2.x jboss version.
Does anybody could confirm me that the only way to change the default calculated context-root in my configuration, is to set a @WebContext annotation in the ejb3 bean ?
Thank's in advance