RE: Form based Authentication / j_security_check not found

2001-12-18 Thread Larry Isaacs

I would recommend to first try sending all "/DSCservlet"
requests to Tomcat and make sure everything works correctly
that way.  Once that is done, then try allowing Apache to serve
some of the content.  That way you will know if problems
appear, they are configuration issues instead of web
application problems.

To map all requests to Tomcat, use:

  JkMount /DSCservlet ajp13
  JkMount /DSCservlet/* ajp13

This is what would be included in the default generated
conf/auto/mod_jk.conf.  When you are ready to try Apache
serving some of the content, add:

forwardAll="false"

to the  element in the server.xml.  This
will write an conf/auto/mod_jk.conf more suitable for this
case.  It will include any servlet mappings you have specified
in your web.xml plus some extras, like for "j_security_check".

Hope this helps,

Cheers,
Larry

> -Original Message-
> From: EDV Systembetrieb [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 10:37 AM
> To: [EMAIL PROTECTED]
> Subject: Form based Authentication / j_security_check not found
> 
> 
> Hi everybody again.
> I'm getting mad on configuring tomcat for my application.
> My be I do not know enough about java, but I have to "Learn 
> it by doing", so please be friendly.
> 
> I'm using form-based authentication and everything works 
> until I submit my login-ID
> If I put LoginForm.html in the servlet-dir, it pops-up, but 
> after entering my login-infos I get 
> "The requested URL /DSCservlet/j_security_check was not found 
> on this server".
> I know, LoginForm.html should be outside the protected area.
> But in my special example, something seems wrong with alias 
> in mod_jk.conf and/or some path in my config-files.
> I searched the mailing-list, but I do not understand the stuff.
> Please help before I'm getting mad
> 
> Thanks Sabine
> 
> my apps-DSC.xml:
> 
>  docBase="/webapps/SSL_apps/dsc/servlet"
> debug="0"
> crossContext="false"
> reloadable="true" >
> 
> 
> 
> 
> my mod_jk.conf
> ...
> Alias /DSCservlet "/webapps/SSL_apps/dsc/servlet"
> 
> Options Indexes FollowSymLinks
> 
> JkMount /DSCservlet/servlet/* ajp13
> JkMount /DSCservlet/*.jsp ajp13
> 
> AllowOverride None
> deny from all
> 
> 
> AllowOverride None
> deny from all
> 
> 
> /webapps/SSL_apps is HTTPS-protected by apache and document-root
> 
> /webapps/SSL_apps/dsc/upload.htm is my page for selecting 
> files for upload. After that, a login-screen should appear (it does).
> This page calls a servlet with 
>  enctype="MULTIPART/FORM-DATA" method="post" name ="EnterFiles">
> 
> Also in this directory "dsc" are the following files
> 
> ResultPageFooter.htm
> ResultPageHeader.htm
> servlet
> servlet/LoginError.html
> servlet/LoginForm.html
> servlet/META-INF
> servlet/META-INF/MANIFEST.MF
> servlet/WEB-INF
> servlet/WEB-INF/web.xml
> servlet/WEB-INF/classes
> servlet/WEB-INF/classes/FileUpload
> servlet/WEB-INF/classes/FileUpload/FileUploader.class
> servlet/WEB-INF/classes/FileUpload/FileUploadException.class
> servlet/WEB-INF/classes/FileUpload/Message.class
> servlet/WEB-INF/classes/FileUpload/UploadServlet.class
> servlet/WEB-INF/classes/properties
> servlet/WEB-INF/classes/properties/FileUpload.properties
> servlet/WEB-INF/classes/properties/FileUploadMessages.properties
> servlet/WEB-INF/classes/properties/FileUploadMessages_en.properties
> 
> my web.xml:
> 
>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> 
> UploadServlet
> 
> FileUpload.UploadServlet
> 
> 
> 
> DSC
> /*
> POST
> GET
> 
> 
> er_kunden
> 
> 
>  
> CONFIDENTIAL
> 
> 
> 
> FORM
> Eingangsregistratur DSC
> 
> 
> /LoginForm.html
> 
> /LoginError.html
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Form based Authentication / j_security_check not found

2001-12-18 Thread Bongiorno.Christian

There is a jsp based form login example in the "examples" directory. That whole 
directory over to your servlet directory,
change the login-config to use form based login (look at the example in 
~/webapps/examples/WEB-INF/web.xml) This is a copy and paste trick -- nothing else.

so...

mkdir ~/webapps//jsp

// this is all you need
cp ~/webapps/examples/jsp/security ~/webapps//jsp

hack this into the appropriate portion of !/webapps//WEB-INF/web.xml


  FORM
  Form based login
  
/jsp/protected/login.jsp
/jsp/protected/error.jsp
  



//and comment out the BASIC login-config using 

restart!

easy as pie!

This even does session caching for you!

Chris

-Original Message-
From: EDV Systembetrieb [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 10:37 AM
To: [EMAIL PROTECTED]
Subject: Form based Authentication / j_security_check not found


Hi everybody again.
I'm getting mad on configuring tomcat for my application.
My be I do not know enough about java, but I have to "Learn it by doing", so please be 
friendly.

I'm using form-based authentication and everything works until I submit my login-ID
If I put LoginForm.html in the servlet-dir, it pops-up, but after entering my 
login-infos I get 
"The requested URL /DSCservlet/j_security_check was not found on this server".
I know, LoginForm.html should be outside the protected area.
But in my special example, something seems wrong with alias in mod_jk.conf and/or some 
path in my config-files.
I searched the mailing-list, but I do not understand the stuff.
Please help before I'm getting mad

Thanks Sabine

my apps-DSC.xml:






my mod_jk.conf
...
Alias /DSCservlet "/webapps/SSL_apps/dsc/servlet"

Options Indexes FollowSymLinks

JkMount /DSCservlet/servlet/* ajp13
JkMount /DSCservlet/*.jsp ajp13

AllowOverride None
deny from all


AllowOverride None
deny from all


/webapps/SSL_apps is HTTPS-protected by apache and document-root

/webapps/SSL_apps/dsc/upload.htm is my page for selecting files for upload. After 
that, a login-screen should appear (it does).
This page calls a servlet with 


Also in this directory "dsc" are the following files

ResultPageFooter.htm
ResultPageHeader.htm
servlet
servlet/LoginError.html
servlet/LoginForm.html
servlet/META-INF
servlet/META-INF/MANIFEST.MF
servlet/WEB-INF
servlet/WEB-INF/web.xml
servlet/WEB-INF/classes
servlet/WEB-INF/classes/FileUpload
servlet/WEB-INF/classes/FileUpload/FileUploader.class
servlet/WEB-INF/classes/FileUpload/FileUploadException.class
servlet/WEB-INF/classes/FileUpload/Message.class
servlet/WEB-INF/classes/FileUpload/UploadServlet.class
servlet/WEB-INF/classes/properties
servlet/WEB-INF/classes/properties/FileUpload.properties
servlet/WEB-INF/classes/properties/FileUploadMessages.properties
servlet/WEB-INF/classes/properties/FileUploadMessages_en.properties

my web.xml:

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>


UploadServlet
FileUpload.UploadServlet



DSC
/*
POST
GET


er_kunden


 CONFIDENTIAL



FORM
Eingangsregistratur DSC

/LoginForm.html
/LoginError.html








--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Form based Authentication / j_security_check not found

2001-12-18 Thread Guido Medina

Wait, go back to the beginning and try very slow, I passed the same, the
problem with servlet is only in the web.xml file in your app, it is
transparent to Apache Web server, look at the standard examples that comes
with the Tomcat installation, first try as exercise to install the tomcat
from the beginning and run the standard applications, when you get it, try
applying changes and changes, DO NOT JUMP TOO HIGH FROM THE BEGINNING, my
prefered app server is the tomcat but in the begining is a headache, I can
tell. You are right, if you want to learn you have to teach you yourself,
start slow, with the standard and after apply few changes and so on.

Regards,

Guido.

P.S: The final exercise for you is to configure it with Virtual Host &
Servlet mapping.

-Original Message-
From: EDV Systembetrieb [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 11:37 AM
To: [EMAIL PROTECTED]
Subject: Form based Authentication / j_security_check not found


Hi everybody again.
I'm getting mad on configuring tomcat for my application.
My be I do not know enough about java, but I have to "Learn it by doing", so
please be friendly.

I'm using form-based authentication and everything works until I submit my
login-ID
If I put LoginForm.html in the servlet-dir, it pops-up, but after entering
my login-infos I get 
"The requested URL /DSCservlet/j_security_check was not found on this
server".
I know, LoginForm.html should be outside the protected area.
But in my special example, something seems wrong with alias in mod_jk.conf
and/or some path in my config-files.
I searched the mailing-list, but I do not understand the stuff.
Please help before I'm getting mad

Thanks Sabine

my apps-DSC.xml:






my mod_jk.conf
...
Alias /DSCservlet "/webapps/SSL_apps/dsc/servlet"

Options Indexes FollowSymLinks

JkMount /DSCservlet/servlet/* ajp13
JkMount /DSCservlet/*.jsp ajp13

AllowOverride None
deny from all


AllowOverride None
deny from all


/webapps/SSL_apps is HTTPS-protected by apache and document-root

/webapps/SSL_apps/dsc/upload.htm is my page for selecting files for upload.
After that, a login-screen should appear (it does).
This page calls a servlet with 


Also in this directory "dsc" are the following files

ResultPageFooter.htm
ResultPageHeader.htm
servlet
servlet/LoginError.html
servlet/LoginForm.html
servlet/META-INF
servlet/META-INF/MANIFEST.MF
servlet/WEB-INF
servlet/WEB-INF/web.xml
servlet/WEB-INF/classes
servlet/WEB-INF/classes/FileUpload
servlet/WEB-INF/classes/FileUpload/FileUploader.class
servlet/WEB-INF/classes/FileUpload/FileUploadException.class
servlet/WEB-INF/classes/FileUpload/Message.class
servlet/WEB-INF/classes/FileUpload/UploadServlet.class
servlet/WEB-INF/classes/properties
servlet/WEB-INF/classes/properties/FileUpload.properties
servlet/WEB-INF/classes/properties/FileUploadMessages.properties
servlet/WEB-INF/classes/properties/FileUploadMessages_en.properties

my web.xml:

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>


UploadServlet
FileUpload.UploadServlet



DSC
/*
POST
GET


er_kunden


 CONFIDENTIAL



FORM
Eingangsregistratur DSC

/LoginForm.html
/LoginError.html








--
To unsubscribe:   
For additional commands: 
Troubles with the list: