You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Patrick Hub (Jira)" <ji...@apache.org> on 2020/04/15 12:44:00 UTC
[jira] [Created] (DIRAPI-357) java.lang.NoClassDefFoundError:
org/apache/directory/ldap/client/api/LdapConnectionFactory
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 org.jboss.as.server@10.0.3.Final//org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:72)
at org.jboss.as.server@10.0.3.Final//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: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org