File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat: Placing own Realm class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat: Placing own Realm class" Watch "Tomcat: Placing own Realm class" New topic

Tomcat: Placing own Realm class

chris Jun

Joined: Apr 15, 2004
Posts: 1
For my web application I made my own Realm class.
I also defined it in server.xml in the Tomcat config.
Now everything works fine and I can use my own realm implementation for login forms.
But the thing is, I had to place the jar with the Realm class in the /server/lib directory.
I like to put the jar in the WEB-INF/lib directory of my web application, just like the rest of my jar files.
But then Tomcat can't find my Realm class that I defined in the server.xml.
Has anyone got a solution for me how to config Tomcat so I can put the Realm class in the directory of my web app?
thanks, bye
I agree. Here's the link:
subject: Tomcat: Placing own Realm class
It's not a secret anymore!