karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Achim Nierbeck <bcanh...@googlemail.com>
Subject Re: HttpService overlapping paths
Date Tue, 09 Oct 2012 13:43:40 GMT
Hi Thomas,

do you mind opening an issue for this at pax-web?
This looks a lot like an issue there, it might be fixed with a newer version
though I need to check.

I'm gonna try to tackle this down asap.

regards, Achim

2012/10/9 Thomas Zimmermann <zimmermann.tho@googlemail.com>:
> Hi everybody.
> I am having trouble with the HttpService when servlet paths of registered
> servlets are overlapping.
> For example: I register servlets on "/root" and "/root/path" with the
> HttpService.
> The GET method of the servlet on "/root" is called when I access its URL in
> a browser (http://localhost:8181/root as default), so everything is fine.
> However, if I try to access "/root/path", the servlet registered with
> "/root" is called and NOT the one registered on "/root/path".
> Do I misunderstand the specification or am I doing something wrong?
> This is the code I am using to register both servlets.
> I am accessing the HttpService through blueprint, init and destroy are the
> init-method and destroy-method of the ServletRegisterer bean.
> I can attach a fully functional example project if that is needed.
> To reproduce:
> 1. Download Karaf 2.2.9 for windows
> 2. Run features:install http
> 3. Deploy the code above
> Thank you very much in advance, Karaf is great so far. :)
> --
> View this message in context: http://karaf.922171.n3.nabble.com/HttpService-overlapping-paths-tp4026331.html
> Sent from the Karaf - User mailing list archive at Nabble.com.


Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
Committer & Project Lead
OPS4J Pax for Vaadin
<http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project
blog <http://notizblog.nierbeck.de/>

View raw message