On 6/7/12 2:03 PM, Christopher Piggott wrote:
> Ahh, nuts.
>
> I think I figured it out. This did not work:
>
> http://localhost:8890/test
>
> so I tried changing the context to this:
>
> WebappContext ctx = new WebappContext("hub", "/crap");
>
> then, this worked:
>
> http://localhost:8890/crap/test
>
> but I don't want that, I want it at the root. So I changed it back to this:
>
> WebappContext ctx = new WebappContext("hub", "/");
>
>
> and discovered that this worked:
>
> http://localhost:8890//test
>
>
> so then I tried, somewhat randomly, an empty context path:
>
> WebappContext ctx = new WebappContext("hub", "/");
Hmm, "/" and "" should be treated the same. If it's not, then it's a
bug. I'll check this out shortly.
>
> and, holy smokes, this now works:
>
> http://localhost:8890/test
>
> That wasn't obvious to me AT ALL.
>
> I'm sorry to spam the list, but I want this documented for others.
> I'll try to pull together a concise blog post about it tonight.
>
> --Chris