Hi

Trying to plug MySql to tomcat (win 2k),I followed the installation
instructions and
MySql works fine (the ODBC driver also) with the "authority" database.
I added the mm.mysql-2.0.1-bin.jar in the \jakarta-tomcat-3.2.1\lib
directory too.

So,

When I add to the server.xml
the following lines:

<RequestInterceptor
            className="org.apache.tomcat.request.JDBCRealm"
            debug="99"
            driverName="org.gjt.mm.mysql.Driver"

connectionURL="jdbc:mysql://localhost/authority?user=test;password=test"
            userTable="users"
            userNameCol="user_name"
            userCredCol="user_pass"
            userRoleTable="user_roles"
            roleNameCol="role_name" />
tomcat doesn't start.

when I add those:
<RequestInterceptor
            className="org.apache.tomcat.request.JDBCRealm"
            debug="99"
            driverName="sun.jdbc.odbc.JdbcOdbcDriver"
            connectionURL="jdbc:odbc:TOMCAT"
            userTable="users"
            userNameCol="user_name"
            userCredCol="user_pass"
            userRoleTable="user_roles"
            roleNameCol="role_name" />
tomcat starts but crashes when I try to login using the JSP security logon
example.

...Each time I pass from apache to tomcat (/localhost:8080) This is what I
see in the console:
2001-01-27 03:33:42 - Ctx(  ): IOException in: R(  + /index.html + null)
Connect
ion aborted by peer: socket write error
2001-01-27 03:33:42 - Ctx(  ): IOException in: R(  + /tomcat-power.gif +
null) C
onnection aborted by peer: socket write error

Any tips on what I should do?

Thenks

Marcantonio


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to