Re: Servlet registration: sling.servlet.extensions ignored with default resource type

2009-08-04 Thread Vidar Ramdal
2009/7/30 Vidar Ramdal vi...@idium.no: What is the intended behavior for a servlet that is registered as follows:  * @scr.property name=sling.servlet.extensions value=html  * @scr.property name=sling.servlet.resourceTypes value=sling/servlet/default  * @scr.property name=sling.servlet.methods

Re: Servlet registration: sling.servlet.extensions ignored with default resource type

2009-08-04 Thread Vidar Ramdal
2009/8/4 Vidar Ramdal vi...@idium.no: 2009/7/30 Vidar Ramdal vi...@idium.no: What is the intended behavior for a servlet that is registered as follows:  * @scr.property name=sling.servlet.extensions value=html  * @scr.property name=sling.servlet.resourceTypes value=sling/servlet/default  *

Re: Servlet registration: sling.servlet.extensions ignored with default resource type

2009-08-04 Thread Carsten Ziegeler
Bertrand Delacretaz wrote: On Tue, Aug 4, 2009 at 9:23 AM, Vidar Ramdalvi...@idium.no wrote: 2009/7/30 Vidar Ramdal vi...@idium.no: What is the intended behavior for a servlet that is registered as follows: * @scr.property name=sling.servlet.extensions value=html ... * @scr.property

Re: Servlet registration: sling.servlet.extensions ignored with default resource type

2009-08-04 Thread Bertrand Delacretaz
On Tue, Aug 4, 2009 at 10:08 AM, Carsten Ziegelercziege...@apache.org wrote: Bertrand Delacretaz wrote: ...if a servlet is registered with sling.servlet.extensions = html, it should not process any request that doesn't have an html extension. Hmm not sure :) I guess this boils down to the

Re: Servlet registration: sling.servlet.extensions ignored with default resource type

2009-08-04 Thread Vidar Ramdal
2009/8/4 Carsten Ziegeler cziege...@apache.org: Bertrand Delacretaz wrote: On Tue, Aug 4, 2009 at 10:08 AM, Carsten Ziegelercziege...@apache.org wrote: Bertrand Delacretaz wrote: ...if a servlet is registered with sling.servlet.extensions = html, it should not process any request that

Re: Servlet registration: sling.servlet.extensions ignored with default resource type

2009-08-03 Thread Carsten Ziegeler
Alexander Klimetschek wrote: On Fri, Jul 31, 2009 at 11:06 AM, Vidar Ramdalvi...@idium.no wrote: No, I used only the old-fashioned Javadoc method, but should that make a difference? You are right, it should not make a difference, but the bug could only be in the QDox based way. With QDox,

Re: Servlet registration: sling.servlet.extensions ignored with default resource type

2009-08-03 Thread Alexander Klimetschek
On Mon, Aug 3, 2009 at 5:04 PM, Carsten Ziegelercziege...@apache.org wrote: We follow the DS spec and therefore do not read the annotations at runtime. They're read by the SCR plugin during build time (again with QDox) I thought one of the main reasons for Java annotations was to support

Re: Servlet registration: sling.servlet.extensions ignored with default resource type

2009-08-03 Thread Carsten Ziegeler
Alexander Klimetschek wrote: On Mon, Aug 3, 2009 at 5:04 PM, Carsten Ziegelercziege...@apache.org wrote: We follow the DS spec and therefore do not read the annotations at runtime. They're read by the SCR plugin during build time (again with QDox) I thought one of the main reasons for Java

Re: Servlet registration: sling.servlet.extensions ignored with default resource type

2009-07-31 Thread Dominik Süß
Hi Vidar, did you give the Javaannotations a try (@SlingServlet [1]), we currently only work with those instead of QDox and if I remember right I've seen a testcomponent with the selectors which worked. The SlingServlet annotation can be found in the felix scr annotations. Best regards, Dominik

Re: Servlet registration: sling.servlet.extensions ignored with default resource type

2009-07-31 Thread Alexander Klimetschek
On Fri, Jul 31, 2009 at 11:06 AM, Vidar Ramdalvi...@idium.no wrote: No, I used only the old-fashioned Javadoc method, but should that make a difference? You are right, it should not make a difference, but the bug could only be in the QDox based way. With QDox, the properties are read from the

Re: Servlet registration: sling.servlet.extensions ignored with default resource type

2009-07-31 Thread Vidar Ramdal
2009/7/31 Alexander Klimetschek aklim...@day.com: On Fri, Jul 31, 2009 at 11:06 AM, Vidar Ramdalvi...@idium.no wrote: Also, I see that if I drop the sling.servlet.extensions property, the servlet seems to be registered as expected: * @scr.property name=sling.servlet.extensions value=html *

Re: Servlet registration: sling.servlet.extensions ignored with default resource type

2009-07-31 Thread Vidar Ramdal
On Fri, Jul 31, 2009 at 11:06 AM, Vidar Ramdalvi...@idium.no wrote: Also, I see that if I drop the sling.servlet.extensions property, the servlet seems to be registered as expected: * @scr.property name=sling.servlet.extensions value=html * @scr.property name=sling.servlet.resourceTypes

Servlet registration: sling.servlet.extensions ignored with default resource type

2009-07-30 Thread Vidar Ramdal
What is the intended behavior for a servlet that is registered as follows: * @scr.property name=sling.servlet.extensions value=html * @scr.property name=sling.servlet.resourceTypes value=sling/servlet/default * @scr.property name=sling.servlet.methods values.0=GET values.1=POST It seems that