Apr 18th, 2008, 11:08 PM
samples-ldap war doesn't include dependencies
Running this 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
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.
Apr 19th, 2008, 07:36 AM
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).
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.
Apr 23rd, 2008, 06:01 PM
The 2.0.1-20080423 snapshot war works like a champ. Thanks.