Hi, On Tue, Jun 22, 2010 at 5:04 PM, Federico Paparoni <[email protected]> wrote: > ...The configuration of the servlet looks like this > > /** Sling Servlet registered with PDF extensions > * > * @scr.component immediate="true" metatype="no" > * @scr.service interface="javax.servlet.Servlet" > * > * @scr.property name="service.description" value="PDF Extension Servlet" > * @scr.property name="service.vendor" value="David Mini CMS" > * > * @scr.property name="sling.servlet.resourceTypes" > * value="sling/servlet/default" > * > * @scr.property name="sling.servlet.extensions" > * value = "pdf" > */
At first sight this looks good to me, you can also compare with test servlets found under http://svn.apache.org/repos/asf/sling/trunk/launchpad/integration-tests/ >...when I call in the browser I > see this error > >... > TIMER_START{org.apache.sling.servlets.get.DefaultGetServlet#0} > 0 (2010-06-22 16:57:55) LOG No renderer for extension pdf > 0 (2010-06-22 16:57:55) TIMER_START{handleError:status=404} > > Am I missing something to correctly handle the request? The DefaultGetServlet is called instead of your servlet - did you check that your servlet is started? It should be present in the "components" pane of the OSGi console. -Bertrand
