| 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
|
|
|