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.
