Well the best would be open an issue at Pax Web [1] and attach the sample project there :)
regards, Achim [1] - http://team.ops4j.org/browse/PAXWEB 2012/6/20 Alexey Romanov <[email protected]>: > Sure. I could put it on Dropbox or send it by email. > > Yours, Alexey Romanov > > > On Wed, Jun 20, 2012 at 11:25 AM, Achim Nierbeck [via Karaf] > <[email protected]> wrote: >> Do you have a simple sample for us to reproduce this? >> With this I could try to find out what could be the reason of it. >> >> regards, Achim >> >> 2012/6/20 Alexey Romanov <[hidden email]>: >> >>> I have a servlet which is registered using Declarative Services (in a >>> normal, >>> non-WAB bundle). If I register it using `alias = /`, it works fine: I can >>> go >>> to http://localhost:8282/ and see the page. But changing alias to >>> `/documents` doesn't. The logs show the servlet is still started and >>> registered with Pax Web: >>> >>> >>> 2012-06-20 10:12:53,399 | INFO | FelixStartLevel | DocumentServlet >>> | 52 - ru.focusmedia.odp.server.documents.http - 0.1.0 | Document servlet >>> started >>> 2012-06-20 10:12:53,403 | INFO | FelixStartLevel | >>> HttpServiceFactoryImpl >>> | 131 - org.ops4j.pax.web.pax-web-runtime - 1.0.9 | Binding bundle: >>> [ru.focusmedia.odp.server.documents.http [52]] to http service >>> 2012-06-20 10:12:53,405 | INFO | FelixStartLevel | ContextHandler >>> | - - | started >>> >>> HttpServiceContext{httpContext=DefaultHttpContext{bundle=ru.focusmedia.odp.server.documents.http >>> [52]}} >>> >>> >>> and the service is provided: >>> >>> >>> karaf@root> ls 52 >>> >>> ru.focusmedia.odp.server.documents.http (52) provides: >>> ------------------------------------------------------ >>> alias = /documents >>> component.id = 2 >>> component.name = ru.focusmedia.odp.server.documents.http.DocumentServlet >>> objectClass = javax.servlet.Servlet >>> service.id = 161 >>> ---- >>> objectClass = javax.servlet.ServletContext >>> osgi.web.symbolicname = ru.focusmedia.odp.server.documents.http >>> osgi.web.version = 0.1.0 >>> service.id = 166 >>> >>> >>> But going to http://localhost:8282/documents gives me a 404. Any ideas >>> what >>> the problem could be? >>> >>> In org.ops4j.pax.web.cfg I just have >>> >>> >>> org.osgi.service.http.port = 8282 >>> >>> -- >>> View this message in context: >>> http://karaf.922171.n3.nabble.com/Registering-servlet-under-alias-works-alias-documents-doesn-t-tp4024906.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/> >> >> >> ________________________________ >> If you reply to this email, your message will be added to the discussion >> below: >> http://karaf.922171.n3.nabble.com/Registering-servlet-under-alias-works-alias-documents-doesn-t-tp4024906p4024908.html >> To unsubscribe from Registering servlet under alias=/ works, >> alias=/documents doesn't, click here. >> NAML > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Registering-servlet-under-alias-works-alias-documents-doesn-t-tp4024906p4024909.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/>
