You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Cristian Tarsoaga (JIRA)" <ji...@apache.org> on 2016/03/29 23:25:25 UTC

[jira] [Comment Edited] (DIRSERVER-1606) DefaultSchemaLdifExtractor chokes when using apacheds-all Maven artifact

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

Cristian Tarsoaga edited comment on DIRSERVER-1606 at 3/29/16 9:24 PM:
-----------------------------------------------------------------------

issue seems to be avoided by simply using jndi and keeping apacheds-all dependency only in the test scope

With jndi, there is no need for apacheds-server-integ, nor apacheds-core-integ, which were suggested by the documentation: https://cwiki.apache.org/confluence/display/DIRxSRVx11/4.2.+Using+ApacheDS+for+unit+tests
and ambiguity does not appear anymore

tested with apacheds 2.0.0-M22


was (Author: kcris):
issue seems to be avoided by simply keeping apacheds-all dependency only in the test scope

There is no need for apacheds-server-integ, nor apacheds-core-integ, which were suggested by the old documentation: https://cwiki.apache.org/confluence/display/DIRxSRVx11/4.2.+Using+ApacheDS+for+unit+tests

tested with apacheds 2.0.0-M22

> 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)