>From my test machine PC with Tomcat 5.5.17 my application ( built with >Netbeans jdk 1.6) does a JNDI login to a remote ldap server and returns fine. >( uses very simple form pointed to <j_security_scheck> )
When I have it deployed on a production server ( now upgraded to Tomcat 5.5.25) the login just hangs for many minutes, (no traffic seen on Ldap server, no logfile report ), finally returns ( leaving log file Error below ), after which it then works fine for all users until there has been a significant usage gap at which point the process is repeated. The production server upgrade was tried following the info at http://www.mailinglistarchive.com/[EMAIL PROTECTED]/msg07884.html unfortunately this doesn't seem to have solved the problem. Any assistance greatly appreciated. 29-Jan-2008 14:35:30 org.apache.catalina.realm.JNDIRealm authenticate SEVERE: Exception performing authentication javax.naming.ServiceUnavailableException: ldap2.dundee.ac.uk:389; socket closed; remaining name 'o= dundee' at com.sun.jndi.ldap.Connection.readReply(Connection.java:416) at com.sun.jndi.ldap.LdapClient.getSearchReply(LdapClient.java:611) at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:534) at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1948) at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1810) at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1735) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.ja va:338) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.ja va:321) at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248) at org.apache.catalina.realm.JNDIRealm.getUserBySearch(JNDIRealm.java:1051) at org.apache.catalina.realm.JNDIRealm.getUser(JNDIRealm.java:959) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:908) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:809) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java: 258) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol $Http11ConnectionHandler.processConnection(Ht tp11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.j ava:81) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:619) Dr. N. Wynne Carter, Computing and Media Services Level 8 Ninewells Hospital and Medical School Dundee DD1 9SY Tel: 01382 632564 Fax: 01382 665226 E-Mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]