Here are some characteristics of my app:

   -

   Jetty 9.1.2
    -

   Windows 8.1, haven’t yet tried on Linux (probably not relevant)
    - App is a folder in webapps named ROOT
   - There’s no xml descriptor
   - The servlet is configured using annotations
   - The servlet is async

So very basic setup, configuration wise.


On Sat, Apr 5, 2014 at 3:27 AM, Jan Bartel <[email protected]> wrote:

> Nils,
>
> Using the standard test.war and test.xml from the jetty distro, and
> setting the context path to be "/", I haven't been able to reproduce
> this with jetty-9.1.3, nor actually with jetty-9.1.0. Can you reliably
> reproduce with the test webapp?
>
> Jan
>
> On 5 April 2014 14:05, Nils Kilden-Pedersen <[email protected]> wrote:
> > When running in the root context, request.getContextPath() returns null
> > rather than "" as expected.
> >
> >
> http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#getContextPath()
> >
> > This is on 9.1.2.
> >
> >
> > _______________________________________________
> > jetty-users mailing list
> > [email protected]
> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> >
>
>
>
> --
> Jan Bartel <[email protected]>
> www.webtide.com
> 'Expert Jetty/CometD developer,production,operations advice'
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to