Meaningless Drivel is fun!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
 
subject: Tomcat6 Custom Realm - java.lang.ClassNotFoundException
 
Similar Threads
JSF 1.1 and Tomcat 6
Cannot Compile Class error on Tomcat 6.0
Logging into Tomcat
Tomcat server/lib location when running inside Eclipse?
Tomcat: Placing own Realm class