[jboss-jira] [JBoss JIRA] (WFLY-5960) [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory from [Module "org.jboss.ironjacamar.impl:main"
Ivo Studensky (JIRA)
issues at jboss.org
Fri Jan 8 06:19:00 EST 2016
[ https://issues.jboss.org/browse/WFLY-5960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146203#comment-13146203 ]
Ivo Studensky commented on WFLY-5960:
-------------------------------------
It was tested with the following configuration:
{code:xml}
<xa-datasource jndi-name="java:/OracleXA_DS" pool-name="OracleXA_DS" enabled="true">
<xa-datasource-property name="ServerName">
example.com
</xa-datasource-property>
<xa-datasource-property name="DatabaseName">
TestDB
</xa-datasource-property>
<xa-datasource-property name="URL">
jdbc:oracle:thin:@ldap://example.com:3060/test,cn=OracleA,dc=worldA
</xa-datasource-property>
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
<driver>oracle11gR2.jar</driver>
<xa-pool>
<min-pool-size>2</min-pool-size>
<max-pool-size>10</max-pool-size>
<prefill>true</prefill>
</xa-pool>
<security>
<user-name>jboss</user-name>
<password>jboss</password>
</security>
</xa-datasource>
{code}
> [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory from [Module "org.jboss.ironjacamar.impl:main"
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-5960
> URL: https://issues.jboss.org/browse/WFLY-5960
> Project: WildFly
> Issue Type: Bug
> Components: JCA
> Affects Versions: 10.0.0.CR5
> Reporter: Ivo Studensky
> Assignee: Ivo Studensky
>
> Description of problem:
> Warnings at server startup:
> WARN [org.jboss.jca.core.connectionmanager.pool.strategy.PoolBySubject] [] (JCA PoolFiller) IJ000610: Unable to fill pool: javax.resource.ResourceException: Could not create connection
> Root cause of the exception is displayed in the logs:
> [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory from [Module "org.jboss.ironjacamar.impl:
> Steps to Reproduce:
> 1. Create Oracle XA datasources with url set to ldap.
> 2. set "prefill" option to true
> 3. Start JBoss
> Warnings gets disappear when dependency <module name="sun.jdk"/>
> is added in the module
> "org.jboss.ironjacamar.impl"
> Expected results:
> There should not be any need to add the dependency manually. This dependency should be by default present in JBoss EAP.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list