• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat6 Custom Realm - java.lang.ClassNotFoundException

 
Sean Galland
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the Apache Tomcat log:

 
Sean Galland
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I determined the problem - my jar file wasn't created correctly because the package folders were not created correctly. My bad.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic