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?

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

Reply via email to