directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wei Chen <chenwei...@yahoo.com>
Subject Re: javax.naming.NamingException: attributeType w/ OID 1.2.6.1.4.1.18060.1.1.1.3.1 not registered!
Date Thu, 14 Feb 2008 15:48:35 GMT
Now I cut off the code I added to the server.xml as
follow:

  <bean id="myExamplePartitionConfiguration"
class="org.apache.directory.server.core.partition.impl.btree.MutableBTreePartitionConfiguration">
    <property name="name"><value>My
Example</value></property>
    <property
name="cacheSize"><value>100</value></property>
    <property
name="suffix"><value>dc=org</value></property>
    <property
name="optimizerEnabled"><value>true</value></property>
    <property
name="synchOnWrite"><value>true</value></property>
    <property name="contextEntry">
      <value>
        objectClass: top
        objectClass: domain
        dc: org
      </value>
    </property>
  </bean>

I can start the ApacheDS now. But as I try to import a
LDIF file, I got error:
javax.naming.NameAlreadyBoundException: [LDAP: error
code 68 - failed to add entry
o=manufacturingEnterprise,dc=org:
2.5.4.10=manufacturingenterprise,0.9.2342.19200300.100.1.25=org
already exists!]; remaining name
'o=manufacturingEnterprise,dc=org'

Someone can help?

I attach the LDIF as attachment




--- Wei Chen <chenwei624@yahoo.com> 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>
> 
> 2. Exception in log
> *******************
> [16:23:29] ERROR
> [org.apache.directory.daemon.Bootstrapper] - Failed
> on
>
org.apache.directory.server.Service.init(InstallationLayout,
> String[])
> javax.naming.NamingException: attributeType w/ OID
> 1.2.6.1.4.1.18060.1.1.1.3.1 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.initializeSystemPartition(DefaultPartitionNexus.java:363)
> 	at
>
org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:200)
> 	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)
> 
> 
>      
>
____________________________________________________________________________________
> Looking for last minute shopping deals?  
> Find them fast with Yahoo! Search. 
>
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> 
=== message truncated ===



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


Mime
  • Unnamed multipart/mixed (inline, 8-Bit, 0 bytes)
View raw message