directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Wiley <debio...@gmail.com>
Subject Starting Embedded ApacheDS - Fails to Extract Schema?
Date Tue, 06 Apr 2010 01:17:02 GMT
I'm trying to start an embedded ApacheDS instance, and getting this log:
0 [main] DEBUG
org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor
 - BASE_PATH set to , outputDirectory set to /tmp/server-work-default
1 [main] DEBUG
org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor
 - Creating output directory: /tmp/server-work-default
1 [main] INFO
org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor
 - Schema directory '/tmp/server-work-default/schema' does NOT exist:
extracted state set to false.
Exception in thread "main" java.lang.Error: java.util.zip.ZipException:
error in opening zip file
at
org.apache.directory.shared.ldap.schema.ldif.extractor.impl.ResourceMap.getResourcesFromJarFile(ResourceMap.java:98)
at
org.apache.directory.shared.ldap.schema.ldif.extractor.impl.ResourceMap.getResources(ResourceMap.java:82)
at
org.apache.directory.shared.ldap.schema.ldif.extractor.impl.ResourceMap.getResources(ResourceMap.java:59)
at
org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.extractOrCopy(DefaultSchemaLdifExtractor.java:145)
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:121)
at
org.apache.directory.server.core.factory.DefaultDirectoryServiceFactory.build(DefaultDirectoryServiceFactory.java:192)
at
org.apache.directory.server.core.factory.DefaultDirectoryServiceFactory.init(DefaultDirectoryServiceFactory.java:89)
at org.wileynet.slinad.embedded.EmbeddedADS.init(EmbeddedADS.java:103)
at org.wileynet.slinad.embedded.EmbeddedADS.<init>(EmbeddedADS.java:174)
at org.wileynet.slinad.embedded.EmbeddedADS.main(EmbeddedADS.java:188)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at java.util.zip.ZipFile.<init>(ZipFile.java:148)
at
org.apache.directory.shared.ldap.schema.ldif.extractor.impl.ResourceMap.getResourcesFromJarFile(ResourceMap.java:94)
... 10 more

The code starting the server is this:
       // Initialize the LDAP service
     DirectoryServiceFactory fac = DefaultDirectoryServiceFactory.DEFAULT;
     fac.init("default");
     service = fac.getDirectoryService();
It's crashing on fac.init().

It looks like the server is trying to extract the core schema from a zip/jar
file and for some reason this is failing. The only cause I can think of is
that the files aren't present. I'm using a Maven-based project that includes
apacheds-all, which depends on shared-ldap and shared-ldap-schema, and I'm
pretty sure the schema files are supposed to be in there? What am I doing
wrong?

Any help would be appreciated,
Andrew Wiley

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message