HI Anders,

> Everything seems to work, if I register servlets (in the OSGi container) to 
> the path `/bundles/{servlet}`. That is — the OSGi component registering the 
> Servlet *needs* to know to which context path the proxy servlet is mapped.

Have a look at [1] where there ProxyServlet is registered with
'/osgi/*' and it works fine. The application is based on Felix Connect
and Spring Boot but the OSGi constructs used should be common to your
usecase

You can launch the app using

java -jar target/oak-standalone-1.4-SNAPSHOT.jar --server.contextPath=/foo

Then the Felix WebConsole is accessible at
http://localhost:8080/foo/osgi/system/console where 'foo' is
contextPath and 'osgi' is the path against which the ProxyServlet is
bound

Chetan Mehrotra
[1] 
https://github.com/apache/jackrabbit-oak/blob/trunk/oak-examples/standalone/src/main/java/org/apache/jackrabbit/oak/standalone/WebConsoleSupport.java

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org

Reply via email to