Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EB596200D14 for ; Tue, 3 Oct 2017 13:09:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EA0F41609DD; Tue, 3 Oct 2017 11:09:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4018A1609D2 for ; Tue, 3 Oct 2017 13:09:07 +0200 (CEST) Received: (qmail 14164 invoked by uid 500); 3 Oct 2017 11:09:06 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 14153 invoked by uid 99); 3 Oct 2017 11:09:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Oct 2017 11:09:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2FA66180D3F for ; Tue, 3 Oct 2017 11:09:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.098 X-Spam-Level: * X-Spam-Status: No, score=1.098 tagged_above=-999 required=6.31 tests=[KAM_COUK=1.1, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ucLKZTjtWh-T for ; Tue, 3 Oct 2017 11:09:03 +0000 (UTC) Received: from ns1.nbmlaw.co.uk (ns1.nbmlaw.co.uk [217.174.253.19]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A37C75FD71 for ; Tue, 3 Oct 2017 11:09:03 +0000 (UTC) Received: from Mac-mini-2.local (188.red-88-9-227.dynamicip.rima-tde.net [88.9.227.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by ns1.nbmlaw.co.uk (Postfix) with ESMTPSA id 3668B2C2F9F for ; Tue, 3 Oct 2017 12:08:57 +0100 (BST) DMARC-Filter: OpenDMARC Filter v1.3.2 ns1.nbmlaw.co.uk 3668B2C2F9F Authentication-Results: ns1.nbmlaw.co.uk; dmarc=fail (p=quarantine dis=none) header.from=nbmlaw.co.uk Authentication-Results: ns1.nbmlaw.co.uk; spf=fail smtp.mailfrom=matthew.broadhead@nbmlaw.co.uk To: users@directory.apache.org From: Matthew Broadhead Subject: ldap connection pool Message-ID: <29ac8cff-e9d7-f707-3bda-78d4bb5326aa@nbmlaw.co.uk> Date: Tue, 3 Oct 2017 13:08:56 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB archived-at: Tue, 03 Oct 2017 11:09:08 -0000 i am trying to set up an ldap connection pool in a webapp http://directory.apache.org/api/user-guide/2.1-connection-disconnection.html i tried adding the connection pool in src/main/webapp/META-INF/context.xml but i get the error org.apache.openejb.OpenEJBException: Can't find resource for class uk.me.kissy.directory.dao.LdapDao#ldapConnectionPool. (No provider available for resource-ref 'null' of type 'org.apache.directory.ldap.client.api.LdapConnectionPool' for 'TokenTimer'.) when trying to access the resource @Resource(name = "ldap/Connection") private LdapConnection ldapConnection;