jQuery in Action, 2nd edition
The moose likes Servlets and the fly likes LDAPConnection problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "LDAPConnection problem" Watch "LDAPConnection problem" New topic
Author

LDAPConnection problem

Nandan Jain
Ranch Hand

Joined: Feb 14, 2006
Posts: 44
Hi,
I am developing a small application where I need to intract with LDAP to read the attributes. In one java file when I run it using main() funcation it runs perfectly well, but problem comes when I deploy it on tomcat.
Whenever I run application on my local machine using tomcat it says
..............................
Error: 500
Location: /ForgotPassword/VerifyUser.do
Internal Servlet Error:

java.lang.NoClassDefFoundError: netscape/ldap/LDAPSearchResults

..............................
all is correct, package netscape is present at class path and nothing went wrong when I run it as a seperate file using main()...but problem comes when I use tomcat serlet and jsps...I dont know what is wrong ???

may anyone help me ?

Regards,
Nandan
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Web applications don't use the system classpath, you should put the jars in the webapp/WEB-INF/lib directory
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: LDAPConnection problem
 
Similar Threads
problem in LDAPConnection
Brainstorming: authentication problems
Importing Certificate into JAVA Keystore
ldap authentication using jndi realm
Providing Security to a Web Component (WAR)