Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Tomcat 5.5: j_security_check doesn 't read the form-passwords, log4j

Tomcat 5.5: j_security_check doesn 't read the form-passwords, log4j

2006-12-19       - By Gregor Schneider

 Back
Reply:     1     2  

Hi list,

problem-description is above.

I've defined a jdbc-realm in conf/server.xml, that is:

       <Realm className="org.apache.catalina.realm.JDBCRealm Source code of org.apache.catalina.realm.JDBCRealm"
           connectionPassword="xxx"
           debug="99"
           userCredCol="user_pass"
               userTable="users"
               driverName="org.gjt.mm.mysql.Driver Source code of org.gjt.mm.mysql.Driver"
               connectionURL="jdbc:mysql://db/authyela"
               connectionName="xxx"
           digest="MD5"
           userNameCol="user_name"
           userRoleTable="user_roles"
           roleNameCol="role_name" />

My form-login-page is (snippet):

     <form method="post" action="j_security_check">
     <table style="width: 342px; height: 114px;">
       <tbody>
           <tr>
           <td>User ID</td>
           <td><input name="j_username" size="20" maxlength="30"
type="text"/></td>
           <td>Password</td>
           <td style="text-align: left; vertical-align: middle; width: 80px;">
           <td><input name="j_password" size="20" maxlength="30"
type="password"/></td>
         </tr>
       </tbody>
     </table>
</form>

I do not think that my problem relates the the html since exactly the
same html-code is running on another machine with Tomcat 5.5

However, when I check my MySQL-Logs, I see the following:

061219 17:05:49       8 Prepare     [1] SELECT user_pass FROM users
WHERE user_name = ?
                     8 Execute     [1] SELECT user_pass FROM users
WHERE user_name = ''
                     8 Query       commit

That means that the user-credential somehow gets not passed from the
form to j_security_check

I'm kinda clueless, is there anybody out there having an idea?

I'd also like to know how to turn on logging (if possible) for j_security_check.

I've installed log4j, configured it and am getting a bunch of data,
however, nothing regarding j_security_check. Are there any parameters
that I can set to turn on logging for j_security_check?

Actually, I'd just like to see the post-data transferred from my
login-form to j_security_check.

TIA

Any hints appreciated

Greg






--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.