directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <kayyag...@apache.org>
Subject Re: Startup Error for Embedded ApacheDS Created by apacheds archetype
Date Mon, 02 Aug 2010 20:36:46 GMT
hi Roy,

    the example webapp stores the data in the tomcat servercontext's temporary
    location, you need to tweak the app to change the working directory of the
    directory service.

    Another important thing is to start tomcat with the VM option
-Dschema.resource.location=<complete-path-to>/apacheds-all-<version>.jar

this is required to setup if the directoryservice's working directory
doesn't contain a
schema folder.

P.S:- Note that the only way to retain this schema and the
workingdirectory data is to
        give a non-temporary location

HTH
Kiran Ayyagari

On Tue, Aug 3, 2010 at 2:00 AM, Benjamin, Roy <rbenjamin@ebay.com> wrote:
> Hi,
>
> Very new to DS.  I got the maven archetype working, but have a File Not Found Exception.
>
> The cause is obvious, but I'm not sure what the intent of the archetype is.
>
> The message: Cannot overwrite yet schema output directory already exists: C:\Tomcat_5_5\work\Catalina\localhost\ApacheDSXX\server-work\schema
>
> seems especially odd...
>
> What is the intent?  Should we point to another directory outside of Tomcat or what
?
>
> I just need a simple working embedded ApacheDS for my use case.
>
> Thanks
> Roy
>
>
>
> Aug 2, 2010 1:20:49 PM org.apache.catalina.core.StandardContext listenerStart
> SEVERE: Exception sending context initialized event to listener instance of class org.example.StartStopListener
> Throwable occurred: java.lang.RuntimeException: java.io.IOException: ERR_08001 Cannot
overwrite yet schema output directory already exists: C:\Tomcat_5_5\work\Catalina\localhost\ApacheDSXX\server-work\schema
>        at org.example.StartStopListener.contextInitialized(StartStopListener.java:90)
>        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)
>        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
>        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
>        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
>        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:884)
>        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:737)
>        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
>        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
>        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
>        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
>        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>        at org.apache.catalina.core.StandardService.start(StandardService.java:448)
>        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>        at java.lang.reflect.Method.invoke(Method.java:599)
>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> Caused by: java.io.IOException: ERR_08001 Cannot overwrite yet schema output directory
already exists: C:\Tomcat_5_5\work\Catalina\localhost\ApacheDSXX\server-work\schema
>        at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.extractOrCopy(DefaultSchemaLdifExtractor.java:141)
>        at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.extractOrCopy(DefaultSchemaLdifExtractor.java:171)
>        at org.example.StartStopListener.initSchema(StartStopListener.java:122)
>        at org.example.StartStopListener.contextInitialized(StartStopListener.java:81)
>        ... 24 more
>

Mime
View raw message