Re: problems with mod_jk modifying headers

2007-07-02 Thread Richard Kaye
I saw your first post and was interested. I am running a very similar system with no problems (I take that back: there are problems, but not this problem). Q1. Is there something in your apache config file(s) to do with mimetypes that is messing things up? Q2. Are you working with strange c

Re: using mod_jk: how to set content-type

2007-06-22 Thread Richard Kaye
Yes, I understood Johnny's point about other uses for a filter even though it was somewhat off-topic. He is quite right about what I am trying to do. I've looked at it and can write a filter and get this going to solve my particular problem. I can't yet see how to write a reasonably powerful g

Re: using mod_jk: how to set content-type

2007-06-21 Thread Richard Kaye
app code > itself. > > Regards, > > Rainer > > Richard Kaye wrote: > > Hi > > > > I am using Tomcat5.5, Apache2.2 and mod_jk1.2 > > and a third-part servlet which I can't re-program or > > configure. > > > > I need to sniff th

using mod_jk: how to set content-type

2007-06-21 Thread Richard Kaye
Hi I am using Tomcat5.5, Apache2.2 and mod_jk1.2 and a third-part servlet which I can't re-program or configure. I need to sniff the HTTP "User-Agent" and/or "Accept" fields and change the content-type (currently "text/html;charset=UTF-8") that the servlet returns based on these. using mod_hea

Re: APR installation Question

2007-06-15 Thread Richard Kaye
than 1.1.4 R On Fri, 2007-06-15 at 15:37 +0300, Ilja S. wrote: > Hi > Well I can suggest you to download the same version of tomcat you have > installed from the apache.org and just copy this file from downloaded > archive.. > * > Best Regards

Re: APR installation Question

2007-06-15 Thread Richard Kaye
Hi I also get > > The Apache Tomcat Native library which allows optimal performance in > > production environments was not found on the java.library.path: I'm using tomcat 5.5 installed from debian debs, and I think I understand the instructions I have read so far and have all the prerequisites

Re: Tomcat Server CPU utilization goes upto 400%

2007-06-15 Thread Richard Kaye
I think I have one if you'd like it... Only problem is, it doesn't work :( AFAIK 400% of zero is still zero :D R On Thu, 2007-06-14 at 21:14 +0200, Filip Hanik - Dev Lists wrote: > man, I need to get a CPU like that, that can actually work 4 times its > max capacity :) > > Filip > > --

Re: Problem with XSL stylesheet not being applied when XML served through Tomcat

2007-06-13 Thread Richard Kaye
Interesting, and I don't know the answer. Doesn't sound like it's an issue with the mimetype of the main document. One small point is that you load your stylesheet with but the server provides it as "application/xml". AFAIK "text/xsl" was never registered and so you might try "text/xml" or "appl

Re: content-type without charset

2007-05-30 Thread Richard Kaye
t from the fact I have to specify the charset carefully, can you foresee any possible problems? Thanks for all the help, it's very much appreciated. Richard > Richard Kaye wrote: >> Thank you! I was using a writer and switching to a >> ServletOutputStream fixed it. I neve

Re: content-type without charset

2007-05-30 Thread Richard Kaye
Thank you! I was using a writer and switching to a ServletOutputStream fixed it. I never thought of that: the specs say streams are intended for binary data... Richard > Richard Kaye wrote: >> Please could someone help me by posting a Hello-world >> servlet that serves a doc

content-type without charset

2007-05-29 Thread Richard Kaye
Hi I have been tearing my hair out recently with an annoying problem. I want to serve XHTML+MathML documents from a servlet. The problem is that it seems that these can only be viewed with IE and the plugin (MathPlayer) if the server sends Content-Type: application/xhtml+xml in the HTTP hea