Hi, Thomas

Unfortunately it doesn't work in my case. I cannot access my servlet at all
- 404 error happened.

Best regards,
Olga


On Fri, Apr 3, 2009 at 1:56 PM, Thomas Joseph <[email protected]> wrote:

>
>
> On Fri, Apr 3, 2009 at 3:07 PM, Olga Kudryavtseva <
> [email protected]> wrote:
>
>> 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: /
>
>
> Instread of "/", try "" (blank), should work. Worked in my case - but I use
> Spring to supply the context name.
>
>>
>>
>>
>> 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
>>
>>
>
>
> --
> --
> Thanks and Regards,
>
> Thomas Joseph
>
> LinkedIn: http://www.linkedin.com/in/ethomasjoseph
> ------------------------------------------------------------
> Promote Open Source - Promote Liberty of Ideas and Software.
> ------------------------------------------------------------
>
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
>
>
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to