Re: How to add a request filter for TC5.5.3? It was working for TC5.0.29!

2004-11-26 Thread Bill Barker
Valves (and other custom components, like Realms) written for TC 5.0.x will 
at the very least have to be re-compiled to work for TC 5.5.x.  More likely, 
there will have to be code changes to make them work.  That's just the price 
you pay for relying on TC internals ;-).

David Lee [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
Dear Folks,

I have a test request filter on TC5.0.29. It is defined in server.xml as
follows and it works:

conf\server.xml:

 Context path= docBase=ROOT debug=0
 Valve className=com.oreilly.tomcat.valves.BadInputFilterValve
 deny=\x00,\x04,\x08,\x0a,\x0d/
 /Context

How do I move this context into TC5.5.3, I tried to put it into
conf\context.xml file and I saw
the errors when I started TC5.5.3. I struggle for a while and still
don't know how to do it?

Thanks in advance for any help

David Lee




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to add a request filter for TC5.5.3? It was working for TC5.0.29!

2004-11-26 Thread Remy Maucherat
On Fri, 26 Nov 2004 15:14:27 -0800, David Lee [EMAIL PROTECTED] wrote:
 Dear Folks,
 
 I have a test request filter on TC5.0.29. It is defined in server.xml as
 follows and it works:
 
 conf\server.xml:
 
  Context path= docBase=ROOT debug=0
  Valve className=com.oreilly.tomcat.valves.BadInputFilterValve
  deny=\x00,\x04,\x08,\x0a,\x0d/
  /Context
 
 How do I move this context into TC5.5.3, I tried to put it into
 conf\context.xml file and I saw
 the errors when I started TC5.5.3. I struggle for a while and still
 don't know how to do it?

The Valve API was slightly changed in 5.5. This is likely what causes
the errors you see.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to add a request filter for TC5.5.3? It was working for TC5.0.29!

2004-11-26 Thread David Lee
Yes, It has been rewritten and recompiled, the last thing is How do I
specify the context, 
I mean move the context to TC5.5.3.

Thanks

David 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Friday, November 26, 2004 3:25 PM
To: [EMAIL PROTECTED]
Subject: Re: How to add a request filter for TC5.5.3? It was working for
TC5.0.29!

Valves (and other custom components, like Realms) written for TC 5.0.x
will at the very least have to be re-compiled to work for TC 5.5.x.
More likely, there will have to be code changes to make them work.
That's just the price you pay for relying on TC internals ;-).

David Lee [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
m...
Dear Folks,

I have a test request filter on TC5.0.29. It is defined in server.xml as
follows and it works:

conf\server.xml:

 Context path= docBase=ROOT debug=0  Valve
className=com.oreilly.tomcat.valves.BadInputFilterValve
 deny=\x00,\x04,\x08,\x0a,\x0d/
 /Context

How do I move this context into TC5.5.3, I tried to put it into
conf\context.xml file and I saw the errors when I started TC5.5.3. I
struggle for a while and still don't know how to do it?

Thanks in advance for any help

David Lee




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to add a request filter for TC5.5.3? It was working for TC5.0.29!

2004-11-26 Thread David Lee
Hi! Remy,

For TC5.5.3
I put the context in conf\context.xml as follows

!-- The contents of this file will be loaded for each web application --
Context  path= docBase=ROOT debug=0

!-- Default set of monitored resources --
WatchedResourceWEB-INF/web.xml/WatchedResource
WatchedResourceMETA-INF/context.xml/WatchedResource

!-- Uncomment this to disable session persistence across Tomcat 
restarts --
!--
Manager pathname= /
--

Valve className=com.oreilly.tomcat.valves.BadInputFilterValve
deny=\x00,\x04,\x08,\x0a,\x0d/


/Context

TC5.5.3 starts no errors, but when I accessed it http://localhost:8080, a blank 
page 
Appears. If I take out the above context, I can the page, something wrong with 
how do
I move the conf\server.xml context into the TC5.5.3 file?

David 

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 26, 2004 3:31 PM
To: Tomcat Users List
Subject: Re: How to add a request filter for TC5.5.3? It was working for 
TC5.0.29!

On Fri, 26 Nov 2004 15:14:27 -0800, David Lee [EMAIL PROTECTED] wrote:
 Dear Folks,
 
 I have a test request filter on TC5.0.29. It is defined in server.xml 
 as follows and it works:
 
 conf\server.xml:
 
  Context path= docBase=ROOT debug=0  Valve 
 className=com.oreilly.tomcat.valves.BadInputFilterValve
  deny=\x00,\x04,\x08,\x0a,\x0d/
  /Context
 
 How do I move this context into TC5.5.3, I tried to put it into 
 conf\context.xml file and I saw the errors when I started TC5.5.3. I 
 struggle for a while and still don't know how to do it?

The Valve API was slightly changed in 5.5. This is likely what causes the 
errors you see.

--
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]