You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bo...@apache.org on 2001/09/27 10:23:06 UTC

cvs commit: jakarta-tomcat/src/doc mod_jk-howto.html

bojan       01/09/27 01:23:06

  Modified:    src/doc  mod_jk-howto.html
  Log:
  Added j_security_check FAQ
  
  Revision  Changes    Path
  1.13      +63 -1     jakarta-tomcat/src/doc/mod_jk-howto.html
  
  Index: mod_jk-howto.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/doc/mod_jk-howto.html,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- mod_jk-howto.html	2001/08/02 17:15:47	1.12
  +++ mod_jk-howto.html	2001/09/27 08:23:06	1.13
  @@ -892,8 +892,70 @@
   </blockquote>
   Note: The above steps assume that you downloaded the Apache source and
   placed it in your /usr/local/src directory.
  -<br>
  +<h3>
  +Q. Why doesn't my form authentication work? I'm getting similar error messages
  +from Apache:</h3>
  +
  +<table class="inlinetable"><tr><td class="inlinetd">
  +<blockquote><pre>Not Found
  +The requested URL /login/j_security_check was not found on this server.
  +</pre></blockquote>
  +</td></tr></table>
  +
  +A. If you used manual configuration such as:
  +
  +<table class="inlinetable"><tr><td class="inlinetd">
  +<blockquote><pre>
  +JkMount /*.jsp ajp13
  +</pre></blockquote>
  +</td></tr></table>
  +
  +or
  +
  +<table class="inlinetable"><tr><td class="inlinetd">
  +<blockquote><pre>
  +JkMount /*.vm ajp13
  +</pre></blockquote>
  +</td></tr></table>
  +
  +mod_jk will pass requests for all JSP or Velocity pages to Tomcat. If some of
  +those pages are configured as login and error pages in web.xml:
  +
  +<table class="inlinetable"><tr><td class="inlinetd">
  +<blockquote><pre>
  +&lt;login-config&gt;
  +  &lt;auth-method&gt;FORM&lt;/auth-method&gt;
  +  &lt;realm-name&gt;Protected&lt;/realm-name&gt;
  +  &lt;form-login-config&gt;
  +    &lt;form-login-page&gt;/login/login.vm&lt;/form-login-page&gt;
  +    &lt;form-error-page&gt;/login/error.vm&lt;/form-error-page&gt;
  +  &lt;/form-login-config&gt;
  +&lt;/login-config&gt;
  +</pre></blockquote>
  +</td></tr></table>
  +
  +there is also another, somewhat hidden request involved in the authentication
  +process: <strong>/login/j_security_check</strong>, which is the 'action' of the
  +form specified within <strong>login.vm</strong> and <strong>error.vm</strong>
  +like this:
  +
  +<table class="inlinetable"><tr><td class="inlinetd">
  +<blockquote><pre>
  +&lt;form method=&quot;post&quot; action=&quot;j_security_check&quot;&gt;
  +</pre></blockquote>
  +</td></tr></table>
  +
  +This request is not mapped. This following fixes the problem:
  +
  +<table class="inlinetable"><tr><td class="inlinetd">
  +<blockquote><pre>
  +JkMount /*.vm ajp13
  +JkMount /login/j_security_check ajp13
  +</pre></blockquote>
  +</td></tr></table>
  +
   <hr>
  +
   <h2>
   <a NAME="s11"></a>Credits</h2>
   This document was originally created by
  
  
  

Re: cvs commit: jakarta-tomcat/src/doc mod_jk-howto.html

Posted by Bojan Smojver <bo...@binarix.com>.
Christopher Cain wrote:
> 
> Quoting Bojan Smojver <bo...@binarix.com>:
> 
> > Christopher Cain wrote:
> >
> > > jakarta-tomcat/src/doc mod_jk-howto.html? That would be quite a trick
> > ;-)
> >
> > This one flew straight over my head. ???
> 
> I mean that I congratulated you on your first commit, which was "jakarta-
> tomcat/src/doc/mod_jk-howto.html" (like in the subject line :). I'm not sure
> how my congratulations got mixed up with the Vector problem that caused the
> build failure, so I was just remarking that it would be quite a neat trick if
> you could modify "mod_jk-how.html" to break the build :)

The Vector thingy was the first commit, actually, but it was mailed only
later (still unsure why - someone mentioned some moderation stuff, but I
thought it was a joke).

I'm efficient - I break things first go ;-)

Bojan

Re: cvs commit: jakarta-tomcat/src/doc mod_jk-howto.html

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Thu, 27 Sep 2001, Christopher Cain wrote:

> Date: Thu, 27 Sep 2001 22:35:04 -0600 (MDT)
> From: Christopher Cain <cc...@mhsoftware.com>
> Reply-To: tomcat-dev@jakarta.apache.org
> To: tomcat-dev@jakarta.apache.org
> Subject: Re: cvs commit: jakarta-tomcat/src/doc mod_jk-howto.html
>
> Quoting Bojan Smojver <bo...@binarix.com>:
>
> > Christopher Cain wrote:
> >
> > > jakarta-tomcat/src/doc mod_jk-howto.html? That would be quite a trick
> > ;-)
> >
> > This one flew straight over my head. ???
>
> I mean that I congratulated you on your first commit, which was "jakarta-
> tomcat/src/doc/mod_jk-howto.html" (like in the subject line :). I'm not sure
> how my congratulations got mixed up with the Vector problem that caused the
> build failure, so I was just remarking that it would be quite a neat trick if
> you could modify "mod_jk-how.html" to break the build :)
>
> > > Also, I was just verifying something with TC 3.3 + JDK 1.1 before I
> > > update a doc, so I didn't stress it too much when the build failed
> > =)
> >
> > I just have one message for myself right now: RTFM!
>
> My first non-documentation commit briefly rendered authentication passwords
> case-insensitive (and might still be if not for the ever-perceptive Nacho), so
> don't feel too bad. I think it's actually a cosmic rule that one has to
> introduce a problem with one of their first commits. :)
>

I wouldn't worry too much ... after around 1000 commits to Tomcat, it's
still just as easy to introduce a problem :-).  The good news is that such
problems are usually visible pretty quickly due to the open source nature
of the project.

> - Christopher
>

Craig (speaking from experience ...)


Re: cvs commit: jakarta-tomcat/src/doc mod_jk-howto.html

Posted by Christopher Cain <cc...@mhsoftware.com>.
Quoting cmanolache@yahoo.com:

> On Thu, 27 Sep 2001, Christopher Cain wrote:
> 
> > My first non-documentation commit briefly rendered authentication
> passwords
> > case-insensitive (and might still be if not for the ever-perceptive
> Nacho), so
> > don't feel too bad. I think it's actually a cosmic rule that one has
> to
> > introduce a problem with one of their first commits. :)
> 
> Yes, Nacho is catching most of my errors too. And it doesn't happen
> only on the first commits :-)

... or only on the 3.x branch, either. My password-comparison mistake was in 
the 4.0 tree. He's just one of those nosey people who looks at *everybody's* 
code ... may he live long and continue to do so!! :)

- Christopher

/**
 * Pleurez, pleurez, mes yeux, et fondez vous en eau!
 * La moitié de ma vie a mis l'autre au tombeau.
 *    ---Corneille
 */

Re: cvs commit: jakarta-tomcat/src/doc mod_jk-howto.html

Posted by cm...@yahoo.com.
On Thu, 27 Sep 2001, Christopher Cain wrote:

> My first non-documentation commit briefly rendered authentication passwords
> case-insensitive (and might still be if not for the ever-perceptive Nacho), so
> don't feel too bad. I think it's actually a cosmic rule that one has to
> introduce a problem with one of their first commits. :)

Yes, Nacho is catching most of my errors too. And it doesn't happen only
on the first commits :-)

Costin


Re: cvs commit: jakarta-tomcat/src/doc mod_jk-howto.html

Posted by Christopher Cain <cc...@mhsoftware.com>.
Quoting Bojan Smojver <bo...@binarix.com>:

> Christopher Cain wrote:
>
> > jakarta-tomcat/src/doc mod_jk-howto.html? That would be quite a trick
> ;-)
> 
> This one flew straight over my head. ???

I mean that I congratulated you on your first commit, which was "jakarta-
tomcat/src/doc/mod_jk-howto.html" (like in the subject line :). I'm not sure 
how my congratulations got mixed up with the Vector problem that caused the 
build failure, so I was just remarking that it would be quite a neat trick if 
you could modify "mod_jk-how.html" to break the build :)

> > Also, I was just verifying something with TC 3.3 + JDK 1.1 before I
> > update a doc, so I didn't stress it too much when the build failed
> =)
> 
> I just have one message for myself right now: RTFM!

My first non-documentation commit briefly rendered authentication passwords 
case-insensitive (and might still be if not for the ever-perceptive Nacho), so 
don't feel too bad. I think it's actually a cosmic rule that one has to 
introduce a problem with one of their first commits. :)

- Christopher

/**
 * Pleurez, pleurez, mes yeux, et fondez vous en eau!
 * La moitié de ma vie a mis l'autre au tombeau.
 *    ---Corneille
 */

Re: cvs commit: jakarta-tomcat/src/doc mod_jk-howto.html

Posted by Bojan Smojver <bo...@binarix.com>.
Christopher Cain wrote:
> 
> Bojan Smojver wrote:
> > Christopher Cain wrote:
> >
> >>First commit! =)
> >>
> >>[getting Bojan in a headlock and giving him a noogie]
> >>
> >
> > Thanks dude, but unfortunately it was (now the infamous) JDK 1.1.x issue
> > one.
> >
> 
> jakarta-tomcat/src/doc mod_jk-howto.html? That would be quite a trick ;-)

This one flew straight over my head. ???

> Also, I was just verifying something with TC 3.3 + JDK 1.1 before I
> update a doc, so I didn't stress it too much when the build failed =)

I just have one message for myself right now: RTFM!

Bojan

Re: cvs commit: jakarta-tomcat/src/doc mod_jk-howto.html

Posted by Christopher Cain <cc...@mhsoftware.com>.
Bojan Smojver wrote:
> Christopher Cain wrote:
> 
>>First commit! =)
>>
>>[getting Bojan in a headlock and giving him a noogie]
>>
> 
> Thanks dude, but unfortunately it was (now the infamous) JDK 1.1.x issue
> one.
> 

jakarta-tomcat/src/doc mod_jk-howto.html? That would be quite a trick ;-)

Also, I was just verifying something with TC 3.3 + JDK 1.1 before I 
update a doc, so I didn't stress it too much when the build failed =)

- Christopher

P.S.  It works now, btw. Thanks!

/**
  * Pleurez, pleurez, mes yeux, et fondez vous en eau!
  * La moitié de ma vie a mis l'autre au tombeau.
  *    ---Corneille
  */


Re: cvs commit: jakarta-tomcat/src/doc mod_jk-howto.html

Posted by Bojan Smojver <bo...@binarix.com>.
Christopher Cain wrote:
> 
> First commit! =)
> 
> [getting Bojan in a headlock and giving him a noogie]

Thanks dude, but unfortunately it was (now the infamous) JDK 1.1.x issue
one.

:-(((

Bojan

Re: cvs commit: jakarta-tomcat/src/doc mod_jk-howto.html

Posted by Christopher Cain <cc...@mhsoftware.com>.
First commit! =)

[getting Bojan in a headlock and giving him a noogie]

bojan@apache.org wrote:
> bojan       01/09/27 01:23:06
> 
>   Modified:    src/doc  mod_jk-howto.html
>   Log:
>   Added j_security_check FAQ
>   
>   Revision  Changes    Path
>   1.13      +63 -1     jakarta-tomcat/src/doc/mod_jk-howto.html
>   
>   Index: mod_jk-howto.html
>   ===================================================================
>   RCS file: /home/cvs/jakarta-tomcat/src/doc/mod_jk-howto.html,v
>   retrieving revision 1.12
>   retrieving revision 1.13
>   diff -u -r1.12 -r1.13
>   --- mod_jk-howto.html	2001/08/02 17:15:47	1.12
>   +++ mod_jk-howto.html	2001/09/27 08:23:06	1.13
>   @@ -892,8 +892,70 @@
>    </blockquote>
>    Note: The above steps assume that you downloaded the Apache source and
>    placed it in your /usr/local/src directory.
>   -<br>
>   +<h3>
>   +Q. Why doesn't my form authentication work? I'm getting similar error messages
>   +from Apache:</h3>
>   +
>   +<table class="inlinetable"><tr><td class="inlinetd">
>   +<blockquote><pre>Not Found
>   +The requested URL /login/j_security_check was not found on this server.
>   +</pre></blockquote>
>   +</td></tr></table>
>   +
>   +A. If you used manual configuration such as:
>   +
>   +<table class="inlinetable"><tr><td class="inlinetd">
>   +<blockquote><pre>
>   +JkMount /*.jsp ajp13
>   +</pre></blockquote>
>   +</td></tr></table>
>   +
>   +or
>   +
>   +<table class="inlinetable"><tr><td class="inlinetd">
>   +<blockquote><pre>
>   +JkMount /*.vm ajp13
>   +</pre></blockquote>
>   +</td></tr></table>
>   +
>   +mod_jk will pass requests for all JSP or Velocity pages to Tomcat. If some of
>   +those pages are configured as login and error pages in web.xml:
>   +
>   +<table class="inlinetable"><tr><td class="inlinetd">
>   +<blockquote><pre>
>   +&lt;login-config&gt;
>   +  &lt;auth-method&gt;FORM&lt;/auth-method&gt;
>   +  &lt;realm-name&gt;Protected&lt;/realm-name&gt;
>   +  &lt;form-login-config&gt;
>   +    &lt;form-login-page&gt;/login/login.vm&lt;/form-login-page&gt;
>   +    &lt;form-error-page&gt;/login/error.vm&lt;/form-error-page&gt;
>   +  &lt;/form-login-config&gt;
>   +&lt;/login-config&gt;
>   +</pre></blockquote>
>   +</td></tr></table>
>   +
>   +there is also another, somewhat hidden request involved in the authentication
>   +process: <strong>/login/j_security_check</strong>, which is the 'action' of the
>   +form specified within <strong>login.vm</strong> and <strong>error.vm</strong>
>   +like this:
>   +
>   +<table class="inlinetable"><tr><td class="inlinetd">
>   +<blockquote><pre>
>   +&lt;form method=&quot;post&quot; action=&quot;j_security_check&quot;&gt;
>   +</pre></blockquote>
>   +</td></tr></table>
>   +
>   +This request is not mapped. This following fixes the problem:
>   +
>   +<table class="inlinetable"><tr><td class="inlinetd">
>   +<blockquote><pre>
>   +JkMount /*.vm ajp13
>   +JkMount /login/j_security_check ajp13
>   +</pre></blockquote>
>   +</td></tr></table>
>   +
>    <hr>
>   +
>    <h2>
>    <a NAME="s11"></a>Credits</h2>
>    This document was originally created by
>   
>   
>   
> 


-- 
- Christopher

/**
  * Pleurez, pleurez, mes yeux, et fondez vous en eau!
  * La moitié de ma vie a mis l'autre au tombeau.
  *    ---Corneille
  */