You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Emmanuel Lecharny <el...@gmail.com> on 2010/02/09 01:39:00 UTC

Pb with trunk when running tests

Is anyone experimenting the same problem ?

When I do a project/resources/superclean.sh and run mvn clean install, I 
get always this error :

-------------------------------------------------------------------------------
Test set: org.apache.directory.server.suites.StockServerISuite
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.425 
sec <<< FAILURE!
org.apache.directory.server.suites.StockServerISuite  Time elapsed: 0 
sec <<< ERROR!
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=apachemeta/ou=matchingrules/m-oid=1.3.6.1.4.1.18060.0.4.0.1.3.ldif' 
located on classpath at urls
     
jar:file:/Users/elecharny/apacheds/trunk/shared/all/target/shared-all-0.9.18-SNAPSHOT.jar!/schema/ou%3dschema/cn%3dapachemeta/ou%3dmatchingrules/m-oid%3d1.3.6.1.4.1.18060.0.4.0.1.3.ldif
     
jar:file:/Users/elecharny/apacheds/trunk/shared/ldap-schema/target/shared-ldap-schema-0.9.18-SNAPSHOT.jar!/schema/ou%3dschema/cn%3dapachemeta/ou%3dmatchingrules/m-oid%3d1.3.6.1.4.1.18060.0.4.0.1.3.ldif
...

It seems that we refer to shared-all which includes the schemas, and 
it's wrong at some point.

Anyone ?

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com



Re: Pb with trunk when running tests

Posted by Alex Karasulu <ak...@gmail.com>.
Never got this but will check when i get home.

On Mon, Feb 8, 2010 at 7:39 PM, Emmanuel Lecharny <el...@gmail.com>wrote:

> Is anyone experimenting the same problem ?
>
> When I do a project/resources/superclean.sh and run mvn clean install, I
> get always this error :
>
>
> -------------------------------------------------------------------------------
> Test set: org.apache.directory.server.suites.StockServerISuite
>
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.425 sec
> <<< FAILURE!
> org.apache.directory.server.suites.StockServerISuite  Time elapsed: 0 sec
> <<< ERROR!
> 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=apachemeta/ou=matchingrules/m-oid=1.3.6.1.4.1.18060.0.4.0.1.3.ldif'
> located on classpath at urls
>
>  jar:file:/Users/elecharny/apacheds/trunk/shared/all/target/shared-all-0.9.18-SNAPSHOT.jar!/schema/ou%3dschema/cn%3dapachemeta/ou%3dmatchingrules/m-oid%3d1.3.6.1.4.1.18060.0.4.0.1.3.ldif
>
>  jar:file:/Users/elecharny/apacheds/trunk/shared/ldap-schema/target/shared-ldap-schema-0.9.18-SNAPSHOT.jar!/schema/ou%3dschema/cn%3dapachemeta/ou%3dmatchingrules/m-oid%3d1.3.6.1.4.1.18060.0.4.0.1.3.ldif
> ...
>
> It seems that we refer to shared-all which includes the schemas, and it's
> wrong at some point.
>
> Anyone ?
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.nextury.com
>
>
>


-- 
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org

Re: Pb with trunk when running tests

Posted by Emmanuel Lecharny <el...@gmail.com>.
On 2/9/10 10:46 PM, Stefan Seelmann wrote:
> Hi Emmanuel,
>
> my idea with shared-all was to add it as single shared reference to 
> the apacheds parent pom and remove all other shared dependencies from 
> the apacheds module poms. I hoped that would help to reduce the total 
> number of dependencies, because in the end apacheds uses all shared 
> modules.
There is a problem with the schema files when the shared-all dependency 
is added with other shared dpendencies (the shared-schema one specifically).

Right now, I removed shared-all from apacheds, but if we can make 
apacheds working with it, that would be great.

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com



Re: Pb with trunk when running tests

Posted by Stefan Seelmann <se...@apache.org>.
Hi Emmanuel,

my idea with shared-all was to add it as single shared reference to the 
apacheds parent pom and remove all other shared dependencies from the 
apacheds module poms. I hoped that would help to reduce the total number 
of dependencies, because in the end apacheds uses all shared modules.

I'm not sure if it works. But for sure as soon as another shared 
dependency is declared in an apacheds module it won't work.

Kind Regards,
Stefan


Emmanuel Lecharny wrote:
> Is anyone experimenting the same problem ?
> 
> When I do a project/resources/superclean.sh and run mvn clean install, I 
> get always this error :
> 
> ------------------------------------------------------------------------------- 
> 
> Test set: org.apache.directory.server.suites.StockServerISuite
> ------------------------------------------------------------------------------- 
> 
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.425 
> sec <<< FAILURE!
> org.apache.directory.server.suites.StockServerISuite  Time elapsed: 0 
> sec <<< ERROR!
> 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=apachemeta/ou=matchingrules/m-oid=1.3.6.1.4.1.18060.0.4.0.1.3.ldif' 
> located on classpath at urls
>     
> jar:file:/Users/elecharny/apacheds/trunk/shared/all/target/shared-all-0.9.18-SNAPSHOT.jar!/schema/ou%3dschema/cn%3dapachemeta/ou%3dmatchingrules/m-oid%3d1.3.6.1.4.1.18060.0.4.0.1.3.ldif 
> 
>     
> jar:file:/Users/elecharny/apacheds/trunk/shared/ldap-schema/target/shared-ldap-schema-0.9.18-SNAPSHOT.jar!/schema/ou%3dschema/cn%3dapachemeta/ou%3dmatchingrules/m-oid%3d1.3.6.1.4.1.18060.0.4.0.1.3.ldif 
> 
> ...
> 
> It seems that we refer to shared-all which includes the schemas, and 
> it's wrong at some point.
> 
> Anyone ?
> 


Re: Pb with trunk when running tests

Posted by Emmanuel Lecharny <el...@gmail.com>.
On 2/9/10 9:41 AM, Pierre-Arnaud Marcelot wrote:
> Hi Emmanuel,
>
> I've just svn up the trunk and I'm experiencing the same kind of issue (without the superclean.sh, I will run it right now).
>    
Thanks Pierre-Arnaud !--

Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com



Re: Pb with trunk when running tests

Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
Hi Emmanuel,

I've just svn up the trunk and I'm experiencing the same kind of issue (without the superclean.sh, I will run it right now).


The 7 tests are in error:
Results :

Tests in error: 
================================================================================
  org.apache.directory.server.suites.StockServerISuite
  org.apache.directory.server.operations.bind.MiscBindIT
  org.apache.directory.server.operations.extended.StoredProcedureIT
  org.apache.directory.server.operations.bind.SaslBindIT
  org.apache.directory.server.kerberos.KeyDerivationServiceIT
  org.apache.directory.server.operations.search.IndexedNegationSearchIT
  org.apache.directory.server.kerberos.PasswordPolicyServiceIT

Tests run: 7, Failures: 0, Errors: 7, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /Users/pajbam/Development/Apache/ApacheDS/apacheds/server-integ/target/surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11 minutes 41 seconds
[INFO] Finished at: Tue Feb 09 09:35:14 CET 2010
[INFO] Final Memory: 116M/243M
[INFO] ------------------------------------------------------------------------
================================================================================



Here's the output for the StockServerISuite test suite:
================================================================================
-------------------------------------------------------------------------------
Test set: org.apache.directory.server.suites.StockServerISuite
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.724 sec <<< FAILURE!
org.apache.directory.server.suites.StockServerISuite  Time elapsed: 0 sec  <<< ERROR!
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=apachemeta/ou=matchingrules/m-oid=1.3.6.1.4.1.18060.0.4.0.1.3.ldif' located on classpath at urls
    jar:file:/Users/pajbam/Development/Apache/ApacheDS/shared/all/target/shared-all-0.9.18-SNAPSHOT.jar!/schema/ou%3dschema/cn%3dapachemeta/ou%3dmatchingrules/m-oid%3d1.3.6.1.4.1.18060.0.4.0.1.3.ldif
    jar:file:/Users/pajbam/Development/Apache/ApacheDS/shared/ldap-schema/target/shared-ldap-schema-0.9.18-SNAPSHOT.jar!/schema/ou%3dschema/cn%3dapachemeta/ou%3dmatchingrules/m-oid%3d1.3.6.1.4.1.18060.0.4.0.1.3.ldif
	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.getUniqueResource(DefaultSchemaLdifExtractor.java:366)
	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.getUniqueResourceAsStream(DefaultSchemaLdifExtractor.java:342)
	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.extractFromJar(DefaultSchemaLdifExtractor.java:381)
	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.extractOrCopy(DefaultSchemaLdifExtractor.java:151)
	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.extractOrCopy(DefaultSchemaLdifExtractor.java:171)
	at org.apache.directory.server.core.factory.DefaultDirectoryServiceFactory.initSchema(DefaultDirectoryServiceFactory.java:120)
	at org.apache.directory.server.core.factory.DefaultDirectoryServiceFactory.build(DefaultDirectoryServiceFactory.java:192)
	at org.apache.directory.server.core.factory.DefaultDirectoryServiceFactory.init(DefaultDirectoryServiceFactory.java:88)
	at org.apache.directory.server.core.factory.DSAnnotationProcessor.createDS(DSAnnotationProcessor.java:85)
	at org.apache.directory.server.core.factory.DSAnnotationProcessor.getDirectoryService(DSAnnotationProcessor.java:144)
	at org.apache.directory.server.core.integ.FrameworkSuite.startDS(FrameworkSuite.java:76)
	at org.apache.directory.server.core.integ.FrameworkSuite.run(FrameworkSuite.java:142)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
================================================================================

I'm going to run the superclean.sh to see if it changes something.

Regards,
Pierre-Arnaud


On 9 févr. 2010, at 01:39, Emmanuel Lecharny wrote:

> Is anyone experimenting the same problem ?
> 
> When I do a project/resources/superclean.sh and run mvn clean install, I get always this error :
> 
> -------------------------------------------------------------------------------
> Test set: org.apache.directory.server.suites.StockServerISuite
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.425 sec <<< FAILURE!
> org.apache.directory.server.suites.StockServerISuite  Time elapsed: 0 sec <<< ERROR!
> 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=apachemeta/ou=matchingrules/m-oid=1.3.6.1.4.1.18060.0.4.0.1.3.ldif' located on classpath at urls
>    jar:file:/Users/elecharny/apacheds/trunk/shared/all/target/shared-all-0.9.18-SNAPSHOT.jar!/schema/ou%3dschema/cn%3dapachemeta/ou%3dmatchingrules/m-oid%3d1.3.6.1.4.1.18060.0.4.0.1.3.ldif
>    jar:file:/Users/elecharny/apacheds/trunk/shared/ldap-schema/target/shared-ldap-schema-0.9.18-SNAPSHOT.jar!/schema/ou%3dschema/cn%3dapachemeta/ou%3dmatchingrules/m-oid%3d1.3.6.1.4.1.18060.0.4.0.1.3.ldif
> ...
> 
> It seems that we refer to shared-all which includes the schemas, and it's wrong at some point.
> 
> Anyone ?
> 
> -- 
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.nextury.com
> 
>