[teiid-issues] [JBoss JIRA] (TEIID-2283) Failure to create LDAP connection

Ramesh Reddy (JIRA) jira-events at lists.jboss.org
Wed Oct 31 10:57:17 EDT 2012


     [ https://issues.jboss.org/browse/TEIID-2283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ramesh Reddy resolved TEIID-2283.
---------------------------------

    Resolution: Done


LDAP Intitial Context factory loads from the thread context class loader, however the RAR file has it's own class loader where the required modules are available. During the connection, the thread context needed to be set correctly, so the classes are resolved properly.

Added RAR's classloader as TCCL during the connection process.
                
> Failure to create LDAP connection
> ---------------------------------
>
>                 Key: TEIID-2283
>                 URL: https://issues.jboss.org/browse/TEIID-2283
>             Project: Teiid
>          Issue Type: Bug
>          Components: LDAP Connector
>    Affects Versions: 8.0, 8.1
>            Reporter: Ramesh Reddy
>            Assignee: Ramesh Reddy
>             Fix For: 8.2
>
>
> Trying to make connection to LDAP is resulting in the following exception
> {code}
> .ResourceException: Initializing LDAP directory context failed. Please check LDAP connection properties, including username and password: JBAS011843: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader ModuleClassLoader for Module "org.jboss.teiid:main" from local module loader @9ba6076 (roots: /home/rareddy/testing/jboss-as-7.1.1.Final/modules)
> 	at org.teiid.resource.adapter.ldap.LDAPConnectionImpl.initializeLDAPContext(LDAPConnectionImpl.java:138)
> 	at org.teiid.resource.adapter.ldap.LDAPConnectionImpl.<init>(LDAPConnectionImpl.java:73)
> 	at org.teiid.resource.adapter.ldap.LDAPManagedConnectionFactory$1.getConnection(LDAPManagedConnectionFactory.java:46)
> 	at org.teiid.resource.adapter.ldap.LDAPManagedConnectionFactory$1.getConnection(LDAPManagedConnectionFactory.java:43)
> 	at org.teiid.resource.spi.BasicManagedConnectionFactory.createManagedConnection(BasicManagedConnectionFactory.java:70) [teiid-api-8.2.0.CR1-SNAPSHOT.jar:8.2.0.CR1-SNAPSHOT]
> 	at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:761) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]
> 	at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:343) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the teiid-issues mailing list