• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat: Placing own Realm class

 
chris Jun
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
--------------------------------------------------------------------------------
Hi.
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic