Thank Kiran, Still not working but I'll keep trying for a while. I've been working for ten days now trying to get at least one of the provided embedded examples working. I appreciate all the work contributors do but I must say in thirty years I've never had this much trouble getting an Apache example to work.
Cheers and Thanks again for the tips. Roy -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Kiran Ayyagari Sent: Monday, August 02, 2010 1:37 PM To: Apache Directory Developers List Subject: Re: Startup Error for Embedded ApacheDS Created by apacheds archetype 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 <[email protected]> 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 >
