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
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=
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
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
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
-
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
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
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
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
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
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
>
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).
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 (
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
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
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
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
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
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
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
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
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
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
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
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
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-
> 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
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
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
> 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
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
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
> 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
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
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
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
>> 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
"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
I have the exact situation as described thoroughly here:
http://www.mail-archive.com/users@tomcat.apache.org/msg66793.html
Any thoughts?
39 matches
Mail list logo