You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Charles Galpin <cg...@lhsw.com> on 2010/07/02 21:37:36 UTC

Re: Problem when hostname matches axis service URL path

Has anyone seen this, or can confirm or deny this is a problem in their environment?

thanks,
charles

On Jun 30, 2010, at 11:24 AM, Charles Galpin wrote:

> I changed my axis2 (1.5) service url to /data/MyService instead of /axis2/services/MyService by doing the following
> 
> 1. deleted the default tomcat ROOT web service and renamed axis2 to ROOT
> 2. In web.xml I added
> 
> <servlet-mapping>
>    <servlet-name>AxisServlet</servlet-name>
>    <url-pattern>/data/*</url-pattern>
> </servlet-mapping>
> 3. In axis2.xml I set the parameter
> <parameter name="servicePath">data</parameter>
> 
> This works fine except if the hostname starts with "data". So the following works
> 
> http://axis2.myservices.com/data/MyService?wsdl
> http://feeddata.myservices.com/data/MyService?wsdl
> 
> but
> 
> http://data.myservices.com/data/MyService?wsdl
> http://datafeed.myservices.com/data/MyService?wsdl
> 
> fails with "Requested resource not found!" from axis and no errors in the logs.
> 
> Any ideas why, or how I can use data as the hostname, or at least start with data?
> 
> TIA,
> charles
>