Hi,

2010/6/22 Bertrand Delacretaz <[email protected]>

> 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/
>
>
I didn't find a complete example about an additional extension, only
integration test servlets. Is there something like this?


> >...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.
>
>
There isn't the servlet in this panel. Anyway the installation is ok, but
the servlet isn't registered.
As I said, I only wrote the annotations in the servlet

http://code.google.com/p/davidgsoc2010/source/browse/trunk/src/main/java/sling/gsoc/david/servlet/PdfExtension.java


Nothing else to setup?

-- 
Federico

Reply via email to