Pooled Connection Factory configuration produces SAXParseException

39 views
Skip to first unread message

Ray Bon

unread,
Feb 15, 2017, 9:07:48 PM2/15/17
to ldaptive
I added the configuration for Pooled Connection Factory found on http://www.ldaptive.org/docs/guide/spring.html.
When the application starts, I get this error:
Context initialization failed org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 159 in XML document from ServletContext resource [/WEB-INF/deployerConfigContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 159; columnNumber: 7; cvc-complex-type.3.2.2: Attribute 'bindDn' is not allowed to appear in element 'ldaptive:pooled-connection-factory'
Same goes for 'bindCredential'.

What should be the correct configuration for pooled connection factory?

Ray

Daniel Fisher

unread,
Feb 15, 2017, 11:52:26 PM2/15/17
to ldap...@googlegroups.com
On Wed, Feb 15, 2017 at 9:07 PM Ray Bon <rbonat...@gmail.com> wrote:
I added the configuration for Pooled Connection Factory found on http://www.ldaptive.org/docs/guide/spring.html.
When the application starts, I get this error:
Context initialization failed org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 159 in XML document from ServletContext resource [/WEB-INF/deployerConfigContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 159; columnNumber: 7; cvc-complex-type.3.2.2: Attribute 'bindDn' is not allowed to appear in element 'ldaptive:pooled-connection-factory'

What version of the schema (and library) are you using?

--Daniel Fisher
 

Ray Bon

unread,
Feb 16, 2017, 12:58:02 PM2/16/17
to ldaptive
I am using the unversioned schema statement:
http://www.ldaptive.org/schema/spring-ext http://www.ldaptive.org/schema/spring-ext.xsd
Two packages are deployed (with CAS):
ldaptive-1.1.0.jar
ldaptive-beans-1.1.0.jar

Ray

Daniel Fisher

unread,
Feb 16, 2017, 8:29:15 PM2/16/17
to ldap...@googlegroups.com
The 1.1.0 version didn't support bind details on a pooled connection factory.
That wasn't introduced until version 1.2.0.
You'll have to use a generic <bean> declaration to create the connection factory you want.
(Or upgrade to a newer version of CAS)

--Daniel Fisher

--
You received this message because you are subscribed to the Google Groups "ldaptive" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ldaptive+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ray Bon

unread,
Feb 17, 2017, 5:37:48 PM2/17/17
to ldaptive
Thank you.

Ray
Reply all
Reply to author
Forward
0 new messages