Announcement Announcement Module
Collapse
No announcement yet.
Classes for embedded test server? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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>

    Comment

    Working...
    X