File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat6 Custom Realm - java.lang.ClassNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat6 Custom Realm - java.lang.ClassNotFoundException" Watch "Tomcat6 Custom Realm - java.lang.ClassNotFoundException" New topic
Author

Tomcat6 Custom Realm - java.lang.ClassNotFoundException

Sean Galland
Greenhorn

Joined: Jan 18, 2013
Posts: 3
Hello,

I am writing a custom authentication solution since our website uses a custom encryption/hashing process. I created and compiled the jar without errors, but when I put the jar inside tomcat6's lib directory (not the web apps lib directory) I get the following error: java.lang.ClassNotFoundException. I have done a lot of Google'ing/Stackoverflow'ing and searching Coderanch to no avail.

My realm is setup in server.xml as follows:


This is the tutorial I used to come up with a test realm: Setup your own Tomcat security realm

Any assistance in getting the class loader to locate my custom realm jar would be appreciated.
Sean Galland
Greenhorn

Joined: Jan 18, 2013
Posts: 3
Here is the Apache Tomcat log:

Sean Galland
Greenhorn

Joined: Jan 18, 2013
Posts: 3
I determined the problem - my jar file wasn't created correctly because the package folders were not created correctly. My bad.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat6 Custom Realm - java.lang.ClassNotFoundException