Juergen Weber schrieb:
> Hi,
> 
> to get a shorter URL, I tried JSPWiki as Tomcat's ROOT context (by
> unzipping the war into ..../webapps/ROOT).
> 
> The Main page comes up with http://localhost:8080/wiki/
> but when I try to log in there is an error
> 
> HTTP Status 400 - Invalid direct reference to form login page
> 
> type Status report
> 
> message Invalid direct reference to form login page
> 
> description The request sent by the client was syntactically incorrect
> (Invalid direct reference to form login page).
> Apache Tomcat/6.0.14

Using container based login (form login) there's one caveat: if you
start on http://localhost:8080 and are somehow redirected (note: JSPWiki
might know your servers name if configured so) to
http://my-host-name:8080/... the server won't get the cookie with the
session id (it'd be sent to localhost) but will generate a new one.
Unfortunately it doesn't know where to redirect you to once you are
logged in and thus displays this error message. Try starting on your
configured host name instead of localhost.

Cheers,
Olaf

Reply via email to