Hi all,

I want to access my application directly from http://myhost:myport, without
application name specified in URL.
I tried to use Webapp-Context in osgi.bnd file like this:

Webapp-Context: /


But I received an exception from jetty:

java.lang.IllegalArgumentException: ends with /
        at
org.mortbay.jetty.handler.ContextHandler.setContextPath(ContextHandler.java:912)
        at org.mortbay.jetty.servlet.Context.<init>(Context.java:124)
        at org.mortbay.jetty.servlet.Context.<init>(Context.java:72)
        at
org.ops4j.pax.web.service.internal.HttpServiceContext.<init>(HttpServiceContext.java:69)
        at
org.ops4j.pax.web.service.internal.JettyServerWrapper.addContext(JettyServerWrapper.java:93)
        at
org.ops4j.pax.web.service.internal.JettyServerWrapper.getOrCreateContext(JettyServerWrapper.java:79)
        at
org.ops4j.pax.web.service.internal.JettyServerImpl.addServlet(JettyServerImpl.java:116)
        at
org.ops4j.pax.web.service.internal.ServerControllerImpl$Started.addServlet(ServerControllerImpl.java:214)
        at
org.ops4j.pax.web.service.internal.ServerControllerImpl.addServlet(ServerControllerImpl.java:90)
        at
org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:287)
        at
org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:247)
...


Can you please advice me how to manage this problem?

Thank you in advance,
Olga Kudryavtseva,
www.griddynamics.com
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to