Which version of tomcat are you trying ?
I think about 2 months ( see
<http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/share/org
/apache/tomcat/request/Attic/JDBCRealm.java?only_with_tag=tomcat_32> )
ago i fixed this isuue, i'm not sure which exact version of tomcat 3.2.X
beta has this fix inside....but you could test lastest 3.2.2 Beta to
know if you still have problems with JDBCRealm..
Saludos ,
Ignacio J. Ortega
> -----Mensaje original-----
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Enviado el: jueves 17 de mayo de 2001 14:23
> Para: [EMAIL PROTECTED]
> Asunto: Supid errors gone but another internal error with JDBC Realm
>
>
> Hello,
>
> the error I posted in "JDBCRealm/Tomcat do not not protect
> Web Pages!?..."
> is solved. Stupid I was I forgot to rename the *.html files to *.jsp.
> Tomcat obviously totally ignores the html-File and doesn't
> protect it. Ok
> seems to work. But now when accessing the protected source I
> get an error
> like this one:
>
> Error: 500
> Location: /texdb/txdb/menues/smgen.jsp
> Internal Servlet Error:
>
> 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:482)
> at
> org.apache.tomcat.core.ContextManager.doAuthenticate(ContextMa
> nager.java:837)
> at
> org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341)
> at
> org.apache.tomcat.request.JDBCRealm.authorize(JDBCRealm.java:503)
> at
> org.apache.tomcat.core.ContextManager.doAuthorize(ContextManag
> er.java:855)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:789)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.connector.Ajp13ConnectionHandler.pro
> cessConnection(Ajp13ConnectionHandler.java:160)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:498)
> at java.lang.Thread.run(Thread.java:484)
>
> I m using Interbase/Interclient 6.01, Linux and made
> server.xml and web.xml
> the usually way (see above JDBCRelam 15/05). When doing a
> manually selcect
> ... where -- from like written in JDBCRealm.java via JDBC Explorer it
> works. What could be wrong? Jasper.log, servlet.log and
> tomcat.log don't
> give me a hint.
>
> Grreting and many thanks in advance
>
> Thomas
>
>