tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ignacio J. Ortega" <na...@siapi.es>
Subject RE: Form based authentication and JDBC Realm with Interbase
Date Tue, 23 Jan 2001 12:06:50 GMT
Please post your server.xml JDBRealm config, to have a look at it..

Saludos ,
Ignacio J. Ortega


> -----Mensaje original-----
> De: Nigel Stirzaker [mailto:NStirzaker@softwright.co.uk]
> Enviado el: martes 23 de enero de 2001 12:41
> Para: 'tomcat-user@jakarta.apache.org'
> Asunto: Form based authentication and JDBC Realm with Interbase
> 
> 
> Hi
> I'am try to get form based authentication working with 
> jBoss/Tomcat and
> interbase 5.6 but I'am getting the following error. Interbase 
> is working
> fine for the CMP
> and code and general setup works fine with mySQL (our other 
> trial database).
> It looks to me like the param being setup for the query by
> PreparedStatement.setString
> is Null and hence the error
> 
> Version used
> Interclient 1.6
> jBoss 2.0 Final
> Tomcat 3.2
> Win 2000
> 
> 
> 2001-01-23 10:23:17 - ContextManager: JDBCRealm: 
> JDBCRealm.authenticate:
> SELECT USER_PASS FROM USERS WHERE USER_NAME = ?
> 
> 2001-01-23 10:23:18 - Ctx( /war ): Exception in: R( /war + 
> /member/test.jsp
> + null) - java.lang.NullPointerException
>         at 
> interbase.interclient.PreparedStatement.setString(Unknown Source)
>         at
> org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:306)
>         at
> org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:480)
>         at
> org.apache.tomcat.core.ContextManager.doAuthenticate(ContextMa
> nager.java,
> Compiled Code)
>         at
> org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341)
>         at 
> org.apache.tomcat.request.JDBCRealm.authorize(JDBCRealm.java:501)
>         at
> org.apache.tomcat.core.ContextManager.doAuthorize(ContextManager.java,
> Compiled Code)
>         at
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:78
> 9)
>         at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>         at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpC
> onnectionHandler.java:210)
>         at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> Compiled Code)
>         at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> Compiled Code)
>         at java.lang.Thread.run(Thread.java:479)
> 
> Anybody got any ideas
> Thanks in advance
> 
> Nigel
> 
> Nigel Stirzaker
> Software Consultant
> SSA Softwright
> (01753) 811833 Ext 265
> NStirzaker@Softwright.Co.Uk
> www.Softwright.co.uk
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
> 
> 

Mime
View raw message