> Hi, > > On Tue, Jun 22, 2010 at 11:35 PM, Federico Paparoni > <[email protected]> wrote: >> ...the installation is ok, but >> the servlet isn't registered..,, >> >> http://code.google.com/p/davidgsoc2010/source/browse/trunk/src/main/java/sling/gsoc/david/servlet/PdfExtension.java
On Wed, Jun 23, 2010 at 12:10 AM, Bertrand Delacretaz <[email protected]> wrote: > Weird problem - you had two comment blocks before the servlet class, > so the first block with @scr javadoc tags is ignored. > > With the patch below, your servlet works for me, handling .pdf extensions. > [...] Federico, maybe you already know, but you could also use 'real' Java annotations instead of the ones embedded in Javadocs. The javadoc annotation parser has some weird issues with it (as you obviusly has seen). See http://felix.apache.org/site/apache-felix-maven-scr-plugin.html for more on the annotations. In short, what you do is replace /** scr.component **/ with @Component (not wrapped in comments), /** scr.property **/ with @Property and so on. I usually prefer these annotations, because you can easily use Java constants as values, making refactoring easier. Also, IDE support is much better. Note that you cannot mix old-style and new-style annotations in the same file. -- Vidar S. Ramdal <[email protected]> - http://www.idium.no Sommerrogata 13-15, N-0255 Oslo, Norway + 47 22 00 84 00 / +47 22 00 84 76 Quando omni flunkus moritatus!
