Bookmark Topic Watch Topic
  • New Topic

problem in LDAPConnection

 
Nandan Jain
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65664
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Tomcat and most other web containers pay no attention whatsoever to the system classpath. You'll need to put the jar file containing that class in the WEB-INF/lib folder of the web app, or in one of the shared jar folders of Tomcat.
 
Nandan Jain
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Report post to moderator
oh man this is not workink...I put netscape directory in WEB-INF/lib and started tomcat ...but still I am getting the same error.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate of:
http://www.coderanch.com/t/362993/Servlets/java/LDAPConnection

Please do not cross post your questions.
It wastes peoples time.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!