You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Stefan Zoerner <st...@labeo.de> on 2009/02/22 21:53:14 UTC

[ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

Hi all,

I was able to build the server as described here:

http://directory.apache.org/apacheds/1.5/02-building-trunks.html

and the "Starting the server without installation" works as well.

When I build the installers

cd apacheds-trunk
mvn install
cd installers/apacheds
mvn -Pserver-installer install

this also works, but the resulting archives seem to have problems.
When I unzip the apacheds-1.5.5-SNAPSHOT.zip somewhere and call 
apacheds.bat, I get ClassNotFounds:

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/commons/logging/LogFactory
         at 
org.springframework.context.support.AbstractApplicationContext.<init>
(AbstractApplicationContext.java:146)

When I add commons-logging by hand (jar-File, apacheds.bat-adjustment), 
the next Errors deals with a class from 
apacheds-xdbm-base-1.5.5-SNAPSHOT.jar, apacheds.bat does not contain it 
in the classpath. After adding that, next thing missing is Bouncy Castle.

It seems that at least the apacheds.bat file is not generated correctly. 
Perhaps the content in the lib-File is not complete as well.

Or do I miss something?

JIRA?

Greetings from Hamburg,
     Stefan



Re: [ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

Posted by Felix Knecht <fe...@apache.org>.
Pierre-Arnaud Marcelot schrieb:
> Hi Felix,
> 
> On Mon, Feb 23, 2009 at 3:16 PM, Felix Knecht <felixk@apache.org
> <ma...@apache.org>> wrote:
> 
>     > /installers/apacheds-noarch/apacheds.bat
>     > /installers/apacheds-noarch/apacheds.sh
> 
>     But they look completely different. I follow Stefans original
>     description to build it:
> 
> 
> Forget what I said. It seems I was not completely awaken this morning...
> I thought the discussion was about the scripts in the apacheds-noarch
> projet...
> 
> The correct location of the file you're looking for is
> /daemon/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/apacheds.sh

Thanks. This looks like :)
> 
> Regards,
> Pierre-Arnaud


Re: [ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

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

On Mon, Feb 23, 2009 at 3:16 PM, Felix Knecht <fe...@apache.org> wrote:

> > /installers/apacheds-noarch/apacheds.bat
> > /installers/apacheds-noarch/apacheds.sh
>
> But they look completely different. I follow Stefans original description
> to build it:
>

Forget what I said. It seems I was not completely awaken this morning... I
thought the discussion was about the scripts in the apacheds-noarch
projet...

The correct location of the file you're looking for is
/daemon/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/apacheds.sh

Regards,
Pierre-Arnaud

Re: [ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

Posted by Felix Knecht <fe...@apache.org>.
> /installers/apacheds-noarch/apacheds.bat
> /installers/apacheds-noarch/apacheds.sh

But they look completely different. I follow Stefans original description to build it:

cd installers/apacheds
mvn -Pserver-installer install
unzip the target/images/apacheds-1.5.5-SNAPSHOT.zip

Then I get a in/apacheds.sh file containing all libraries in the -cp :

felix@donar ~/svn/apache/directory/installers/trunk/apacheds/target/images/apacheds_1.5.5-SNAPSHOT $ cat apacheds.sh
#!/bin/sh
#
#  Licensed to the Apache Software Foundation (ASF) under one
#  or more contributor license agreements.  See the NOTICE file
#  distributed with this work for additional information
#  regarding copyright ownership.  The ASF licenses this file
#  to you under the Apache License, Version 2.0 (the
#  "License"); you may not use this file except in compliance
#  with the License.  You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing,
#  software distributed under the License is distributed on an
#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
#  KIND, either express or implied.  See the License for the
#  specific language governing permissions and limitations
#  under the License.
#
java -Dlog4j.configuration=file:conf/log4j.properties -cp
lib/antlr-2.7.7.jar:lib/apacheds-bootstrap-extract-1.5.5-SNAPSHOT.jar:lib/apacheds-bootstrap-partition-1.5.5-SNAPSHOT.jar:lib/apacheds-btree-base-1.5.5-SNAPSHOT.jar:lib/apacheds-core-1.5.5-SNAPSHOT.jar:lib/apacheds-core-avl-1.5.5-SNAPSHOT.jar:lib/apacheds-core-constants-1.5.5-SNAPSHOT.jar:lib/apacheds-core-cursor-1.5.5-SNAPSHOT.jar:lib/apacheds-core-entry-1.5.5-SNAPSHOT.jar:lib/apacheds-core-jndi-1.5.5-SNAPSHOT.jar:lib/apacheds-core-shared-1.5.5-SNAPSHOT.jar:lib/apacheds-jdbm-1.5.5-SNAPSHOT.jar:lib/apacheds-jdbm-store-1.5.5-SNAPSHOT.jar:lib/apacheds-kerberos-shared-1.5.5-SNAPSHOT.jar:lib/apacheds-noarch-installer-1.5.5-SNAPSHOT.jar:lib/apacheds-protocol-changepw-1.5.5-SNAPSHOT.jar:lib/apacheds-protocol-dhcp-1.5.5-SNAPSHOT.jar:lib/apacheds-protocol-dns-1.5.5-SNAPSHOT.jar:lib/apacheds-protocol-kerberos-1.5.5-SNAPSHOT.jar:lib/apacheds-protocol-ldap-1.5.5-SNAPSHOT.jar:lib/apacheds-protocol-ntp-1.5.5-SNAPSHOT.jar:lib/apacheds-protocol-shared-1.5.5-SNAPSHOT.jar:lib/apacheds-schema-
bootstrap-1.5.5-SNAPSHOT.jar:lib/apacheds-schema-extras-1.5.5-SNAPSHOT.jar:lib/apacheds-schema-registries-1.5.5-SNAPSHOT.jar:lib/apacheds-server-jndi-1.5.5-SNAPSHOT.jar:lib/apacheds-server-xml-1.5.5-SNAPSHOT.jar:lib/apacheds-utils-1.5.5-SNAPSHOT.jar:lib/apacheds-xbean-spring-1.5.5-SNAPSHOT.jar:lib/apacheds-xdbm-search-1.5.5-SNAPSHOT.jar:lib/apacheds-xdbm-tools-1.5.5-SNAPSHOT.jar:lib/bootstrapper.jar:lib/commons-cli-1.1.jar:lib/commons-collections-3.2.1.jar:lib/commons-daemon-1.0.1.jar:lib/commons-io-1.4.jar:lib/commons-lang-2.4.jar:lib/jcl-over-slf4j-1.5.2.jar:lib/log4j-1.2.14.jar:lib/mina-core-2.0.0-M4.jar:lib/shared-asn1-0.9.14-SNAPSHOT.jar:lib/shared-asn1-codec-0.9.14-SNAPSHOT.jar:lib/shared-bouncycastle-reduced-0.9.14-SNAPSHOT.jar:lib/shared-ldap-0.9.14-SNAPSHOT.jar:lib/shared-ldap-constants-0.9.14-SNAPSHOT.jar:lib/slf4j-api-1.5.2.jar:lib/slf4j-log4j12-1.5.2.jar:lib/spring-beans-2.5.5.jar:lib/spring-context-2.5.5.jar:lib/spring-core-2.5.5.jar:lib/xbean-spring-3.4.3.jar
org.apache.directory.server.UberjarMain conf/server.xml


But the one you mentioned from installers/apacheds-no... look like
felix@donar ~/svn/apache/directory/installers/trunk/apacheds-noarch $ cat apacheds.sh
#!/bin/sh

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

if [ -e target/apacheds-noarch-installer-1.5.5-SNAPSHOT-app.jar ] ; then
  echo uber jar exists
else
  echo uber jar not found need to build it
  mvn clean install
fi

java -Dlog4j.debug -Dlog4j.configuration=file:./log4j.properties -jar
target/apacheds-noarch-installer-1.5.5-SNAPSHOT-app.jar target/plan/server.xml

Where is the first script built? We should change the first script not to have coded the classpath jars but to collect
all of them from the lib directory in a variable and add this variable to the classpath. This way we generate
dynamically a list of all jars in the lib directory and add them to the classpath. This will avoid missing libraries in
the classpath (but existing in the lib directory).

> 
> They are used to launch the server from the /installers/apacheds-noarch
> project.
> 
> Hope this helps,
> Pierre-Arnaud
> 


Re: [ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

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

On Mon, Feb 23, 2009 at 1:30 PM, Felix Knecht <fe...@apache.org> wrote:

> Sorry for asking stupid questions, but I must be blind :(
>
> Where are those apacheds.sh/apacheds.bat files created?


/installers/apacheds-noarch/apacheds.bat
/installers/apacheds-noarch/apacheds.sh

They are used to launch the server from the /installers/apacheds-noarch
project.

Hope this helps,
Pierre-Arnaud

Re: [ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

Posted by Felix Knecht <fe...@apache.org>.
Sorry for asking stupid questions, but I must be blind :(

Where are those apacheds.sh/apacheds.bat files created?

Emmanuel Lecharny schrieb:
> On Mon, Feb 23, 2009 at 7:51 AM, Felix Knecht <fe...@apache.org> wrote:
>>>> When I add commons-logging by hand (jar-File,
>>>> apacheds.bat-adjustment), the next Errors deals with a class from
>>>> apacheds-xdbm-base-1.5.5-SNAPSHOT.jar, apacheds.bat does not contain
>>>> it in the classpath. After adding that, next thing missing is Bouncy
>>>> Castle.
>>> Ok, we have to fix this part. Seems like the standard buid does not
>>> check that we can also build the installers. That's a problem...
>>>> It seems that at least the apacheds.bat file is not generated
>>>> correctly. Perhaps the content in the lib-File is not complete as well.
>> IMO it's bad practice to have hardcoded the libraries in the classpath as it is done in this case, apacheds.bat as well
>> as apacheds.sh.
> 
> Not only it's bad practice, but it's also a PITA when we cut a release ...
> 
> 


Re: [ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

Posted by Emmanuel Lecharny <el...@apache.org>.
On Mon, Feb 23, 2009 at 7:51 AM, Felix Knecht <fe...@apache.org> wrote:
>
>>> When I add commons-logging by hand (jar-File,
>>> apacheds.bat-adjustment), the next Errors deals with a class from
>>> apacheds-xdbm-base-1.5.5-SNAPSHOT.jar, apacheds.bat does not contain
>>> it in the classpath. After adding that, next thing missing is Bouncy
>>> Castle.
>> Ok, we have to fix this part. Seems like the standard buid does not
>> check that we can also build the installers. That's a problem...
>>>
>>> It seems that at least the apacheds.bat file is not generated
>>> correctly. Perhaps the content in the lib-File is not complete as well.
>
> IMO it's bad practice to have hardcoded the libraries in the classpath as it is done in this case, apacheds.bat as well
> as apacheds.sh.

Not only it's bad practice, but it's also a PITA when we cut a release ...


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

Re: [ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

Posted by Felix Knecht <fe...@apache.org>.
>> When I add commons-logging by hand (jar-File,
>> apacheds.bat-adjustment), the next Errors deals with a class from
>> apacheds-xdbm-base-1.5.5-SNAPSHOT.jar, apacheds.bat does not contain
>> it in the classpath. After adding that, next thing missing is Bouncy
>> Castle.
> Ok, we have to fix this part. Seems like the standard buid does not
> check that we can also build the installers. That's a problem...
>>
>> It seems that at least the apacheds.bat file is not generated
>> correctly. Perhaps the content in the lib-File is not complete as well.

IMO it's bad practice to have hardcoded the libraries in the classpath as it is done in this case, apacheds.bat as well
as apacheds.sh. If we just add all libraries located in the lib folder to the classpath (loop and collect them in the
start script) would not only make it easier to avoid such kind of problems but also gives the user the (easy) ability to
add custom jars to the application - just put the custom jar into the lib folder and restart the application.

My 2 cents
Felix

Re: [ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

Posted by Emmanuel Lecharny <el...@apache.org>.
Stefan Zoerner wrote:
> Hi all,
>
> I was able to build the server as described here:
>
> http://directory.apache.org/apacheds/1.5/02-building-trunks.html
>
> and the "Starting the server without installation" works as well.
>
> When I build the installers
>
> cd apacheds-trunk
> mvn install
> cd installers/apacheds
> mvn -Pserver-installer install
>
> this also works, but the resulting archives seem to have problems.
> When I unzip the apacheds-1.5.5-SNAPSHOT.zip somewhere and call 
> apacheds.bat, I get ClassNotFounds:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/commons/logging/LogFactory
>         at 
> org.springframework.context.support.AbstractApplicationContext.<init>
> (AbstractApplicationContext.java:146)
We are not supposed to use commons-logging anymore ...
>
> When I add commons-logging by hand (jar-File, 
> apacheds.bat-adjustment), the next Errors deals with a class from 
> apacheds-xdbm-base-1.5.5-SNAPSHOT.jar, apacheds.bat does not contain 
> it in the classpath. After adding that, next thing missing is Bouncy 
> Castle.
Ok, we have to fix this part. Seems like the standard buid does not 
check that we can also build the installers. That's a problem...
>
> It seems that at least the apacheds.bat file is not generated 
> correctly. Perhaps the content in the lib-File is not complete as well.
>
> Or do I miss something?
>
> JIRA?
Yop.

Thanks !

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



Re: [ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

Posted by Emmanuel Lecharny <el...@apache.org>.
Felix Knecht wrote:
> Stefan Zoerner schrieb:
>   
>> Thanks Felix for taking care of this.
>>
>> I got this error yesterday as well, after fixing the commons logging and
>> the xdbm prob. Seems like nothing suitable is in the lib folder (Bouncy
>> Castle)
>>     
>
> Yep, the Bouncy Castle jar is missing. Using patch below solves the problem and it seems as I can start the server.
> I didn't committed it because I'm not sure about the licenses of Bouncy Castle, especially when I see, that in
> http://svn.apache.org/repos/asf/directory/installers/trunk/apacheds-noarch/pom.xml the shade-plugin is used to exclude
> META-INF/BCKEY.SF and META-INF/BCKEY.DSA.
>   
The license is not anymore a pb. It never was, in fact. The problem was 
with the inclusion of a patented algorithm (IDEA) in a 13x version of 
BC, which has been solved in BC 140.

So we can now include BC and get ride of shade.

Thanks !

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



Re: [ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

Posted by Felix Knecht <fe...@apache.org>.
Stefan Zoerner schrieb:
> Thanks Felix for taking care of this.
> 
> I got this error yesterday as well, after fixing the commons logging and
> the xdbm prob. Seems like nothing suitable is in the lib folder (Bouncy
> Castle)

Yep, the Bouncy Castle jar is missing. Using patch below solves the problem and it seems as I can start the server.
I didn't committed it because I'm not sure about the licenses of Bouncy Castle, especially when I see, that in
http://svn.apache.org/repos/asf/directory/installers/trunk/apacheds-noarch/pom.xml the shade-plugin is used to exclude
META-INF/BCKEY.SF and META-INF/BCKEY.DSA.

Feel free to commit patch if you're more sure about the license than I.

Felix

felix@donar ~/svn/apache/directory/installers/trunk/apacheds $ svn diff
Index: pom.xml
===================================================================
--- pom.xml     (Revision 746894)
+++ pom.xml     (Arbeitskopie)
@@ -189,7 +189,7 @@
                 <exclude>freemarker:freemarker</exclude>
                 <exclude>asm:asm-util</exclude>
                 <exclude>jasperreports:jasperreports</exclude>
-                <exclude>bouncycastle:bcprov-jdk15</exclude>
+                <!-- exclude>bouncycastle:bcprov-jdk15</exclude -->
               </excludes>
             </configuration>
             <executions>
@@ -342,7 +342,7 @@
                 <exclude>freemarker:freemarker</exclude>
                 <exclude>asm:asm-util</exclude>
                 <exclude>jasperreports:jasperreports</exclude>
-                <exclude>bouncycastle:bcprov-jdk15</exclude>
+                <!-- exclude>bouncycastle:bcprov-jdk15</exclude -->
               </excludes>
             </configuration>
             <executions>
@@ -414,7 +414,7 @@
                 <exclude>freemarker:freemarker</exclude>
                 <exclude>asm:asm-util</exclude>
                 <exclude>jasperreports:jasperreports</exclude>
-                <exclude>bouncycastle:bcprov-jdk15</exclude>
+                <!-- exclude>bouncycastle:bcprov-jdk15</exclude -->
               </excludes>

               <application>

Re: [ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

Posted by Stefan Zoerner <st...@labeo.de>.
Thanks Felix for taking care of this.

I got this error yesterday as well, after fixing the commons logging and 
the xdbm prob. Seems like nothing suitable is in the lib folder (Bouncy 
Castle)

Greetings from Hamburg,
     Stefan



Felix Knecht wrote:
> I replaced hard coded -cp by using a dynamical one (see http://svn.apache.org/viewvc?rev=747059&view=rev).
> To use it you probably need to rebuild updated daemon/trunk.
> 
> There are still problems, but they look different know:
> 
> felix@donar ~/svn/apache/directory/installers/trunk/apacheds/target/images/apacheds_1.5.5-SNAPSHOT $ ./apacheds.sh
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: /apacheds-rolling.log (Permission denied)
>         at java.io.FileOutputStream.openAppend(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
>         at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
>         at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:167)
>         at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
>         at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
>         at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
>         at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
>         at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
>         at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
>         at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
>         at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
>         at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
>         at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470)
>         at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
>         at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
>         at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:103)
>         at org.apache.directory.server.Service.<clinit>(Service.java:48)
>         at org.apache.directory.server.UberjarMain.main(UberjarMain.java:45)
> Starting the LDAP server
>            _                     _          ____  ____
>           / \   _ __    ___  ___| |__   ___|  _ \/ ___|
>          / _ \ | '_ \ / _` |/ __| '_ \ / _ \ | | \___ \
>         / ___ \| |_) | (_| | (__| | | |  __/ |_| |___) |
>        /_/   \_\ .__/ \__,_|\___|_| |_|\___|____/|____/
>                |_|
> 
> [17:07:31] WARN [org.apache.directory.server.schema.registries.DefaultOidRegistry] - OID for name 'krb5PrincipalName'
> was not found within the OID registry
> Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
>         at
> org.apache.directory.server.core.DefaultDirectoryService.createBootstrapEntries(DefaultDirectoryService.java:1014)
>         at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1434)
>         at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:851)
>         at org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.java:126)
>         at org.apache.directory.server.Service.initLdap(Service.java:128)
>         at org.apache.directory.server.Service.init(Service.java:70)
>         at org.apache.directory.server.UberjarMain.main(UberjarMain.java:56)
> Caused by: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>         ... 7 more
> 
> 



Re: [ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

Posted by Stefan Zoerner <st...@labeo.de>.
Felix Knecht wrote:
> I replaced hard coded -cp by using a dynamical one (see http://svn.apache.org/viewvc?rev=747059&view=rev).
> To use it you probably need to rebuild updated daemon/trunk.

I have tried it out and I have problems with the *.bat file under 
Windows (both Cygwin and "native" CLI).

The variable ADS_CP does only contain the last jar-file in lib, the 
concatenation within the for loop seems not work.

for /F %%a in ('dir lib\ /a /b /-p /o') do set ADS_CP=%ADS_CP%;"lib\%%a"

I have googled and experimented a bit, but I simply do not understand, 
why the value for %ADS_CP% in the set operation is still the old one ("").

Any Windows CLI expert here? You may keep anonymous ;-) Drop me a mail 
directly

Greetings from Hamburg,
     Stefan


Re: [ApacheDS] Problems with noarch-installer in 1.5.5 SNAPSHOT (NoClassDefFoundError)

Posted by Felix Knecht <fe...@apache.org>.
I replaced hard coded -cp by using a dynamical one (see http://svn.apache.org/viewvc?rev=747059&view=rev).
To use it you probably need to rebuild updated daemon/trunk.

There are still problems, but they look different know:

felix@donar ~/svn/apache/directory/installers/trunk/apacheds/target/images/apacheds_1.5.5-SNAPSHOT $ ./apacheds.sh
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /apacheds-rolling.log (Permission denied)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
        at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
        at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:167)
        at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
        at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
        at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
        at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
        at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
        at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470)
        at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
        at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:103)
        at org.apache.directory.server.Service.<clinit>(Service.java:48)
        at org.apache.directory.server.UberjarMain.main(UberjarMain.java:45)
Starting the LDAP server
           _                     _          ____  ____
          / \   _ __    ___  ___| |__   ___|  _ \/ ___|
         / _ \ | '_ \ / _` |/ __| '_ \ / _ \ | | \___ \
        / ___ \| |_) | (_| | (__| | | |  __/ |_| |___) |
       /_/   \_\ .__/ \__,_|\___|_| |_|\___|____/|____/
               |_|

[17:07:31] WARN [org.apache.directory.server.schema.registries.DefaultOidRegistry] - OID for name 'krb5PrincipalName'
was not found within the OID registry
Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
        at
org.apache.directory.server.core.DefaultDirectoryService.createBootstrapEntries(DefaultDirectoryService.java:1014)
        at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1434)
        at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:851)
        at org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.java:126)
        at org.apache.directory.server.Service.initLdap(Service.java:128)
        at org.apache.directory.server.Service.init(Service.java:70)
        at org.apache.directory.server.UberjarMain.main(UberjarMain.java:56)
Caused by: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 7 more