directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon.Tem...@saaconsultants.com
Subject Embedding 0.9 Problems
Date Wed, 18 May 2005 14:58:45 GMT




Hi

I'm trying to wrap your server as an mbean for deployment in jBoss.

I've been unable to use apacheds-main-0.9.jar as some of it's embedded
classes cause classpath and deployment issues with other mbeans so I have
decided to use apacheds-core-0.9.jar with a full set of its dependant JARs.

When I start the server using the following code I get the attached
ClassCastException.

Does anyone have any ideas on what may be wrong?  It's likely to be a
problem with classpath and/or JAR file combination but just can't spot
it...

---------------------------------------------------------------------

Directory related JAR's I have added to the classpath:

apacheds-core-0.9.jar                    apacheds-shared-0.9.jar
asn1-ber-0.3.jar
asn1-codec-0.3.jar                       aspectj-1.2.1.jar
commons-collections-3.0.jar
commons-io-1.0.jar                       commons-lang-2.0.jar
commons-primitives-20041207.202534.jar
jakarta-oro-2.0.8.jar                    jakarta-regexp-1.3.jar
jdbm-0.12.jar
kerberos-common-0.4.jar                  kerberos-protocol-0.4.jar
ldap-common-0.9.jar
ldap-protocol-0.9.jar                    mina-0.7.jar

---------------------------------------------------------------------

        env.put ( Context.PROVIDER_URL, "ou=system" );
        env.put (
Context.INITIAL_CONTEXT_FACTORY,"org.apache.ldap.server.jndi.ServerContextFactory"
 );
        InitialDirContext ctx = new InitialDirContext( env );

---------------------------------------------------------------------

java.lang.ClassCastException
      at
org.apache.ldap.server.schema.bootstrap.BootstrapSchemaLoader.register(BootstrapSchemaLoader.java:227)
      at
org.apache.ldap.server.schema.bootstrap.BootstrapSchemaLoader.access$0(BootstrapSchemaLoader.java:212)
      at
org.apache.ldap.server.schema.bootstrap.BootstrapSchemaLoader$1.schemaObjectProduced(BootstrapSchemaLoader.java:49)
      at
org.apache.ldap.server.schema.bootstrap.ApacheComparatorProducer.produce(ApacheComparatorProducer.java:66)
      at
org.apache.ldap.server.schema.bootstrap.BootstrapSchemaLoader.load(BootstrapSchemaLoader.java:193)
      at
org.apache.ldap.server.schema.bootstrap.BootstrapSchemaLoader.loadDepsFirst(BootstrapSchemaLoader.java:169)
      at
org.apache.ldap.server.schema.bootstrap.BootstrapSchemaLoader.load(BootstrapSchemaLoader.java:108)
      at
org.apache.ldap.server.jndi.CoreContextFactory.initialize(CoreContextFactory.java:515)
      at
org.apache.ldap.server.jndi.CoreContextFactory.getInitialContext(CoreContextFactory.java:212)
      at
org.apache.ldap.server.jndi.ServerContextFactory.getInitialContext(ServerContextFactory.java:153)
      at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
      at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
      at javax.naming.InitialContext.init(InitialContext.java:219)
      at javax.naming.InitialContext.<init>(InitialContext.java:195)
      at
javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:80)

---------------------------------------------------------------------

org.apache.ldap.server.schema.bootstrap.BootstrapSchemaLoader.register(BootstrapSchemaLoader.java:227)

    case( ProducerTypeEnum.COMPARATOR_PRODUCER_VAL ):
>>>>>   Comparator comparator = ( Comparator ) schemaObject;
        ComparatorRegistry comparatorRegistry;

---------------------------------------------------------------------

TIA


Simon Temple



Mime
View raw message