File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Adding Valve to Tomcat+JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Adding Valve to Tomcat+JBoss" Watch "Adding Valve to Tomcat+JBoss" New topic

Adding Valve to Tomcat+JBoss

Dan Johnsson

Joined: May 31, 2004
Posts: 24
I am trying to add a (self-implemented) Valve to a JBoss+Tomcat.

I try to do this by adding the <Valve> to the <Host>. However, it seems to me as a autenticator valve (it is a such), must be added to a <Context>.

Is that so?

When I try to add a <Context> I do not know how to set up the docBase. The docBase should be relative to the <Host> appBase, but I cannot find a such in my tomcat.sar/server.xml.

Can someone shed light over this mystery to me?
Dan Johnsson

Joined: May 31, 2004
Posts: 24
Extra info: We are using JBoss 3.2.5, and deploy everything as exploaded ear/war:s.
It is sorta covered in the JavaRanch Style Guide.
subject: Adding Valve to Tomcat+JBoss
Similar Threads
Authenticating Valve (NTLM)
How to Define web context in JBoss other then using war file??
Config context in JBoss
filter for j_security_check
Multiple web applications, one virtual host, access logging