Hi,

did you have a look at the web console plugin whether your servlet is
listed there? Maybe it is shadowed by something else.
Or in other words, yes this should work, it would register your servlet
with the default servlet context. If you have Sling running, then I
think this doesn't work as Sling is registering itself with the http
service at "/" which has precedence over the default http whiteboard
context (I think, but this should be visible from the web console plugin).
We really should use the whiteboard for Sling, I've already created an
issue for that and changes are minimal

Carsten

> Hi,
> 
> I'm trying to register a servlet based on the HTTP whiteboard spec from
> R6. The component descriptor looks like this:
> 
> <component name="...">
>   <implementation class="..."/>
>   <service>
>     <provide interface="javax.servlet.Servlet"/>
>   </service>
>   <property name="osgi.http.whiteboard.servlet.pattern"
> value="/analysis"/>
> </component>
> 
> However, that does not mount a servlet at /analysis, I get a 404. 
> 
> When I use the old 'alias' property, it works just fine.
> 
> Some relevant bundle versions:
> 
> - org.apache.felix.http.jetty 3.2.2
> - org.apache.felix.http.whiteboard 3.0.0
> 
> Am I doing something wrong or is this expected not to work?
> 
> Thanks,
> 
> Robert
> 


 

-- 
Carsten Ziegeler
Adobe Research Switzerland
[email protected]

Reply via email to