Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 85402 invoked from network); 10 Nov 2007 00:35:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Nov 2007 00:35:42 -0000 Received: (qmail 1650 invoked by uid 500); 10 Nov 2007 00:35:29 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 1620 invoked by uid 500); 10 Nov 2007 00:35:29 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 1609 invoked by uid 99); 10 Nov 2007 00:35:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 16:35:29 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nf-out-0910.google.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2007 00:36:09 +0000 Received: by nf-out-0910.google.com with SMTP id g16so610725nfd for ; Fri, 09 Nov 2007 16:35:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=9qIIK/+7w5eGqRNt09DvdYjccGgudj27BQoYn8esdz8=; b=HFMauxT93gEYEm+42rL9rgjHgAft7hlvy/83A3Ngkea3bTLms/EsGvgu0IWi5QzA8AeHHPa+zF2+UrEPn5h8bKaNVOhW7GyynzclgV7bb7DoUJ2HELOj55R+6wDkwhLDnPx8lClukqgvgdLb7x+/t5fnS0lV+JiJ8edYd4CPM3U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=hXKC1Pbio4BMchepr2EMfPJi32F2Q0MUyVuA3rWZL8wSH2HssKLAXava3TfRGpING4/c3iuH8+ZSEyaUza22+d9FCmUwEDhMs2yRPu28ceExzp+1kODyYHch//Xga05Dwd6Nf8ErTtgqKHXX4m+6vCkSu++ojALKBwefgrPTbl8= Received: by 10.86.97.7 with SMTP id u7mr1835836fgb.1194654905128; Fri, 09 Nov 2007 16:35:05 -0800 (PST) Received: from ?192.168.0.1? ( [82.66.216.176]) by mx.google.com with ESMTPS id d13sm2900575fka.2007.11.09.16.35.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Nov 2007 16:35:03 -0800 (PST) Message-ID: <4734FC99.60802@gmail.com> Date: Sat, 10 Nov 2007 01:34:33 +0100 From: Emmanuel Lecharny User-Agent: Thunderbird 1.5.0.14pre (X11/20071023) MIME-Version: 1.0 To: users@directory.apache.org Subject: Re: (Maybe not a Database Format Question) in Upgrade from 1.0.2 to 1.5.1 References: <4734A58C.4020404@ecbridges.com> <4734A7C7.5040601@ecbridges.com> <4734B091.9040906@ecbridges.com> In-Reply-To: <4734B091.9040906@ecbridges.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Ben, I think there is a problem when you try to read a 1.0 database with a 1.5 version : the way data are serialized is different. We didn't have written a convertor yet for the 1.5 version, but you can still export a 1.0 database using an LDIF export followed by an LDIF import in a 1.5 database. This is something we may add to ADS 2.0 : a way to migrate data from 1.0 to 2.0. Sorry for that ... Ben Madsen - Mailing List wrote: > Ok, so maybe it is a problem created by upgrading. The class that is > being searched for is: > > org.apache.directory.server.core.schema.SerializableComparator > > however, the class that is now available using 1.5.1 is: > > org.apache.directory.server.schema.SerializableComparator > > Any help on conversion tactics? > -Ben > > Ben Madsen - Mailing List wrote: > >> I'm using Tomcat 5.5 and Maven2 for the builds. The reference to the >> apacheds-schema-registries-1.5.1jar file seems to be getting there, and >> the jar package has the class... So it may not be an upgrade issue, but >> a configuration issue... Still, any help as to why the >> ClassNotFoundException is thrown would be nice. The jar gets into the >> WEB-INF/lib directory too... >> >> -Ben >> >> Ben Madsen - Mailing List wrote: >> >> >>> First, thanks to the developers and the community for a great package. >>> >>> Now, for my problem. I've looked around the mailing list and the >>> documentation to no avail. I've even Google'd for the error message I'm >>> seeing, but still haven't been able to find anything. But, bear with me >>> if I've just missed it. >>> >>> I recently decided to upgrade to v1.5.1 just to see if my original >>> problem I was experiencing was fixed in later releases. This problem >>> would be that of hanging on shutdown when ApacheDS was started from a >>> web container per the advanced guide instructions >>> (http://directory.apache.org/apacheds/1.0/embedding-apacheds-as-a-web-application.html). >>> >>> Anyway, the upgrade fixed it. But another problem that I found is that >>> when I tried to load up the old versions partition configuration >>> directory, it came back with the following error: >>> >>> Error starting DirectoryServer >>> java.lang.ClassNotFoundException: >>> org.apache.directory.server.core.schema.SerializableComparator >>> at >>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359) >>> at >>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205) >>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >>> at java.lang.Class.forName0(Native Method) >>> at java.lang.Class.forName(Class.java:247) >>> at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604) >>> at >>> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) >>> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) >>> at >>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) >>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) >>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) >>> at jdbm.btree.BTree.readExternal(BTree.java:537) >>> at >>> java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792) >>> at >>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751) >>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) >>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) >>> at jdbm.helper.Serialization.deserialize(Serialization.java:93) >>> at jdbm.helper.DefaultSerializer.deserialize(DefaultSerializer.java:97) >>> at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341) >>> at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263) >>> at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:242) >>> at jdbm.btree.BTree.load(BTree.java:276) >>> at >>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.(JdbmTable.java:141) >>> at >>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.initTables(JdbmIndex.java:140) >>> at >>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.(JdbmIndex.java:120) >>> at >>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.setUpdnIndexOn(JdbmStore.java:713) >>> at >>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.initCustomIndex(JdbmStore.java:219) >>> at >>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.initIndices2(JdbmStore.java:348) >>> at >>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.init(JdbmStore.java:454) >>> at >>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.init(JdbmPartition.java:115) >>> at >>> org.apache.directory.server.core.partition.DefaultPartitionNexus.initializeSystemPartition(DefaultPartitionNexus.java:421) >>> at >>> org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:248) >>> at >>> org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1001) >>> at >>> org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:255) >>> at >>> org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialContext(AbstractContextFactory.java:124) >>> at >>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) >>> at >>> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) >>> at javax.naming.InitialContext.init(InitialContext.java:223) >>> at javax.naming.InitialContext.(InitialContext.java:197) >>> at >>> javax.naming.directory.InitialDirContext.(InitialDirContext.java:82) >>> >>> >>> This would seem to indicate some kind of a problem in upgrading from the >>> 1.0.x data format and the 1.5.x data format based on the change to jDBM >>> for the file format provider. Is there a way to upgrade this to the new >>> format or am I just including the wrong library or something? >>> >>> Thanks in advance for your help. >>> >>> -Ben >>> >>> >>> > > -- -- cordialement, regards, Emmanuel L�charny www.iktek.com directory.apache.org