> org.springframework.dao.DataAccessResourceFailureException: Failed to borrow 
> DirContext from pool.; nested exception is 
> org.springframework.ldap.CommunicationException: 
> activedirectoryserver.foo.com:389; nested exception is 
> javax.naming.CommunicationException: activedirectoryserver.foo.com:389 [Root 
> exception is java.net.SocketTimeoutException: connect timed out]

Your directory is taking too long to negotiate the TCP handshake based
on your specified connection timeout value:

>             <entry key="com.sun.jndi.ldap.connect.timeout" value="3000" />

Since this is a pooled connection, you could consider increasing the
timeout period since it would only affect provisioning new connections
in the pool (and not on ever LDAP operation). I would not recommend
increasing beyond 10s in production. It would be better to investigate
why your directory is taking so long to connect. If you find that
increasing the timeout to some outlandish value, say 60s, has no
effect, then it's likely a deeper issue (e.g. networking problem,
firewall, etc).

M

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to