File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes NoClassDefFoundError!!!!LDAP hell Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "NoClassDefFoundError!!!!LDAP hell" Watch "NoClassDefFoundError!!!!LDAP hell" New topic

NoClassDefFoundError!!!!LDAP hell

Simbo Letierre

Joined: Feb 19, 2004
Posts: 1
I'm writing application to connect to server and retrieve employee information(I haven't even got to that part), i try to connect by doing:-
Hashtable environment = new Hashtable();
InitialDirContext root = new InitialDirContext(environment); //exception is thrown here"Connection Successful");
catch(NamingException ex)
{"Sorry Connection Unsuccessful"+"Error: "+ ex);
so I went into debug mode and i got the stack for it and I checked, and I don't know what's wrong with.....did i not give correct permissions for LDAP, since i link the libraries by reference rather than installing the jar files??anyways this is the stack(the relevant part anyway):-
at java/lang/Class.forName (
at com/sun/naming/internal/VersionHelper11.loadClass (
at javax/naming/spi/NamingManager.getInitialContext (
at javax/naming/InitialContext.getDefaultInitCtx (
at javax/naming/InitialContext.init (
at javax/naming/InitialContext.<init> (
at javax/naming/directory/InitialDirContext.<init> (
at Query.btnGo_click (
Thanks in advance, if somebody could help me, i would be most grateful.
Best Regards,
I agree. Here's the link:
subject: NoClassDefFoundError!!!!LDAP hell
It's not a secret anymore!