cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <>
Subject [jira] Commented: (CXF-2570) ServletDestinationFacotry and Tomcat can't locate services
Date Mon, 07 Dec 2009 22:30:18 GMT


Daniel Kulp commented on CXF-2570:

I'm pretty sure this is "working as designed" more or less.   In your cxf-servlet.xml or beans
or whatever where you define your jaxws:endpoint things, are you putting address attributes
on them to define the address (should be just "/OrderService" in your case)?     If not, you
need to when using a Servlet.    

> ServletDestinationFacotry and Tomcat can't locate services
> ----------------------------------------------------------
>                 Key: CXF-2570
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>         Environment:   	
> « Hide
> System:
> 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:48:52 UTC 2009 x86_64 GNU/Linux
> Java:
> java version "1.6.0_16"
> Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
> Apache CXF 2.2.3 (not in version list)
>            Reporter: Christian Connert
>         Attachments: cxf.xml,
> The problem is that the service destinations aren't found by the destination factory.
> I think this problem isn't Tomcat specific. It should occur if cxf is deployed as a war
inside some application server.
> I would suggest the following workaround:
> 1.) Implement a ServletTransportFactory (see attachment 1)
> 2.) Register this ServletTransportFactory in the default cxf.xml (classpath root, see
attachment 2)
> As a clean fix the ServletTransportFactory should make the static String getTrimmedPath(String
path) method to a protected non static method. Than it can be easily overriden by custom subclasses.
> Greetings

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message