Comet duplicate END events

2009-09-30 Thread Dan D
I have the exact situation as described thoroughly here: http://www.mail-archive.com/users@tomcat.apache.org/msg66793.html Any thoughts?

Re: mod_jk with Apache HTTP server version 2.2 and Tomcat 6.0

2009-09-30 Thread Bill Barker
"André Warnier" wrote in message news:4ac3d26d.4000...@ice-sa.com... > François Gravel wrote: >> Greetings, >> I'm a newbie trying my hand at setting up a local PHP and Java >> development >> environment. I use a laptop with Windows XP SP3. >> >> Both service are running fine locally, after in

Re: errors after install

2009-09-30 Thread Daniel Wittenberg
>> Daniel Wittenberg wrote: > >>> I'm setting up spacewalk, all default settings, and I'm getting this in > >>> the catalina.out. Any ideas ? > >>> Sep 29, 2009 7:19:34 PM com.mchange.v2.resourcepool.BasicResourcePool > >>> $AcquireTask run > >>> WARNING: com.mchange.v2.resourcepool.BasicResourceP

Re: mod_jk with Apache HTTP server version 2.2 and Tomcat 6.0

2009-09-30 Thread André Warnier
François Gravel wrote: ... Apart from the earlier message, I suggest you go back and undo the following : I then went through the steps to use Tomcat to auto-configure. So I've added the line "Include $TOMCAT_HOME/conf/jk/mod_jk.conf-auto" to the file $HTTPD_HOME/conf/httpd.conf. Remove th

Re: mod_jk with Apache HTTP server version 2.2 and Tomcat 6.0

2009-09-30 Thread André Warnier
François Gravel wrote: Greetings, I'm a newbie trying my hand at setting up a local PHP and Java development environment. I use a laptop with Windows XP SP3. Both service are running fine locally, after install. I will describe what I did as I followed the procedure to have mod_jk handle the c

mod_jk with Apache HTTP server version 2.2 and Tomcat 6.0

2009-09-30 Thread François Gravel
Greetings, I'm a newbie trying my hand at setting up a local PHP and Java development environment. I use a laptop with Windows XP SP3. Both service are running fine locally, after install. I will describe what I did as I followed the procedure to have mod_jk handle the communication between them

RE: Getting arbitrary environment variables from webapp

2009-09-30 Thread Caldarale, Charles R
> From: Mike Baranski [mailto:list-subscripti...@secmgmt.com] > Subject: Getting arbitrary environment variables from webapp > > Is there a way I can specify an environment variable via > the startup.sh Create a setenv.sh script in Tomcat's bin directory and export whatever variables you need th

Re: Explanation mod_jk error messages

2009-09-30 Thread Rainer Jung
On 30.09.2009 17:19, Bocalinda wrote: > Hi André. > > I actually stopped one server on purpose, to test the mod_jk's behavior. > So the errors are not generated due to an overload or something. > > I would love to send you the whole workers.properties file and server.xml, > but unfurtunately at t

RE: errors after install

2009-09-30 Thread Daniel Wittenberg
I've done this and responses I got were "it appears to be a tomcat issue so maybe try there"sobut I will gather the data requested and get back... Dan On Wed, 2009-09-30 at 14:31 -0500, Caldarale, Charles R wrote: > > From: André Warnier [mailto:a...@ice-sa.com] > > Subject: Re: errors a

RE: errors after install

2009-09-30 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: errors after install > > So if you don't willingly start providing the information requested, > I'm gonna wash my hands off it all, and leave you in the hands of > Chuck or Pid here. Then, you'll see what "abrupt" means. > ;-) Or, the

Re: errors after install

2009-09-30 Thread André Warnier
Daniel Wittenberg wrote: Very true, sorry for so vague. So selinux is turned off, I don't enable unless I have to most of the time. - Spacewalk = RHN = Linux server management tool - It is running on CentOS 5 and uses latest tomcat5 RPM's The problem is I know little to nothing about tomcat, I

RE: Accessing a database from a Valve

2009-09-30 Thread shetc
The person paying me :-) I suggested a filter but he prefers a valve even though it ties that functionality to Tomcat. -- View this message in context: http://www.nabble.com/Accessing-a-database-from-a-Valve-tp25673641p25685437.html Sent from the Tomcat - User mailing list archive at Nabble.com

RE: Accessing a database from a Valve

2009-09-30 Thread Caldarale, Charles R
> From: shetc [mailto:sh...@bellsouth.net] > Subject: Re: Accessing a database from a Valve > > I have been required to try and do this with a Valve. Just for curiosity's sake, what's the source of that requirement? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIET

Re: Accessing a database from a Valve

2009-09-30 Thread shetc
Thanks for the pointers. That was my original plan but I have been required to try and do this with a Valve. The caching is good but I still have to read from a database to periodically up the list of IP addresses. -- View this message in context: http://www.nabble.com/Accessing-a-database-from-

Re: 6.0.20 - New behavior on conf/Catalina//.xml update. Why redeploy?

2009-09-30 Thread Peter Crowther
I know it's bad form to reply to my original mail - sorry! 2009/9/30 Peter Crowther : > I wonder whether this is a race condition with some text editors.  For > example, if vi operated in the following way: > 1) Rename context.xml to context.xml~ > 2) Create context.xml, write contents, close file

Re: 6.0.20 - New behavior on conf/Catalina//.xml update. Why redeploy?

2009-09-30 Thread Igor Mukhin
I just tried to reproduce the issue on the server from yesterday. The application is reloaded just fine. No deletions/undeployments. I love Tomcat again. Thanks, Mark. P.S. But just to be consistent, why not to create an empty context xml file under /conf/Catalina for applications that have no

Re: 6.0.20 - New behavior on conf/Catalina//.xml update. Why redeploy?

2009-09-30 Thread Igor Mukhin
I just tried to reproduce the issue on the server from yesterday. The application is reloaded just fine. No deletions/undeployments. I love Tomcat again. Thanks, Mark. P.S. But just to be consistent, why not to create an empty context xml file under /conf/Catalina for applications that have no

Re: 6.0.20 - New behavior on conf/Catalina//.xml update. Why redeploy?

2009-09-30 Thread Peter Crowther
2009/9/30 Mark Thomas : > I can't reproduce with my mac either which makes me think the context.xml file > was missing (renamed, deleted, moved) at the moment the autoDeploy thread > looked > for it and that triggered an undeploy and associated deletion of the > directory. I wonder whether this

Re: 6.0.20 - New behavior on conf/Catalina//.xml update. Why redeploy?

2009-09-30 Thread Mark Thomas
Igor Mukhin wrote: > Thanks, Mark. > > 1. I just tried to reproduce the issue on my pc. And I couldn't, which > is a good thing. I will try it again later on the server, with which I > had the issue yesterday. I can't reproduce with my mac either which makes me think the context.xml file was missi

Re: 6.0.20 - New behavior on conf/Catalina//.xml update. Why redeploy?

2009-09-30 Thread Igor Mukhin
Thanks, Mark. 1. I just tried to reproduce the issue on my pc. And I couldn't, which is a good thing. I will try it again later on the server, with which I had the issue yesterday. 2. OK 3. Can live with that Mark Thomas wrote: Igor Mukhin wrote: 1. I have looked at the new documentatio

Re: Explanation mod_jk error messages

2009-09-30 Thread Bocalinda
Hi André. I actually stopped one server on purpose, to test the mod_jk's behavior. So the errors are not generated due to an overload or something. I would love to send you the whole workers.properties file and server.xml, but unfurtunately at this moment I can't. In advance I can tell you that b

Re: 6.0.20 - New behavior on conf/Catalina//.xml update. Why redeploy?

2009-09-30 Thread Mark Thomas
Igor Mukhin wrote: > 1. > I have looked at the new documentation and the new code in > org.apache.catalina.startup.HostConfig.java. And my first question is: > what is reason behind redeploying the application after detecting an > update of /conf/.../.xml? (6.0.18 restarts the application in > this

Re: errors after install

2009-09-30 Thread Daniel Wittenberg
Very true, sorry for so vague. So selinux is turned off, I don't enable unless I have to most of the time. - Spacewalk = RHN = Linux server management tool - It is running on CentOS 5 and uses latest tomcat5 RPM's The problem is I know little to nothing about tomcat, I only figured those wer

6.0.20 - New behavior on conf/Catalina//.xml update. Why redeploy?

2009-09-30 Thread Igor Mukhin
Hallo everybody, At first I like to say that I always loved Tomcat and the job the commiters/community does with it. But this change/version is just frustrating... I tried Tomcat 6.0.20 yesterday and was really disappointed about what happend (since 6.0.18) with the handing of context.xml. T

Getting arbitrary environment variables from webapp

2009-09-30 Thread Mike Baranski
Is there a way I can specify an environment variable via the startup.sh that I can then use System.getenv("MYWEBAPP_CONFIG_FILE"); to get it from within my application? I need to store a file outside of the webroot to read configuration from, so that if a user changes this file, it will not get o

Re: Memory behavior: Tomcat versus Jetty

2009-09-30 Thread Tim Funk
If you use JSP tags where the JSP body does not directly stream but needs buffered for the tag to finish processing it (using BodyContent) - then tomcat will allocate and reuse these. If you are creating pages with large body contents - this can take *A LOT* of memory. The rational is to reuse

Re: Memory behavior: Tomcat versus Jetty

2009-09-30 Thread Mark Thomas
Christian Stöber wrote: > Hello list, > > we are about to migrate our webserver cluster from Jetty 5.1.14 to > Tomcat 6.0.20. Currently there are four servers in our cluster with > simple load balancing and no session clustering. > > At the moment we are testing Tomcat on 2 nodes of our cluster (

Memory behavior: Tomcat versus Jetty

2009-09-30 Thread Christian Stöber
Hello list, we are about to migrate our webserver cluster from Jetty 5.1.14 to Tomcat 6.0.20. Currently there are four servers in our cluster with simple load balancing and no session clustering. At the moment we are testing Tomcat on 2 nodes of our cluster (also no session clustering yet).

Re: Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread MartinOShea
The query has been changed to "select 1". Thanks. Pid-6 wrote: > > On 30/09/2009 13:38, MartinOShea wrote: >> >> So select now() is fine. > > (Where "fine" is defined as "not what you were advised to use, for sound > reasons that are require a longer explanation than was necessary at the >

Re: Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread Pid
On 30/09/2009 13:38, MartinOShea wrote: So select now() is fine. (Where "fine" is defined as "not what you were advised to use, for sound reasons that are require a longer explanation than was necessary at the time".) p Thanks. markt-2 wrote: MartinOShea wrote: Thanks for the reply

Re: Explanation mod_jk error messages

2009-09-30 Thread André Warnier
Bocalinda wrote: ... My mod_jk configuration only has the following settings (apart from the port and IP address settings ofcourse): That is exactly what it would have been interesting to see, along with the tags in your Tomcat's server.xml files. What is strange with the error messages y

Re: Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread MartinOShea
So select now() is fine. Thanks. markt-2 wrote: > > MartinOShea wrote: >> Thanks for the reply. >> >> Setting testOnBorrow to true is something I'll try but according to: >> >> http://commons.apache.org/dbcp/configuration.html >> >> If testOnBorrow is set to true, the validation query must

Re: Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread Mark Thomas
MartinOShea wrote: > Thanks for the reply. > > Setting testOnBorrow to true is something I'll try but according to: > > http://commons.apache.org/dbcp/configuration.html > > If testOnBorrow is set to true, the validation query must be set to a > 'non-null string'. Presumably this means that the

Re: Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread MartinOShea
Thanks for the reply. Setting testOnBorrow to true is something I'll try but according to: http://commons.apache.org/dbcp/configuration.html If testOnBorrow is set to true, the validation query must be set to a 'non-null string'. Presumably this means that the query must always return a value s

Re: Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread Mark Thomas
MartinOShea wrote: > But I think what is > happening after eight hours of inactivity, is that the system is trying to > reuse a connection pool object that MySQL has closed down after its default > eight hour period. Sounds likely. > testOnBorrow = "false" Try setting this to true. Mark -

Re: Accessing a database from a Valve

2009-09-30 Thread Mark Thomas
Martin Gainty wrote: > this should do it > http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/valves/JDBCAccessLogValve.html No it won't. Not even close. Mark > > Martin Gainty > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni e

Re: Accessing a database from a Valve

2009-09-30 Thread Mark Thomas
shetc wrote: > Ah, just spotted the JDBCAccessLogValve class. I guess that will clue me in > :-) It won't. You want the RemoteAddressValve. A couple of pointers you can use or ignore as you see fit: - Use a filter rather than a valve. It is more portable. - Cache the list of balcklisted IPs if at

Explanation mod_jk error messages

2009-09-30 Thread Bocalinda
Hi List, I have configured Apache 2.2.11 (worker mpm) with mod_jk 1.2.27 and two nodes of Tomcat 6.0.20 My mod_jk configuration only has the following settings (apart from the port and IP address settings ofcourse): worker.tcnodo-11.socket_keepalive=true worker.tcnodo-11.connection_pool_timeout=

Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread MartinOShea
Hello I wonder if anyone can advise me on this issue. I have a Tomcat 6.X Java / JSP application which uses connection pooling to access a MySQL database but, if the application is left for up to eight hours, one of the pages fails to display the contents of a dataset upon loading. Looking into