Hi,
I've made the change. But it doesn't work. I got
exception in log as follow:
[08:12:10] ERROR
[org.apache.directory.daemon.Bootstrapper] - Failed on
org.apache.directory.server.Service.init(InstallationLayout,
String[])
javax.naming.NamingException: attributeType w/ OID
1.3.6.1.4.1.18060.1.1.1.3.3 not registered!
at
org.apache.directory.server.core.schema.GlobalAttributeTypeRegistry.lookup(GlobalAttributeTypeRegistry.java:153)
at
org.apache.directory.server.core.partition.impl.btree.BTreePartition.init(BTreePartition.java:181)
at
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.init(JdbmPartition.java:189)
at
org.apache.directory.server.core.partition.DefaultPartitionNexus.addContextPartition(DefaultPartitionNexus.java:530)
at
org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:208)
at
org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:837)
at
org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:230)
at
org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialContext(AbstractContextFactory.java:118)
at
javax.naming.spi.NamingManager.getInitialContext(Unknown
Source)
at
javax.naming.InitialContext.getDefaultInitCtx(Unknown
Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at
javax.naming.directory.InitialDirContext.<init>(Unknown
Source)
at
org.apache.directory.server.Service.init(Service.java:96)
at
org.apache.directory.daemon.Bootstrapper.callInit(Bootstrapper.java:151)
at
org.apache.directory.daemon.ProcrunBootstrapper.prunsrvStart(ProcrunBootstrapper.java:65)
--- Emmanuel Lecharny <[EMAIL PROTECTED]> wrote:
> You are using a 1.0.0 server.xml file.
>
> Due to a bug, some OIDs have been changed in 1.0.2.
> Check this mail :
>
http://www.mail-archive.com/[email protected]/msg00210.html
>
> What you have to do is to replace references to
>
> 1.2.6.1.4.1.18060
>
> with
>
> 1.3.6.1.4.1.18060
>
> in your server.xml file.
>
> (Note the '2' which is changed to '3').
>
> It should work.
>
>
>
>
> Wei Chen wrote:
> > Hi all,
> >
> > I downladed and istalled the ApacheDS 1.0.2. It
> can be
> > started successfully.
> >
> > Later I try an example from internet and add the
> > following code to the /conf/server.xml. Then as I
> try
> > to start the DS server I got exception in log
> file.
> >
> > I guess the code I added to the server.xml is from
> > another version.
> >
> > Regards
> >
> > Wei
> >
> >
> >
> > 1. added to the server.xml
> > **************************
> > <bean id="examplePartitionConfiguration"
> >
>
class="org.apache.directory.server.core.partition.impl.btree.MutableBTreePartitionConfiguration">
> > <property
> > name="name"><value>example</value></property>
> > <property
> > name="cacheSize"><value>100</value></property>
> > <property
> > name="suffix"><value>dc=org</value></property>
> >
> > <!-- the optimizer is enabled by default but
> may
> > not always be what -->
> > <!-- you want if your queries are really
> simple
> > -->
> > <property
> >
>
name="optimizerEnabled"><value>true</value></property>
> >
> > <!--
> > Synchronization on writes does not wait for
> > synch operations
> > to flush dirty pages. Writes persist
> > immediately to disk at
> > a cost to performance with increased data
> > integrity. Otherwise
> > the periodic synch operation will flush
> dirty
> > pages using the
> > synchPeriodMillis parameter in the main
> > configuration.
> > -->
> > <property
> > name="synchOnWrite"><value>true</value></property>
> > <property name="indexedAttributes">
> > <set>
> > <bean
> >
>
class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
> > <property
> >
>
name="attributeId"><value>1.2.6.1.4.1.18060.1.1.1.3.1</value></property>
> > <property
> > name="cacheSize"><value>100</value></property>
> > </bean>
> > <bean
> >
>
class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
> > <property
> >
>
name="attributeId"><value>1.2.6.1.4.1.18060.1.1.1.3.2</value></property>
> > <property
> > name="cacheSize"><value>100</value></property>
> > </bean>
> > <bean
> >
>
class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
> > <property
> >
>
name="attributeId"><value>1.2.6.1.4.1.18060.1.1.1.3.3</value></property>
> > <property
> > name="cacheSize"><value>100</value></property>
> > </bean>
> > <bean
> >
>
class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
> > <property
> >
>
name="attributeId"><value>1.2.6.1.4.1.18060.1.1.1.3.4</value></property>
> > <property
> > name="cacheSize"><value>100</value></property>
> > </bean>
> > <bean
> >
>
class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
> > <property
> >
>
name="attributeId"><value>1.2.6.1.4.1.18060.1.1.1.3.5</value></property>
> > <property
> > name="cacheSize"><value>10</value></property>
> > </bean>
> > <bean
> >
>
class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
> > <property
> >
>
name="attributeId"><value>1.2.6.1.4.1.18060.1.1.1.3.6</value></property>
> > <property
> > name="cacheSize"><value>10</value></property>
> > </bean>
> > <bean
> >
>
class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
> > <property
> >
>
name="attributeId"><value>1.2.6.1.4.1.18060.1.1.1.3.7</value></property>
> > <property
> > name="cacheSize"><value>10</value></property>
> > </bean>
> >
> > <bean
> >
>
class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
> > <property
> > name="attributeId"><value>dc</value></property>
> > <property
> > name="cacheSize"><value>100</value></property>
> > </bean>
> > <bean
> >
>
class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
> > <property
> > name="attributeId"><value>ou</value></property>
> > <property
> > name="cacheSize"><value>100</value></property>
> > </bean>
> > <bean
> >
>
class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
> > <property
> >
>
name="attributeId"><value>krb5PrincipalName</value></property>
> > <property
> > name="cacheSize"><value>100</value></property>
> > </bean>
> > <bean
> >
>
class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
> > <property
> > name="attributeId"><value>uid</value></property>
> > <property
> > name="cacheSize"><value>100</value></property>
> > </bean>
> > <bean
> >
>
class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
> > <property
> >
>
name="attributeId"><value>objectClass</value></property>
> > <property
> > name="cacheSize"><value>100</value></property>
> > </bean>
> > </set>
> > </property>
> > <property name="contextEntry">
> > <value>
> > objectClass: top
> > objectClass: domain
> > dc: org
> > </value>
> > </property>
> > </bean>
> >
>
=== message truncated ===
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping