This is the one you need:
ldapbp.jar

The other Spring jars (besides spring LDAP) are not needed as CAS includes
the whole spring.jar (we should also include commons-logging, commons-lang,
and commons-collections if I recall correctly).

ldapbp.jar is a Sun jar.  I can't speak for why its separate.  Its
apparently called the "JNDI/LDAP Booster Pack".

-Scott

On 5/18/07, Paul Ortman <[EMAIL PROTECTED]> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Scott Battaglia wrote:
> Yep, you're missing a jar file.
>
> "Instantiation of bean failed; nested exception is
> java.lang.NoClassDefFoundError: com.sun.jndi.ldap.LdapCtxFactory"
>
> You can download the Spring LDAP distribution and there should be
> another jar in it that you need (the name always evades me).

  -rw-r--r-- 1 tomcat tomcat  13431 May 17 11:09 cas-server-ldap-3.0.7.jar
  -rw-r--r-- 1 tomcat tomcat 559366 May 17 12:57 commons-collections.jar
  -rw-r--r-- 1 tomcat tomcat 207723 May 17 12:57 commons-lang.jar
  -rw-r--r-- 1 tomcat tomcat  38015 May 17 12:57 commons-logging.jar
  -rw-r--r-- 1 tomcat tomcat  49437 May 17 12:57 ldapbp.jar
  -rw-r--r-- 1 tomcat tomcat 373325 May 17 12:57 spring-beans.jar
  -rw-r--r-- 1 tomcat tomcat 122078 May 17 12:57 spring-context.jar
  -rw-r--r-- 1 tomcat tomcat 172430 May 17 12:57 spring-core.jar
  -rw-r--r-- 1 tomcat tomcat 123817 May 17 12:57 spring-dao.jar
  -rw-r--r-- 1 tomcat tomcat 110756 May 17 12:57 spring-ldap-1.1.2.jar


Hmmm, I downloaded the Spring-LDAP binary distribution with all
dependencies.  This supposedly comes with everything I need.
According to Spring's own documentation [1] I've got all the
dependencies listed above, unless I need the
AcegiAuthenticationSource, but I don't think I do.

I'm really speaking about things I don't understand now, but doesn't
the class com.sun.jndi.ldap.LdapCtxFactory indicate that this
particular class is created and distributed by Sun?  Shouldn't that
class "come for free" with Java-1.4.2?

[1]

http://static.springframework.org/spring-ldap/docs/1.1.2/reference/#introduction-packaging

- --
Paul Ortman

PGP Key: 55602C81
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGTcYTfw8KGlVgLIERAst7AJ4o+EVJfmBQFPZu1vS2/So2thkg+gCfWv2Q
pk3JPSFXzY9cOqv/VCr2eOg=
=z1Nh
-----END PGP SIGNATURE-----
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas




--
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to