- 
        1. Re: setting context root for EJB based web servicesrphadnis Mar 13, 2008 3:35 PM (in response to elgabo)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: 
 import org.jboss.wsf.spi.annotation.WebContext;
 .....
 @WebContext(contextRoot="/YourContextRoot")
 The WebContext class is in the jbossws-spi.jar in the client folder of your jboss 4.2.2 installation.
- 
        2. Re: setting context root for EJB based web serviceselgabo Apr 9, 2008 9:36 AM (in response to elgabo)Yes I'm using JBoss 4.2.2, it seems that there is a bug http://jira.jboss.org/jira/browse/JBAS-4852 on this version ... it will be fixed on 4.2.3 
- 
        3. Re: setting context root for EJB based web serviceshoedic May 14, 2008 4:44 AM (in response to elgabo)Hi, 
 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
 
     
    