directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cristian Tarsoaga (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRSERVER-1606) DefaultSchemaLdifExtractor chokes when using apacheds-all Maven artifact
Date Wed, 30 Mar 2016 07:26:25 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-1606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15217572#comment-15217572
] 

Cristian Tarsoaga commented on DIRSERVER-1606:
----------------------------------------------

the issue is caused by having both apacheds-all and apacheds-server-integ jars as dependencies

having previously tested with a JNDI client, I was able to get rid of the problem by only
using apacheds-all (and removing apacheds-server-integ)

I just tried with apache-ds client api too, and I was able to get rid of the issue by only
using apacheds-server-integ (and removing apacheds-all)

> DefaultSchemaLdifExtractor chokes when using apacheds-all Maven artifact
> ------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1606
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1606
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.7
>            Reporter: Holger Pretzsch
>             Fix For: 2.0.0-RC1
>
>
> When using the apacheds-all Maven artifact, the DefaultSchemaLdifExtractor does not work.
Apparently, because of the Maven dependency setup, the default schema is on the classpath
in two (probably identical?) versions.
> org.apache.directory.shared.ldap.schema.ldif.extractor.UniqueResourceException: Problem
locating LDIF file in schema repository
> Multiple copies of resource named 'schema/ou=schema/cn=apachedns/ou=syntaxes.ldif' located
on classpath at urls
>     jar:file:/C:/Users/holger/.gradle/cache/org.apache.directory.server/apacheds-all/jars/apacheds-all-1.5.7.jar!/schema/ou%3dschema/cn%3dapachedns/ou%3dsyntaxes.ldif
>     jar:file:/C:/Users/holger/.gradle/cache/org.apache.directory.shared/shared-ldap-schema/jars/shared-ldap-schema-0.9.19.jar!/schema/ou%3dschema/cn%3dapachedns/ou%3dsyntaxes.ldif
> 	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.getUniqueResource(DefaultSchemaLdifExtractor.java:371)
> 	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.getUniqueResourceAsStream(DefaultSchemaLdifExtractor.java:347)
> 	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.extractFromJar(DefaultSchemaLdifExtractor.java:386)
> 	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.extractOrCopy(DefaultSchemaLdifExtractor.java:151)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message