Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

problem in LDAPConnection  RSS feed

 
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
 
Author and ninkuma
Marshal
Posts: 66478
160
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.
 
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.
 
The moustache of a titan! The ad of a flea:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!