directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Broadhead <>
Subject ldap connection pool
Date Tue, 03 Oct 2017 11:08:56 GMT
i am trying to set up an ldap connection pool in a webapp

i tried adding the connection pool in src/main/webapp/META-INF/context.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context reloadable="true">
<Resource id="ldap/Connection" 
ldapHost="ns1.domain.tld" ldapPort="10636" useSsl="true" 
name="uid=admin,ou=system" credentials="password" />

but i get the error
org.apache.openejb.OpenEJBException: Can't find resource for class (No provider 
available for resource-ref 'null' of type 
'' for 'TokenTimer'.)

when trying to access the resource
@Resource(name = "ldap/Connection")
private LdapConnection ldapConnection;

View raw message