> JDBC Realm has a couple of problems, for those of you using it.
>
> 1) It has to change pretty radically between 3.2.1 and 3.3.1.
> It looks
> like some of the
> code in 3.2.1 is never called.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
most likely. i'm using tomcat 3.2.1 and after mySQL closes the connection,
tomcat tries to reconnect, but for no apparent reason is not providing any
password!!!! but changing connection String to
"jdbc:mysql://localhost/database?user=me&password=secret" does the
trick. however, now after reconnection tomcat cannot get a role associated
with a user. anybody knows why?
this is what tomcat logs:
------------------
2001-03-02 08:04:53 - ContextManager: JDBCRealm: Auth ok, user=user1
2001-03-02 08:04:53 - ContextManager: JDBCRealm: Controled access for user1
R( + /protected/panel.jsp + null) Ct
(jsp(org.apache.jasper.servlet.JspServlet/null) )
2001-03-02 08:04:53 - ContextManager: JDBCRealm: There was an SQLException
while in getUserRoles: user1
2001-03-02 08:04:53 - ContextManager: JDBCRealm: SQLException:
java.sql.SQLException: Communication link failure: java.io.IOException
2001-03-02 08:04:53 - ContextManager: JDBCRealm: Auth ok, user has no roles
2001-03-02 08:04:53 - ContextManager: JDBCRealm: UnAuthorized test
2001-03-02 08:06:26 - ContextManager: JDBCRealm: The database connection is
null
would you recommend upgrading tomcat?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]