cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jérôme Herry <jherr...@gmail.com>
Subject Re: Services list page not shown (404)
Date Wed, 10 Nov 2010 10:19:54 GMT
I already tried but I also have a 404. It works if I do it on an endpoint,
e.g.  http://mypc:9000/api/myservice?_wadl
but I would like to have a WADL with all available services.
Maybe I have to add a provider but I don't know how and which one.

2010/11/10 Sergey Beryozkin <sberyozkin@gmail.com>

> Hi
>
> I think in this case the servlet transport is bypassed and no handler is
> available for "/services".
> "http://mypc:9000/?_wadl" should do it in this case.
>
> cheers, Sergey
>
> On Wed, Nov 10, 2010 at 10:00 AM, Jérôme Herry <jherry22@gmail.com> wrote:
>
> > Hi, I'm using CXF running a jetty server like this:
> >
> >       JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
> >       List rps = new Vector();
> >       rps.add(new SingletonResourceProvider(new VersionService()));
> >       rps.add(new SingletonResourceProvider(new LoginService()));
> >       ...
> >       sf.setResourceProviders(rps);
> >
> >       List schemas = new ArrayList();
> >       schemas.add("classpath:/versioning/versions.xsd");
> >       ...
> >       sf.setSchemaLocations(schemas);
> >
> >       sf.setAddress("http://mypc:9000");
> >
> sf.getInInterceptors().add(AuthenticationInterceptor.getInstance());
> >       sf.getOutInterceptors().add(OutInterceptor.getInstance());
> >
> >       sf.setStaticSubresourceResolution(true);
> >       sf.create();
> >
> > When I go to http://mypc:9000/services I have a 404 error. I would like
> to
> > have the WADL with all my REST services. How can I do it?
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message