Re: Valves

2005-02-10 Thread Mark Anderson
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

icon, EJB's and Tomcat?, Login-valves, Realms with Oracle.. and other silly questions

2005-02-08 Thread Ben Bookey
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

Valves

2005-02-03 Thread Asim Alp
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

Re: Valves

2005-02-03 Thread Filip Hanik - Dev
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

Re: How to control the order Valves are invoked?

2004-09-03 Thread Bill Barker
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

How to control the order Valves are invoked?

2004-09-02 Thread Sandy McArthur
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

Question on Valves.

2004-05-17 Thread Chippada, Sreeni
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]

RE: Question on Valves.

2004-05-17 Thread Shapira, Yoav
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

RE: Question on Valves.

2004-05-17 Thread Chippada, Sreeni
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

RE: Question on Valves.

2004-05-17 Thread Shapira, Yoav
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

RE: Question on Valves.

2004-05-17 Thread Chippada, Sreeni
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

Valves in Tomcat 4.1.24 Windows

2004-01-24 Thread arunkumar
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

org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
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

RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Shapira, Yoav
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

RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Shapira, Yoav
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

RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
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

Re: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Jeanfrancois Arcand
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

RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
: 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

Re: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Jeanfrancois Arcand
() 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

RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
] 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

Re: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Jeanfrancois Arcand
: 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

2004-01-15 Thread Green, Jeffrey
: 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

RE: Tomcat, Jonas and Valves.

2003-10-09 Thread Steven Perry
-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

RE: Tomcat, Jonas and Valves.

2003-10-08 Thread Shapira, Yoav
-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

Re: Tomcat, Jonas and Valves.

2003-10-08 Thread Jean-Francois Arcand
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

Tomcat, Jonas and Valves.

2003-10-06 Thread Steven Perry
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

valves, and filtering by ip address

2003-05-31 Thread Vladimer Shioshvili
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

Re: Logger Valves

2002-12-18 Thread Tim Funk
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:

RE: Logger Valves

2002-12-18 Thread Adrian
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

Logger Valves

2002-12-17 Thread 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]

Re: Custom Valves and Administration Tool

2002-12-11 Thread Bill Barker
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

Re: Custom Valves and Administration Tool

2002-12-11 Thread Craig R. McClanahan
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

Custom Valves and Administration Tool

2002-12-10 Thread Jon Eaves
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

Re: Custom Valves and Administration Tool

2002-12-10 Thread Craig R. McClanahan
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

Re: Custom Valves and Administration Tool

2002-12-10 Thread Jon Eaves
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

Re: Custom Valves and Administration Tool

2002-12-10 Thread Bill Barker
.. 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.

Re: Custom Valves and Administration Tool

2002-12-10 Thread Jon Eaves
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

creating filter valves

2002-06-09 Thread Chuck Griffith
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

Re: creating filter valves

2002-06-09 Thread Chuck Griffith
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

Valves and (disappearing) Context Parameters

2002-05-01 Thread Simon Edwards
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

RE: A problem with manager and Valves...

2001-12-24 Thread Cox, Charlie
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

RE(2): A problem with manager and Valves...

2001-12-24 Thread Cox, Charlie
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:

A problem with manager and Valves...

2001-12-24 Thread Richard S. Huntrods
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

A problem with manager and Valves...

2001-12-22 Thread Richard S. Huntrods
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

Tomcat 4.0 and valves

2001-03-26 Thread Tuukk4 |[:)-| p4s4n3n
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

Re: Tomcat 4.0 and valves

2001-03-26 Thread Craig R. McClanahan
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

T4 architecture question: Valves vs. Servlet Filters

2000-11-28 Thread Christian Mallwitz
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