• Post Reply Bookmark Topic Watch Topic
  • New Topic

LDAPConnection problem

 
Nandan Jain
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web applications don't use the system classpath, you should put the jars in the webapp/WEB-INF/lib directory
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!