Right. I believe that the reason that Tomcat can't find ValveBase is that
it is loaded with a different class loader than classes in the common
directory.
Filip Hanik - Dev wrote:
put your class in server/classes, valves should not be common
Filip
Dear Tomcat users,
1. what exactly should the icon tags inside the web.xml do ? Is it simply
a
central reference for components within the webapp or does it have more
powerful
implications. i.e. the small icon will be used as an favicon type icon,
whenever a user
bookmarks a page from the
I'm using Tomcat 5.5.5 on Windows Server 2003. I have implemented a
new valve. I include the following line in my Engine ..
Valve className=com.en.stats.StatsValve /
My valve extends org.apache.catalina.valves.ValveBase
Everything works fine on my Mac OS X. However, on Windows, when I
start
put your class in server/classes, valves should not be common
Filip
- Original Message -
From: Asim Alp [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, February 03, 2005 10:28 AM
Subject: Valves
I'm using Tomcat 5.5.5 on Windows Server 2003. I
By default, the Authenticator is added after any custom Valves. However, if
you add the Authenticator yourself, you can control the order:
Context path=... docBase=...
Valve className=org.apache.catalina.authenticator.FormAuthenticator
/
Valve className
I have a custom Valve I specify in a Context element of the server.xml
which I'd like to be invoked after the AuthenticatorBase in the chain
of Valves so that I can use:
((HttpServletRequest) request.getRequest()).getRemoteUser()
and possibly get a meaningful value.
Is there any hope
Hi,
Does any one have experience in creating custom valves?
Thanks,
Sreeni
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Yes ;) And I imagine numerous others on this list do as well ;)
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Chippada, Sreeni [mailto:[EMAIL PROTECTED]
Sent: Monday, May 17, 2004 3:26 PM
To: Tomcat Users List
Subject: Question on Valves.
Hi,
Does any
Hi Yoav,
Before posting the question, I was having trouble deploying a valve.
I was not sure if valves are internal to tomcat or developer can customize.
I should have phrased my question better. Sorry about that.
I am able to deploy it now by jarring my custom valve and placing
Hi,
I am able to deploy it now by jarring my custom valve and placing it in
the
%CATALINA_HOME%\server\lib directory. Is this the right way to do it?
$CATALINA_HOME/common/lib might work as well. (Or unjarred in
server/classes or common/classes). The Valve's class must be visible to
the
Thanks.
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, May 17, 2004 4:01 PM
To: Tomcat Users List
Subject: RE: Question on Valves.
Hi,
I am able to deploy it now by jarring my custom valve and placing it in
the
%CATALINA_HOME%\server\lib directory
Hi ,
I have written a Valve class for finding the requests processed by
Tomcat [ver 4.1.24] and it is working fine in Linux machines .
The same Valve class is not working in the Windows machines ..
Please help me ..
Thanks and Regards,
Arun kumar
Hello all. Using valves in Tomcat 4, we successfully managed to intercept
requests to specific contexts and direct them elsewhere. For example, we
could intercept all requests to /SECRETWEBAPP and redirect them to /.
In order to accomplish this, we used valves which would call
setRequestURI
Howdy,
Hello all. Using valves in Tomcat 4, we successfully managed to
intercept
requests to specific contexts and direct them elsewhere. For example,
we
could intercept all requests to /SECRETWEBAPP and redirect them to /.
Why would you do this with a valve? Use a Filer, which is
spec
Howdy,
Hello all. Using valves in Tomcat 4, we successfully managed to
intercept
requests to specific contexts and direct them elsewhere. For example,
we
could intercept all requests to /SECRETWEBAPP and redirect them to /.
Why would you do this with a valve? Use a Filer, which is
spec
We can't use a filter because filters are per-webapp whereas valves are per
host. This is a hostwide redirect. We need to be able to redirect users
from /SOME/GARBAGE/HERE/actualWebappDirectory to /actualWebappDirectory
for all webapps (without having to require everyone to deploy the same exact
Green, Jeffrey wrote:
Hello all. Using valves in Tomcat 4, we successfully managed to intercept
requests to specific contexts and direct them elsewhere. For example, we
could intercept all requests to /SECRETWEBAPP and redirect them to /.
In order to accomplish this, we used valves which
: Thursday, January 15, 2004 11:21 AM
To: Tomcat Users List
Subject: Re: org.apache.catalina.HttpRequest.setRequestURI() and valves
Green, Jeffrey wrote:
Hello all. Using valves in Tomcat 4, we successfully managed to
intercept requests to specific contexts and direct them elsewhere
() and valves
Green, Jeffrey wrote:
Hello all. Using valves in Tomcat 4, we successfully managed to
intercept requests to specific contexts and direct them elsewhere. For
example, we could intercept all requests to /SECRETWEBAPP and redirect them
to /.
In order to accomplish this, we used
]
Sent: Thursday, January 15, 2004 11:21 AM
To: Tomcat Users List
Subject: Re: org.apache.catalina.HttpRequest.setRequestURI() and valves
Green, Jeffrey wrote:
Hello all. Using valves in Tomcat 4, we successfully managed to
intercept requests to specific contexts and direct them elsewhere
: org.apache.catalina.HttpRequest.setRequestURI() and valves
Green, Jeffrey wrote:
Hello all. Using valves in Tomcat 4, we successfully managed to
intercept requests to specific contexts and direct them elsewhere. For
example, we could intercept all requests to /SECRETWEBAPP and redirect
: Re: org.apache.catalina.HttpRequest.setRequestURI() and valves
Green, Jeffrey wrote:
Regarding the last post on this topic:
1) sendRedirect() doesn't seem to work because ValveBase's invoke()
method takes an org.apache.catalina.Response object and that class has
no
sendRedirect() method. Am
-specific features
really that great? Ignore these questions, I'm just asking myself ;))
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Steven Perry [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 6:34 AM
To: Tomcat Users List
Subject: Tomcat, Jonas and Valves.
I
-Original Message-
From: Steven Perry [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 6:34 AM
To: Tomcat Users List
Subject: Tomcat, Jonas and Valves.
I have implemented a Valve, and configured it in
%tomcat_home%\conf\server.xml . When I run catalina
start, this valve work
PROTECTED]
Sent: Monday, October 06, 2003 6:34 AM
To: Tomcat Users List
Subject: Tomcat, Jonas and Valves.
I have implemented a Valve, and configured it in
%tomcat_home%\conf\server.xml . When I run catalina
start, this valve work perfectly.
I have integrated tomcat and jonas, since Jonas is my
preferred
I have implemented a Valve, and configured it in
%tomcat_home%\conf\server.xml . When I run catalina
start, this valve work perfectly.
I have integrated tomcat and jonas, since Jonas is my
preferred ejb-container. But, when i use jonas
start, my valve doesn't seem to be functioning.
I even
i have asked a question couple weeks ago regarding combining filtering by
ip and authenticating by username/password.. thanks all of you who gave
suggestions. i finally got to get to it and have a valve working, but now i
have another problem..
i return a response with SC_UNAUTHORIZED if user
Get 4.1.17 and use the attribute rotatable=false for AccessLogValve.
-Tim
Adrian wrote:
Does anyone know how to get the 2002-12-17 out of the log file name ? My log
rotater won`t do
wild cards. I need all the logs to have the same name.
Adrian Thiele
--
To unsubscribe, e-mail:
Thanks, it`s always the little things that get you.
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 8:21 AM
To: Tomcat Users List
Subject: Re: Logger Valves
Get 4.1.17 and use the attribute rotatable=false for AccessLogValve.
-Tim
Adrian
Does anyone know how to get the 2002-12-17 out of the log file name ? My log
rotater won`t do
wild cards. I need all the logs to have the same name.
Adrian Thiele
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
multiple attribute values. It's pretty much
independent of the MBeans.
Excellent, so the Valves can then conform to an defined
servlet/applet/midlet like behaviour. I noticed the use of the
start() etc methods in the Valve and guessed that was something to
do with it, but also guess
On Wed, 11 Dec 2002, Jon Eaves wrote:
Date: Wed, 11 Dec 2002 13:17:53 +1100
From: Jon Eaves [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Custom Valves and Administration Tool
Craig R. McClanahan wrote:
First
Hi all,
Thanks to Bill Barker, my custom valves now are installed happily
within Tomcat and are valving away nicely without spewing MBean
exceptions into the log.
I was hoping to manage the valves via the Administration tool.
Q1. Is this possible ?
Q2. Do I have to modify the Admin tool ?
Q3
On Wed, 11 Dec 2002, Jon Eaves wrote:
Date: Wed, 11 Dec 2002 09:38:48 +1100
From: Jon Eaves [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Custom Valves and Administration Tool
Hi all,
Thanks to Bill Barker, my custom
was hoping to manage the valves via the Administration tool.
Q1. Is this possible ?
Yes, with some work.
Aha. I was hoping this wasn't going to be the answer. Oh well.
[ snip ]
If this is the case, why does the code for the Valve recommend
implementing the Lifecycle interface ? What
..
Now, if you don't mind, I've got just one more question ;-)
On Wed, 11 Dec 2002, Jon Eaves wrote:
I was hoping to manage the valves via the Administration tool.
Q1. Is this possible ?
Yes, with some work.
Aha. I was hoping this wasn't going to be the answer. Oh well.
to allocate and
release any resources that your Valve may need. Since the order of
setting attributes is undefined, it makes it much easier to determine
resources that depend on multiple attribute values. It's pretty much
independent of the MBeans.
Excellent, so the Valves can then conform
Goal: to keep items in a directory from being accessed without going
thru the web site
Method: create a filter valve that checks that the referrer is from
the same url (not hack proof, but good enough)
Problem: when I specify my filter valve, it looks like it is being
ignored completely; no
oops. retract that. the config lines cited below were actually
commented out when trying to resolve another problem. I don't know if
the ReferrerValve class will work yet but at least the server
complains if it can't find it.
Took a little work to figure out where to put it and how to get it
Hi all,
I'm having a bit of trouble getting the bugs out of my own Valve.
Short story: Custom valves that implement Lifecycle cause the web.xml
context parameters to disappear (i.e. not be visable to .jsp files).
Long story:
When using AccessLogValve all context parameters defined in web.xml
To: [EMAIL PROTECTED]
Subject: A problem with manager and Valves...
Greetings!
I have the manager servlets working quite fine - even have the HTTP
version running. I added the user to tomcat-users.xml, edited
server.xml to enable the manager (it was commented out), and even
edited the manager
Valve className=org.apache.catalina.valves.RemoteAddrValve
accept=*.*.*.*/
/Context
I also noticed that this should be 'allow', not 'accept'
Charlie
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list:
I believe the RemoteAddrValve uses regular expression, so try a leading
period as I'm not sure how reg exp treats a leading asterik.
'.*' should allow all
Charlie
I also noticed that this should be 'allow', not 'accept'
Charlie
Charlie,
Thank you so much. It turned out to be the allow
Greetings!
I have the manager servlets working quite fine - even have the HTTP
version running. I added the user to tomcat-users.xml, edited
server.xml to enable the manager (it was commented out), and even
edited the manager/WEB-INF/web.xml to change it to HTMLManagerServlet.
However, if I add
Hey,
I'm trying to write my on AccessLogValve to Tomcat 4.0 b1 but i have encouraged and
problem (suprise it's beta software)
everything seems to go well. New valve i being loaded and no exceptions been thrown.
But when i try to load 127.0.0.1:8080 nuthing happens. My new valve tells that
On Mon, 26 Mar 2001, Tuukk4 |[:)-| p4s4n3n wrote:
Hey,
I'm trying to write my on AccessLogValve to Tomcat 4.0 b1 but i have
encouraged and problem (suprise it's beta software)
everything seems to go well. New valve i being loaded and no
exceptions been thrown. But when i try to load
Hi,
I had a look at the Tomcat 4.0 document "Comparing RequestInterceptor and
Valve Technology". From what I understand Valves are an improvement.
But: How do Valves compare to ServletFilter?
Thanks
Christian
--
Christian Mallwitz INTERSHOP Communications Germany
Senior Softwar
47 matches
Mail list logo