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 Wed, 10 Oct 2012 22:09:36 GMT
Hi,

after trying this now with various versions of Pax-Web I wasn't able
to reproduce it
with a testcase like in [1]. Though those tests where done with the
whiteboard-extension

regards, Achim

[1] - https://github.com/ops4j/org.ops4j.pax.web/blob/pax-web-2.1.x/itest/src/test/java/org/ops4j/pax/web/itest/RootAliasIntegrationTest.java

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
Lead
blog <http://notizblog.nierbeck.de/>

Mime
View raw message