Hi, ok, thanks for confirming it. "/services/*" restricts the space a bit but "/*" should also work... As far as I understand your original problem, with "/*" requests like /index.html were unexpectedly picked up by CXFServlet... I think in case of Jetty one might be able to tackle it by configuring the stem matching, but I'll need to experiment...Another option is to actually provide a custom MessageObserver, something we did some time ago, which would itself serve the static content like index.html - I'll take a note of it and look a bit later
cheers, Sergey Monde Hans wrote: > > HI sergy, > It turned out to be a configuration or mapping issue. > > I mapped it to /services/* and that seems to have fixed the problem. > > Monde Hans. > > On Wed, Aug 5, 2009 at 10:29 AM, Sergey Beryozkin > <[email protected] >> wrote: > >> >> Hi >> >> Can you please post a sample URI which results in a static content being >> served ? >> thanks, Sergey >> >> >> >> Monde Hans wrote: >> > >> > Hi Guys, >> > I am new to rest. >> > I have been trying to expose our application with rest. The problem is >> > that >> > if we map CXF to /* it tries to serve3 the static content as well. >> > The only work around is being specific. Like map each service' path and >> > methods that it exposes. >> > >> > @Path("/say") >> > public class SayHello{ >> > >> > @GET >> > @Path("/hello") >> > public String hello(){ >> > return "Hello" >> > } >> > >> > The mapping for this could be >> > >> > <url-pattern>/say/hello<url-pattern> >> > >> > and not >> > >> > <url-pattern>/say/*<url-pattern> >> > >> > How does one deal with this. Is the a way to stop CXF from serving >> static >> > content if <url-pattern>/*<url-pattern> is used? >> > >> > Thank you. >> > >> > >> > -- >> > I keep six honest serving-men (They taught me all I knew); Their names >> are >> > What and Why and When And How and Where and Who. >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Rest-and-Static-Content-tp24792523p24822846.html >> Sent from the cxf-user mailing list archive at Nabble.com. >> >> > > > -- > I keep six honest serving-men (They taught me all I knew); Their names are > What and Why and When And How and Where and Who. > > -- View this message in context: http://www.nabble.com/Rest-and-Static-Content-tp24792523p24826165.html Sent from the cxf-user mailing list archive at Nabble.com.
