Hi Steven,

I am using this version:

<version>3.0.1</version>

Thanks

2016-11-28 10:14 GMT-02:00 Steven Walters <[email protected]>:

> On Mon, Nov 28, 2016 at 8:19 PM, Júnior <[email protected]> wrote:
> > Hi,
> >
> > I'm trying to register a servlet using the OSGI r6 annotations but It is
> > not working.
> >
> > Follow the configurations I am using:
> >
> > R6
> >
> > *@Component(service=Servlet.class,*
> >
> > *property = { *
> >
> > *     "sling.servlet.methods=GET",*
> >
> > *     "sling.servlet.paths=/system/mypath1",*
> >
> > *     "sling.servlet.paths=/system/mypath2",*
> >
> > *   },*
> >
> > *immediate=true*
> >
> > *)*
> >
> >
> > But When I use the @SlingServlet annotation it works:
> >
> > *@SlingServlet(paths={"/system/mypath1", "/system/mypath2"},
> > methods={"GET"})*
> >
> > Am I missing some configuration?
> >
> > Does someone have an example of this kind of configuration?
>
> Which version of maven-bundle-plugin (or bnd-maven-plugin) are you
> using in your build?
> If I recall correctly, the R6 annotations require the use of the 3.x
> versions of either of the plugins to have the annotations be processed
> appropriately.
>



-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*

Reply via email to