OK, found the trick. I also had to add the "mapping" param to the
HttpManagedServlet.

    <servlet>
        <servlet-name>HttpManagedServlet</servlet-name>
       
<servlet-class>org.apache.servicemix.http.HttpManagedServlet</servlet-class>
        <init-param>
            <param-name>mapping</param-name>
            <param-value>services</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>HttpManagedServlet</servlet-name>
        <url-pattern>/services/*</url-pattern>
    </servlet-mapping>

Thanks Everyone!


ldonald wrote:
> 
> Changing the servlet-mapping, url-pattern doesn't appear to work. Changing
> it from "/jbi/*" to "/services/*", and then going to 
> http://localhost:port/application/services/MyService/2009-07-01 results in
> a 404 page that shows my Known services where the Known service list
> shows: http://localhost:port/application/jbi/MyService/2009-07-01. The
> Known service url does not work since it does not match the defined
> url-pattern.
> 
>     <servlet-mapping>
>         <servlet-name>HttpManagedServlet</servlet-name>
>         <url-pattern>/services/*</url-pattern>
>         <!-- <url-pattern>/jbi/*</url-pattern> -->
>     </servlet-mapping>
> 
> 
> 
> Freeman Fang wrote:
>> 
>> Hi,
>> 
>> You need modify web.xml in the war,
>> change
>> <servlet-mapping>
>>          <servlet-name>servicemix-http</servlet-name>
>>          <url-pattern>/jbi/*</url-pattern>
>>      </servlet-mapping>
>> to
>> <servlet-mapping>
>>          <servlet-name>servicemix-http</servlet-name>
>>          <url-pattern>/services/*</url-pattern>   //or whaterver you  
>> want
>>      </servlet-mapping>
>> 
>> Freeman
>> 
>> On 2009-7-7, at 上午2:28, ldonald wrote:
>> 
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <beans xmlns:http="http://servicemix.apache.org/http/1.0";
>>>       xmlns:ms="http://ws.mycompany.com/MyService/2009-07-01/";>
>>>
>>>    <http:endpoint service="ms:MyService"
>>>                   endpoint="MyServicePort"
>>>                   targetService="ms:MyService"
>>>                   role="consumer"
>>>                   locationURI="http://0.0.0.0:8192/MyService/2009-07-01/ 
>>> "
>>>                   defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
>>>                   soap="true"
>>>                   wsdlResource="classpath:MyService.wsdl"/>
>>> </beans>
>>>
>>>
>>> Jean-Baptiste Onofré wrote:
>>>>
>>>> Hi,
>>>>
>>>> What do you have defined in the locationUri into the HTTP xbean.xml ?
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> ldonald wrote:
>>>>> I'm deploying ServixeMix (ver 3.2.1) as a WAR inside OC4J. Web  
>>>>> Services
>>>>> are
>>>>> deployed in servicemix-http.
>>>>>
>>>>> Is there a way to remove or rename "jbi" from my service url?  i.e.
>>>>> Changing
>>>>> http://host:port/application/jbi/MyService?wsdl to
>>>>> http://host:port/application/MyService?wsdl or to
>>>>> http://host:port/application/services/MyService?wsdl
>>>>>
>>>>> I would prefer not to let integration partners know more than they  
>>>>> have
>>>>> to
>>>>> about my service and its technology / framework.
>>>>
>>>>
>>>
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/How-to-remove-jbi-keyword-from-service-URL-tp24358916p24360554.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>> 
>> 
>> -- 
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-remove-jbi-keyword-from-service-URL-tp24358916p24374384.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to