Hi, On Mon, 2016-07-25 at 14:37 -0500, Carsten Ziegeler wrote: > Hi, > > did you have a look at the web console plugin whether your servlet is > listed there? Maybe it is shadowed by something else.
If you mean http://localhost:8080/system/console/httpservice, it's not listed there. > 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). Yes, I am running Sling. > We really should use the whiteboard for Sling, I've already created > an > issue for that and changes are minimal I've added a disabled test case to svn, see https://issues.apache.org/jira/browse/SLING-5931 Robert > > 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 > > > > > >
