Results 1 to 2 of 2

Thread: Classes for embedded test server?

  1. #1
    Join Date
    Aug 2008
    Posts
    16

    Default Classes for embedded test server?

    Hi all,
    I am getting the error
    java.lang.NoClassDefFoundError: org/apache/directory/server/core/configuration/Configuration

    Using Maven I download the jars via the POM
    <dependency>
    <groupId>org.apache.directory.server</groupId>
    <artifactId>apacheds-core</artifactId>
    <version>1.5.4</version>
    </dependency>

    <dependency>

    AND

    <groupId>org.apache.directory.server</groupId>
    <artifactId>apacheds-all</artifactId>
    <version>1.5.4</version>
    </dependency>

    AND grep'd the 1.5.4 distro (path "lib") of ApacheDS. No luck finding this class.

    I get this error when I try to create the embedded test server via
    <security:ldap-server ldif="classpath:someldap.ldif" port="33389"/>

    After googling for awhile I realize I need some help. Anyone know where this class lives?

    Thanks.

  2. #2
    Join Date
    Aug 2008
    Posts
    16

    Default

    Hi all,
    I looked in Spring Security's SVN and found that it is depending on ApacheDS 1.0.2 and found that I had to include the following dependencies in my POM ...

    Code:
    		<dependency>
                   <groupId>org.apache.directory.server</groupId>
    			<artifactId>apacheds-core</artifactId>
    			<version>1.0.2</version>
    		</dependency>
            <dependency>
                <groupId>org.apache.directory.server</groupId>
                <artifactId>apacheds-server-jndi</artifactId>
                <version>1.0.2</version>
                <scope>compile</scope>
                <optional>true</optional>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-log4j12</artifactId>
                <version>1.4.3</version>
                <scope>runtime</scope>
                <optional>true</optional>
            </dependency>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •