Re: Which is right, the comment or the docs?

2011-01-25 Thread David Goodenough
On Tuesday 25 January 2011, Konstantin Kolinko wrote: > 2011/1/25 David Goodenough : > > In the file tomcat-users.xml (at least the one shipped with the 6.0.23 > > Debian package) the sample users have the attribute username= in the > > user tag. But in the manager-howto.htm

Which is right, the comment or the docs?

2011-01-25 Thread David Goodenough
In the file tomcat-users.xml (at least the one shipped with the 6.0.23 Debian package) the sample users have the attribute username= in the user tag. But in the manager-howto.html (again shipped with the Debian package) the examples all say the attribute should be name=. Which is right? David -

Re: Restricting access to tomcat via httpd proxy only

2010-11-09 Thread David Goodenough
On Tuesday 09 November 2010, Ari King wrote: > Hi all, > > I have an httpd proxy in front of my tomcat servers/instances, and I'd > like to restrict access to those tomcat servers/instances to be > through the httpd proxy. This is in a lab settings so I'd prefer to > use tomcat configurations, rat

Re: trouble with url-pattern in a filter-mapping (tomcat 6)

2010-08-20 Thread David Goodenough
On Friday 20 August 2010, Christopher Schultz wrote: > David, > > On 8/20/2010 11:27 AM, David Goodenough wrote: > > On Friday 20 August 2010, Pid wrote: > >> The url-pattern must start with a '/' character. > >> > >> Please post the complete

Re: trouble with url-pattern in a filter-mapping (tomcat 6)

2010-08-20 Thread David Goodenough
On Friday 20 August 2010, Pid wrote: > On 20/08/2010 10:40, David Goodenough wrote: > > I am trying to configure a filter to handle just requests to a single > > page which for the simplicity I will call page.htm (at the root of my > > application). > > > > So I

Re: logging from a filter

2010-08-20 Thread David Goodenough
On Friday 20 August 2010, Rainer Jung wrote: > On 20.08.2010 11:43, David Goodenough wrote: > > How do I write log entries from a Filter. In a servlet there is a log > > method but as a filter only implements Filter that is obviously not an > > option. > > The init() o

logging from a filter

2010-08-20 Thread David Goodenough
How do I write log entries from a Filter. In a servlet there is a log method but as a filter only implements Filter that is obviously not an option. David - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additio

trouble with url-pattern in a filter-mapping (tomcat 6)

2010-08-20 Thread David Goodenough
I am trying to configure a filter to handle just requests to a single page which for the simplicity I will call page.htm (at the root of my application). So I created a url-pattern which read:- page.htm and put it inside my tag. But when I start tomcat6 it throws an exception complaining that

Re: problem with JSP/JSTL and Tomcat 6

2010-08-18 Thread David Goodenough
On Wednesday 18 August 2010, Hassan Schroeder wrote: > On Wed, Aug 18, 2010 at 2:23 AM, David Goodenough > > wrote: > > I have some old JSP pages which used to run on Tomcat 5.5. I tried to > > move to Tomcat 6 and the current JSTL but I am getting some odd errors. >

problem with JSP/JSTL and Tomcat 6

2010-08-18 Thread David Goodenough
I have some old JSP pages which used to run on Tomcat 5.5. I tried to move to Tomcat 6 and the current JSTL but I am getting some odd errors. When I include the <%@ taglib directives inline in the source, say:- ... <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> ... I get a

Re: mixed html and jsp site using ProxyPass

2008-12-03 Thread David Goodenough
The reason was that Tomcat did not serve the Flash correctly, never did manage to get to the bottom of why but the browser did not complain - it just left big blank spaces. With this setup at least that bit works. David On Wednesday 03 December 2008, Peter Crowther wrote: > > From:

mixed html and jsp site using ProxyPass

2008-12-03 Thread David Goodenough
I have a site which is a mixture of html (and a bunch of images and flash and other such stuff which came in from the web designer) and a couple of JSPs. I have implemented this with Apache 2.2 and Tomcat 5.5, using ProxyPass statements with ajp in the Location tag. My location block looks like:

Re: How to tune JSP performance?

2007-01-23 Thread David Goodenough
On Tuesday 23 January 2007 18:14, Christopher Schultz wrote: > David, > > David Goodenough wrote: > > Currently it looks to me as though the problem is with the multicast > > messages for the clustering. I found a timeout message which is > > suggesting that for so

Re: How to tune JSP performance?

2007-01-23 Thread David Goodenough
On Tuesday 23 January 2007 15:51, Mikolaj Rydzewski wrote: > David Goodenough wrote: > > On the slow machine it takes 30 seconds to send back the 302 > > rewriting the URL so that it has a jsessionid, and then 16 > > seconds to serve the HTML for the logon page. > > Loo

How to tune JSP performance?

2007-01-23 Thread David Goodenough
I have a system with two identical machines running Tomcat 5.5.17 running identical applications. There are some extra things running on one of the machines, but these problems occur even when they are turned off. The application consists of two parts. There is a JSP layer, and a servlet (handl

Location for libraries need for resources in Context.xml

2006-10-31 Thread David Goodenough
With Tomcat 5.5 you can now define things like JDBC DataSources in META-INF/context.xml in your war files. JDBC DataSources need drivers, and obviously they can still be stored in common/lib, but given that they are defined, or rather their use is requested, through the war file, can the driver

Cluster JMX objects

2006-09-06 Thread David Goodenough
Does anyone have any code that shows the use of JMX to monitor the cluster objects in a Tomcat cluster (5.5.17 or later). I am interested in knowing which servers are currently connected, and if any are down. This last I guess is going to have to be done by exclusion as I am not aware of a list

Re: Is there any documentation of JULI anywhere?

2006-05-30 Thread David Goodenough
On Tuesday 30 May 2006 13:32, David Goodenough wrote: > I am trying to work out how to tailor the log entries going into the > Catalina log files, and am having no luck at all. > > I am using Tomcat 5.5.17. > > I have looked around for documentation of JULI, but I can find not

Is there any documentation of JULI anywhere?

2006-05-30 Thread David Goodenough
I am trying to work out how to tailor the log entries going into the Catalina log files, and am having no luck at all. I am using Tomcat 5.5.17. I have looked around for documentation of JULI, but I can find nothing which makes sense. There is a comment at the end of the logging,properties fi

filtering tomcat logging using default logging configuration

2006-05-22 Thread David Goodenough
I have a web application which is using a library which is generating too many messages. These are routed to catalina.out and all come from a particular producer (org.jgroups. is the prefix). I do not want to rework the logging to use log4j or the like, but I would like to suppress these WARN mes

How to embed server hostname in JSP page on clustered Tomcat

2006-05-12 Thread David Goodenough
I have a cluster of (currently) two Tomcat 5.5.17 instances. I want to put a hidden field on the pages which tells me which machine I am currently connected to. Reading the spec it appeared that using:- should work, but it would appear that all this does is take the server portion of the URL.

Is anyone here using ha-jdbc with database clusters?

2006-05-09 Thread David Goodenough
I am trying to set up ha-jdbc, and tried asking quesions on their mailing list but it seems to be a dead list, no traffic for >24 hours apart from my questions. I have it talking from one tomcat to multiple DBs, but I need to set it up using the tag to have these same DBs access from across a To

Re: Enabling JMX and jconsole in Tomcat 5.5

2006-05-08 Thread David Goodenough
On Monday 08 May 2006 14:51, Gustavo Noronha wrote: > 2006/5/8, Tim Lucia <[EMAIL PROTECTED]>: > > I have the following settings in my (Windows) service configuration on > > the Java tab (ONE PER LINE!) > > > > -Dcom.sun.management.jmxremote > > -Dcom.sun.management.jmxremote.port=8086 > > -Dcom.su

Re: Enabling JMX and jconsole in Tomcat 5.5 - SOLVED

2006-05-08 Thread David Goodenough
n JConsole, and on the remote tab, enter the host and port (8086) > and away I go. > > HTH, > Tim > > > -Original Message- > From: David Goodenough [mailto:[EMAIL PROTECTED] > Sent: Monday, May 08, 2006 6:54 AM > To: tomcat-user@jakarta.apache.org > Subje

Enabling JMX and jconsole in Tomcat 5.5

2006-05-08 Thread David Goodenough
I am trying to get jconsole to talk to Tomcat 5.5, and failing dismally. My first attempt was to enable the local access to JMX, using just -Dcom.sun.management.jmxremote but when I then start jconsole there are NO local services shown. So then I tried remote access, by setting -Dc.s.m.j.port=900

Re: Odd problem with Tomcat 5.5.9 and PhantomReferences

2006-03-10 Thread David Goodenough
On Wednesday 08 March 2006 16:33, David Goodenough wrote: > On Wednesday 08 March 2006 15:54, Caldarale, Charles R wrote: > > > From: David Goodenough [mailto:[EMAIL PROTECTED] > > > Subject: Odd problem with Tomcat 5.5.9 and PhantomReferences > > > >

Re: Odd problem with Tomcat 5.5.9 and PhantomReferences

2006-03-08 Thread David Goodenough
On Wednesday 08 March 2006 15:54, Caldarale, Charles R wrote: > > From: David Goodenough [mailto:[EMAIL PROTECTED] > > Subject: Odd problem with Tomcat 5.5.9 and PhantomReferences > > > > But when it comes to use the PhantomReference it g

Odd problem with Tomcat 5.5.9 and PhantomReferences

2006-03-08 Thread David Goodenough
I have a servlet which I am trying to run under Tomcat 5.5.9 which has a background thread in it. This thread uses JDBC, and in particular the Postgresql JDBC driver. This driver uses PhantomReferences in order to tidy up the underlying C objects. But when it comes to use the PhantomReference