Patrick Hub created DIRAPI-357:
----------------------------------
Summary: java.lang.NoClassDefFoundError:
org/apache/directory/ldap/client/api/LdapConnectionFactory
Key: DIRAPI-357
URL: https://issues.apache.org/jira/browse/DIRAPI-357
Project: Directory Client API
Issue Type: Bug
Affects Versions: 2.0.1
Environment: Java 11
Reporter: Patrick Hub
Fix For: 2.0.1
I am using Apache Ldap Client API to connect to remote OpenLDAP Server.
I have add this dependency in my pom.xml file:
<dependency><dependency>
<groupId>org.apache.directory.api</groupId>
<artifactId>api-all</artifactId>
<version>2.0.1</version>
</dependency>
But when I deploy the app as war file in wildfly Every work fine. I can
performed CRUD operations on OpenLDAP Server using Apache Ldap Client API.
But when I try to deploy the app as jar file in wildfly, I get the following
error :
Caused by: java.lang.NoClassDefFoundError:
org/apache/directory/ldap/client/api/LdapConnectionFactory
at java.base/java.lang.Class.getDeclaredFields0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3062)
at java.base/java.lang.Class.getDeclaredFields(Class.java:2249)
at
[email protected]//org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:72)
at
[email protected]//org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)
Please can someone help me ?
Thank
But I have used
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]