Re: Problems with authentication

2001-07-26 Thread Mattias Karlsvaerd

Thanks! Now it work fine!

 --- Andrew Robson
<[EMAIL PROTECTED]> wrote: > Hi,
>   If you get it to work in tomcat standalone (have
> you
> tried that?) then you need to add 
> JkMount
> /examples/jsp/security/login/j_security_check ajp13
> (or ajp12 if that's the connector you are using)
> to httpd.conf to get it to work with apache. 
> Otherwise apache won't know to delegate the handling
> of
> this url to tomcat.
> 
> andrew
> 
> On Thu, 26 Jul 2001, you wrote:
> > Thank you! this will help me understand how it
> works
> > with j_security_check, j_username and j_password
> > better.
> > But i still have the problem that the
> authorization
> > doesn't work with apcach + tomcat.
> > I've read that other people that have the problem
> have
> > got it to work on tomcat standalone server!?
> > 
> > 
> >  --- Joseph D Toussaint <[EMAIL PROTECTED]>
> > wrote: > It's my understanding that
> j_security_check,
> > > j_username and j_password
> > > are all used with form based authentication
> > > (specified in th web.xml).
> > > The idea is that you create a 'custom login
> screen'
> > > and name you user
> > > field j_username and your password j_password. 
> Then
> > > the action for that
> > > form is j_security_check.
> > > 
> > > Thats about the extent of my knowledge, for more
> > > information I'd look at
> > > the Servlet 2.3 spec.  Thats where I found the
> stuff
> > > mentioned above.
> > > 
> > > 
> > > hope it helps
> > > 
> > > 
> > > joe
> > > 
> > > 
> > > On 26 Jul 2001 15:15:08 +0200, Mattias
> Karlsvaerd
> > > wrote:
> > > > Hello!
> > > > 
> > > > I've have problems with getting the
> authorization
> > > to
> > > > work in tomcat 3.2.2 and Apache 1.3.19. I have
> > > tried
> > > > to the example comes with tomcat. I get the
> login
> > > > page, but when I've typed the username and
> > > password I
> > > > get the following error:
> > > > The requested URL
> > > > /examples/jsp/security/login/j_security_check
> was
> > > not
> > > > found on this server.
> > > > 
> > > > I've searched on the web and found out that
> other
> > > > people have had the same problem. Is there a
> > > solution
> > > > to this problem.
> > > > What I understand j_security_check, j_username
> and
> > > > j_password is some kind of implicit variables.
> Is
> > > > there any document where this specified.
> > > > 
> > > > I use linux Redhat 7.1 and IBM's java2 1.3
> > > > I would be thankful for any help
> > > > 
> > > > =
> > > > /Mattias Karlsvärd
> > > > 
> > > >
> > >
> >
>
_
> > > > Do You Yahoo!?
> > > > [EMAIL PROTECTED] - skaffa en gratis
> mailadress
> > > på http://mail.yahoo.se
> > > 
> > > 
> > > 
> > > -- 
> > > ##
> > > # Joseph Toussaint   #
> > > # Caribou Lake Software  #
> > > # http://www.cariboulake.com #
> > > # [EMAIL PROTECTED]   #
> > > # 952-837-98029  #
> > > ##
> > >  
> > 
> > =
> > /Mattias Karlsvärd
> > 
> >
>
_
> > Do You Yahoo!?
> > [EMAIL PROTECTED] - skaffa en gratis mailadress
> på http://mail.yahoo.se
> -- 
> 
> 
>  

=
/Mattias Karlsvärd

_
Do You Yahoo!?
[EMAIL PROTECTED] - skaffa en gratis mailadress på http://mail.yahoo.se



Re: Problems with authentication

2001-07-26 Thread Mattias Karlsvaerd

Thank you! this will help me understand how it works
with j_security_check, j_username and j_password
better.
But i still have the problem that the authorization
doesn't work with apcach + tomcat.
I've read that other people that have the problem have
got it to work on tomcat standalone server!?


 --- Joseph D Toussaint <[EMAIL PROTECTED]>
wrote: > It's my understanding that j_security_check,
> j_username and j_password
> are all used with form based authentication
> (specified in th web.xml).
> The idea is that you create a 'custom login screen'
> and name you user
> field j_username and your password j_password.  Then
> the action for that
> form is j_security_check.
> 
> Thats about the extent of my knowledge, for more
> information I'd look at
> the Servlet 2.3 spec.  Thats where I found the stuff
> mentioned above.
> 
> 
> hope it helps
> 
> 
> joe
> 
> 
> On 26 Jul 2001 15:15:08 +0200, Mattias Karlsvaerd
> wrote:
> > Hello!
> > 
> > I've have problems with getting the authorization
> to
> > work in tomcat 3.2.2 and Apache 1.3.19. I have
> tried
> > to the example comes with tomcat. I get the login
> > page, but when I've typed the username and
> password I
> > get the following error:
> > The requested URL
> > /examples/jsp/security/login/j_security_check was
> not
> > found on this server.
> > 
> > I've searched on the web and found out that other
> > people have had the same problem. Is there a
> solution
> > to this problem.
> > What I understand j_security_check, j_username and
> > j_password is some kind of implicit variables. Is
> > there any document where this specified.
> > 
> > I use linux Redhat 7.1 and IBM's java2 1.3
> > I would be thankful for any help
> > 
> > =
> > /Mattias Karlsvärd
> > 
> >
>
_
> > Do You Yahoo!?
> > [EMAIL PROTECTED] - skaffa en gratis mailadress
> på http://mail.yahoo.se
> 
> 
> 
> -- 
> ##
> # Joseph Toussaint   #
> # Caribou Lake Software  #
> # http://www.cariboulake.com #
> # [EMAIL PROTECTED]   #
> # 952-837-98029  #
> ##
>  

=
/Mattias Karlsvärd

_
Do You Yahoo!?
[EMAIL PROTECTED] - skaffa en gratis mailadress på http://mail.yahoo.se



Re: locating web.xml

2001-07-26 Thread Mattias Karlsvaerd

This is specified in the java servlet 2.3 spec.
srv 9.5.

 --- [EMAIL PROTECTED] wrote: > 
> Does tomcat require a WEB-INF directory? I would
> like to replace the
> default:
> \WEB-INF\classesdirectory with simply:
> \servlet
> and have my web.xml be in \servlet instead of
> \WEB-INF\classes
> 
> Is this possible?
> 
> 
> Jason E. Brawner
> Silenus Group
> (248) 735-8077
> 
> 
> 
>     
>   
> Mattias Karlsvaerd  
> 
>   
>  [EMAIL PROTECTED]  
>   
> @yahoo.se>   cc:
> 
>   
> 
> Subject: Re: locating web.xml   
>   
> 07/26/2001 10:27
> 
>   
> AM  
> 
>   
> Please respond to   
> 
>   
> tomcat-user 
> 
>   
> 
> 
>   
> 
> 
>   
> 
> 
> 
> 
> You can read the "Developing Applications With
> Tomcat"
> it discribes in steps how you could develop a
> webapplication with Tomcat and how the directorytree
> should look like. It's availible on tomcat's
> homepage.
> 
> The web.xml file should be placed in the WEB-INF dir
> in your docbase dir.
> You also have to define a context for your
> application
> in server.xml. This file can be found in the tomcat
> home dir in the conf dir.
> 
> --- [EMAIL PROTECTED] wrote: > I have created a
> new
> directory structure for my
> > servlet and jsp's.
> > Everything works ok except my servlet cannot find
> > its web.xml file. How do
> > I tell Tomcat (or the servlet) where it is?  I
> > currently have it in the
> > same directory as my servlet:
> >
> > C:\www\PSP\servlet\
> >
> > Thanks,
> >
> >
> > Jason E. Brawner
> >
> >
> 
> =
> /Mattias Karlsvärd
> 
>
_
> Do You Yahoo!?
> [EMAIL PROTECTED] - skaffa en gratis mailadress på
> http://mail.yahoo.se
> 
> 
> 
>  

=
/Mattias Karlsvärd

_
Do You Yahoo!?
[EMAIL PROTECTED] - skaffa en gratis mailadress på http://mail.yahoo.se



Re: locating web.xml

2001-07-26 Thread Mattias Karlsvaerd

You can read the "Developing Applications With Tomcat"
it discribes in steps how you could develop a
webapplication with Tomcat and how the directorytree
should look like. It's availible on tomcat's homepage.

The web.xml file should be placed in the WEB-INF dir
in your docbase dir.
You also have to define a context for your application
in server.xml. This file can be found in the tomcat
home dir in the conf dir.
 
--- [EMAIL PROTECTED] wrote: > I have created a new
directory structure for my
> servlet and jsp's.
> Everything works ok except my servlet cannot find
> its web.xml file. How do
> I tell Tomcat (or the servlet) where it is?  I
> currently have it in the
> same directory as my servlet:
> 
> C:\www\PSP\servlet\
> 
> Thanks,
> 
> 
> Jason E. Brawner
> 
>  

=
/Mattias Karlsvärd

_
Do You Yahoo!?
[EMAIL PROTECTED] - skaffa en gratis mailadress på http://mail.yahoo.se



Problems with authentication

2001-07-26 Thread Mattias Karlsvaerd

Hello!

I've have problems with getting the authorization to
work in tomcat 3.2.2 and Apache 1.3.19. I have tried
to the example comes with tomcat. I get the login
page, but when I've typed the username and password I
get the following error:
The requested URL
/examples/jsp/security/login/j_security_check was not
found on this server.

I've searched on the web and found out that other
people have had the same problem. Is there a solution
to this problem.
What I understand j_security_check, j_username and
j_password is some kind of implicit variables. Is
there any document where this specified.

I use linux Redhat 7.1 and IBM's java2 1.3
I would be thankful for any help

=
/Mattias Karlsvärd

_
Do You Yahoo!?
[EMAIL PROTECTED] - skaffa en gratis mailadress på http://mail.yahoo.se