tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnson Lim" <j...@thinkspice.com>
Subject JDBCRealm for Interbase
Date Thu, 08 Feb 2001 04:29:41 GMT
Hi all,

I have tried JDBCRealm for Hypersonic, it works very well, thanks for the
TOMCAT GUYS!!

When I tried to do it on Interbase, it seem not works (please help !)

on server.xml

<RequestInterceptor className="org.apache.tomcat.request.JDBCRealm"
            debug="99"
	    driverName="interbase.interclient.Driver"
	    connectionURL="jdbc:interbase://localhost/c:\db\test.gdb"
	    connectionName="sysdba"
            connectionPassword="masterkey"
	    userTable="users"
            userNameCol="user_name"
            userCredCol="user_pass"
	    userRoleTable="user_roles"
            roleNameCol="role_name" />

when i run any authentication process an error occur:

Error: 500
Location: /Secure/admin/index.html
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:480)
	at
org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:839
)
	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:857)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
1)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:745)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)


Thanks in advance, any one have the clues.

Regards
Johnson


Mime
View raw message