Results 1 to 3 of 3

Thread: samples-ldap war doesn't include dependencies

  1. #1

    Default samples-ldap war doesn't include dependencies

    Running this war...

    http://s3browse.com/explore/maven.sp...5.105012-1.war

    In Tomcat 5.5.26 produces this error:

    [ERROR,ContextLoader,main] Context initialization failed
    org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML doc
    ument from ServletContext resource [/WEB-INF/applicationContext-security.xml]; nested exception is j
    ava.lang.NoClassDefFoundError: org/springframework/ldap/core/DirContextAdapter
    Caused by:
    java.lang.NoClassDefFoundError: org/springframework/ldap/core/DirContextAdapter


    From this error I deduce that spring ldap jars and dependencies need to be added. Okay, somewhat annoyed I continue on asking myself why wouldn't all the dependencies by included. Next I add these jars: commons-pool.jar, ldapbp.jar, spring-ldap-1.2.1.jar, spring-ldap-tiger-1.2.1.jar. Launching Tomcat again I get the dreaded MutableServerStartupConfiguration ClassNotFoundException. Bummer, things are still bad. Now this must mean that there's something incomplete w/ the apacheds dependencies. The lib dir appears to contain all the apacheds libs and dependencies. Now I'm totally confused as to what to do next. Learning spring-security LDAP authentication is proving difficult as there are not any decent examples that run straight out of the box. Any help would be appreciated. Thanks.

  2. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    Sorry about that. The dependencies have accidentally been set to "optional" in the pom file (probably because they were originally in the tutorial sample and ldap wasn't enabled by default).

    http://jira.springframework.org/browse/SEC-784

    You can run directly from a checkout of the existing codebase using the jetty plugin.

    I will fix the existing problem in the meantime, so the next snapshots should include the dependencies.

  3. #3

    Default

    The 2.0.1-20080423 snapshot war works like a champ. Thanks.

Posting Permissions

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