• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat6 Custom Realm - java.lang.ClassNotFoundException

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the Apache Tomcat log:

 
Sean Galland
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic