tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Stoessel <vinc...@xaymaca.com>
Subject JNDIRealm expires?
Date Tue, 08 Oct 2002 17:47:47 GMT
I have been able to successfully set up a JNDIRealm in tomcat for 
authentication. Only problem is after about 12 (rough guess) I get
the dreaded black page instead of seeing my login form. The workaround 
is to restart tomcat. Obviously, this won't work well for a always-on
service. Maybe there might be a way to reinitialize an idle connection?
Thanks.


2002-10-08 12:35:18 CoyoteAdapter An exception or error occurred in the 
container during the request processing
java.lang.NullPointerException
	at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:173)
	at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2516)
	at com.sun.jndi.ldap.LdapCtx.ensureOpen(LdapCtx.java:2458)
	at com.sun.jndi.ldap.LdapCtx.ensureOpen(LdapCtx.java:2432)
	at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1837)
	at com.sun.jndi.ldap.LdapCtx.doSearchOnce(LdapCtx.java:1829)
	at com.sun.jndi.ldap.LdapCtx.c_getAttributes(LdapCtx.java:1223)
	at 
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:213)
	at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:121)
	at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:109)
	at 
javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:121)
	at org.apache.catalina.realm.JNDIRealm.bindAsUser(JNDIRealm.java:1051)
	at org.apache.catalina.realm.JNDIRealm.checkCredentials(JNDIRealm.java:957)
	at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:729)
	at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:671)
	at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:263)
	at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:458)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2397)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
	at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
	at java.lang.Thread.run(Thread.java:536)
-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message