I have downloaded the snapshots from the 13th of September.
I have changed the web.xml. Basically I have removed everything except
the security-constraint tag where I have set the BASIC auth-method.
I have the classes which extends Appplication where I'm adding the resource
classes
public class PortoneApplication extends Application {
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> classes = new HashSet<Class<?>>();
classes.add(UserResourceImpl.class);
classes.add(AccountResourceImpl.class);
return classes;
}
}
But now I get 404 for every request. Am I missing something in the
configuration?
On Mon, Sep 10, 2012 at 8:28 AM, Romain Manni-Bucau
<[email protected]>wrote:
> ok so first you shouldn't need CXFNonSpringJaxrsServlet
>
> then i'll fix an issue we have with jaxrs (due to jersey work) in the
> following minutes (should be done @ 9am)
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau*
> *Blog: http://rmannibucau.wordpress.com*
>
>
>
>
> 2012/9/10 Luca Merolla <[email protected]>
>
> > I'm using the 1.1.0-SNAPSHOT from the 3rd of September.
> >
> > In my web.xml configuration I'm using the
> > org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
> > class and I have defined a javax.ws.rs.Application subclass where I
> > register the service classes.
> > I have the beans.xml under my WEB-INF folder.
> >
> > Then I have an @Inject annotation inside the service implementation class
> > which returns a null.
> >
> >
> > On Mon, Sep 10, 2012 at 12:06 AM, Romain Manni-Bucau
> > <[email protected]>wrote:
> >
> > > Did you try the snapshot?
> > > Le 9 sept. 2012 23:22, "Luca Merolla" <[email protected]> a
> écrit :
> > >
> > > > Hello,
> > > >
> > > > I have a REST application that I'm trying to configure to work with
> > CXF.
> > > Is
> > > > it possible that CDI inject is not supported on the REST service
> > classes
> > > or
> > > > I'm missing something?
> > > >
> > > > Luca
> > > >
> > >
>