-
Apr 18th, 2008, 11:08 PM
#1
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.
-
Apr 19th, 2008, 07:36 AM
#2
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.
-
Apr 23rd, 2008, 06:01 PM
#3
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
-
Forum Rules