Hi Darryl.
I need a script that do the same you mention: For myself, I have scripts
that detects when the service is down, sends me an email, then tries to
restart it, then will email if it has managed to recover it. If it can't
restart it after 5 minutes, then I get an SMS.
Can you share it?
Hi All,
I used the inbuild reverse proxy feature in sun java system webserver 7.
This works perfect than the connector. Also very simple.
We can just redirect in UI. Wow. I tried it before but it was having few
issues with sso headers. Now all looks good.
All the pages are loading perfect.
This needs to be run as root
Put it in a cron job to fire every minute
#!/bin/sh
DOWN=0
read DOWN status.txt
if [ $DOWN -eq 1 ]
then
if [ `ps -ef|grep tomcat|grep -v grep|wc -l` -gt 0 ]
then
NOW=`date`
subject=tomcat recovered $NOW
address=m...@domain.com
ps -ef|grep
On 21/03/2011 23:15, André Warnier wrote:
Mark Thomas wrote:
On 21/03/2011 22:06, SQ wrote:
Mark Thomas wrote:
On 18/03/2011 21:05, SQ wrote:
Environment:
Solaris 10
Apache 2.2.16
mod_jk 1.2.31 -- Tomcat 5.5.30
JVM 1.6.0_14
Which AJP connector are you using? Is APR/native
Firstly, thanks for all your answers.
Inside origin there're about ten subdirs like target. Some of them are
symlinked to the new filesystem. The rest, must remain in their path so:
- AFAIK, we can't mount the new drive to origin/target because target is not
the only subdir we are symlinking (it
Mark Thomas wrote:
On 21/03/2011 23:15, André Warnier wrote:
Mark Thomas wrote:
On 21/03/2011 22:06, SQ wrote:
Mark Thomas wrote:
On 18/03/2011 21:05, SQ wrote:
Environment:
Solaris 10
Apache 2.2.16
mod_jk 1.2.31 -- Tomcat 5.5.30
JVM 1.6.0_14
Which AJP connector are you using?
On 22/03/2011 10:24, André Warnier wrote:
The following is no criticism, and is meant as a constructive comment :
snip/
Patches still welcome, mm ?
Yep. The offer to help anyone set up an environment so they can create
and test patches still stands.
Mark
On 22 March 2011 08:32, Goyo goyocas...@gmail.com wrote:
Inside origin there're about ten subdirs like target. Some of them are
symlinked to the new filesystem. The rest, must remain in their path so:
- AFAIK, we can't mount the new drive to origin/target because target is
not
the only
I’m working on designing a new production environment for our software, and
I’m curious about the best approach to take.
One of the plans we are testing out is to use IIS7 on Windows Server 2008 R2
with Tomcat 6.0.32 (with APR / tcnative enabled). However, we are a bit
confused as to the best
On 22/03/2011 12:56, Nick Williams wrote:
Also, the Apache Portable Runtime is only useful over HTTP and not AJP,
right? Making that an advantage of ARR over JK?
There are BIO and APR/native versions of the Tomcat AJP connector.
APR/native can be useful for both HTTP and AJP. How useful depends
Hi Mark,
This SessionExample
http://bml0065.yalepath.org/tc/examples/servlets/servlet/SessionExample
Sorry for the mistype I have a sticky keyboard and I try to live with it.
Sorry for the comment.. Ultimately it was my fault because I left out the
distributable tag from one the web.xml.
Hi ,
I am using Tomcat 6.0.18 , JVM Version 1.6.0_24 ,OS SunOS 5.10, OSArch
:AMD64
Recently I observed in few apps deployed on tomcat, that when I undeploy the
apps by simply deleting the .war file and the directory for the app, a few
threads are not cleaned up.
I would be happy if someone shed
How can I create a custom 404 error page for the case where the URL
maps to a non-existent webapp?
I know how to do this for an individual webapp, but can't figure put
where the global default error page comes from.
--
Jonathan Rosenberg
Founder Executive Director
Tabby's Place, a Cat Sanctuary
Just a guess, but maybe by adding it to
$CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml and putting the error page in
$CATALINA_HOME/webapps/ROOT
On Tue, Mar 22, 2011 at 10:54 AM, Jonathan Rosenberg shmol...@gmail.comwrote:
How can I create a custom 404 error page for the case where the URL
maps
On 22/03/2011 14:42, neeraj kumar wrote:
Hi ,
I am using Tomcat 6.0.18 , JVM Version 1.6.0_24 ,OS SunOS 5.10, OSArch
:AMD64
Recently I observed in few apps deployed on tomcat, that when I undeploy the
apps by simply deleting the .war file and the directory for the app, a few
threads are
From: Jonathan Rosenberg [mailto:shmol...@gmail.com]
Subject: Global Default Error Page
How can I create a custom 404 error page for the case where
the URL maps to a non-existent webapp?
*All* URLs map to a webapp, even if it's the default (ROOT) one. Put your
custom error page in ROOT.
On 22/03/2011 15:07, Caldarale, Charles R wrote:
From: Jonathan Rosenberg [mailto:shmol...@gmail.com]
Subject: Global Default Error Page
How can I create a custom 404 error page for the case where
the URL maps to a non-existent webapp?
*All* URLs map to a webapp, even if it's the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
I have a cookie value that I'd like to contain characters that require
quoting, and therefore require version 1 cookies.
I was wondering if anyone has any experience with a web browser that
chokes on these cookies, or whether version 1 cookies
Here is a situation I have a directory in /media/7AC03B13C03AD4DB/something
which is an ntfs drive.
I want to share from this a subdirectory so I go to /var/www/ and create a
symlink as follows
ln -s /media/7AC03B13C03AD4DB/something /var/www/new_name
when the client tries to reach the
From: James Godrej [mailto:jamesgod...@yahoo.in]
Subject: unable to share folder using a symlink
the Apache vhost definition is
Wrong mailing list; this one's for Tomcat, and you want the httpd one.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
Excellent. Thanks.
I configured this error page in conf/web.xml. Seemed like this made
the most sense.
--
Jonathan Rosenberg
Founder Executive Director
Tabby's Place, a Cat Sanctuary
On Tue, Mar 22, 2011 at 11:10 AM, Mark Thomas ma...@apache.org wrote:
On 22/03/2011 15:07, Caldarale,
I too didn't realize there was a difference in connectors. Thanks for the
clarification.
Here is the startup info on the connector:
[Loaded org.apache.catalina.connector.Response from
file:/usr/local/apache-tomcat-5.5.30/server
/lib/catalina.jar]
[Loaded org.apache.jk.core.JkHandler from
Nick Williams wrote:
...
On the one hand, we could use the Apache JK Connector to direct requests to
Tomcat. On the other hand, since we’re using IIS7, we could use (and have
seen recommended) the Application Request Routing (ARR) library for IIS to
direct requests for Tomcat.
As it happens,
This is really getting frustrating. We have 75 instances on tomcat6
running on the same server. Each instance runs from its own discrete
directory, where the tomcat-env.sh script and catalina.properties file
set environment vars to point to that unique instance's folders. Every
time we reboot the
Caldarale, Charles R wrote:
From: James Godrej [mailto:jamesgod...@yahoo.in]
Subject: unable to share folder using a symlink
the Apache vhost definition is
Wrong mailing list; this one's for Tomcat, and you want the httpd one.
That's true.
But the same problem would probably happen with
On 22/03/2011 17:04, Robinson, Eric wrote:
Context docBase=/ha_ftp.nfs/site001/mobiledoc
debug=1 reloadable=false
/Context
So are nfs mounts being used? If so, my guess is that the mount isn't
available when Tomcat starts which triggers the undeploy.
Mark
On 22/03/2011 17:04, Robinson, Eric wrote:
Context docBase=/ha_ftp.nfs/site001/mobiledoc
debug=1 reloadable=false
/Context
So are nfs mounts being used? If so, my guess is that the
mount isn't available when Tomcat starts which triggers the undeploy.
Mark
That would also explain why it's only happening on some of the servers,
but not all. The NFS mount becomes available part-way through all of the
Tomcats being started. So the ones that had started already trigger an
undeploy, but the ones that had not started yet have the mount available
and do
Yes, for sure, to deleting the .XML file. I'm reasonably confident
autoDeploy=false doesn't affect undeploys. Even if it does,
autoDeploy=false only matters when the server is already running. It
does NOT matter when the server is started (i.e., even with
autoDeploy=false, a WAR file would get
--
On 22/03/2011 17:04, Robinson, Eric wrote:
Context docBase=/ha_ftp.nfs/site001/mobiledoc
debug=1 reloadable=false
/Context
So are nfs mounts being used? If so, my guess is that the
mount isn't
available when Tomcat starts which triggers the undeploy.
From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan
Rosenberg
Subject: Re: Global Default Error Page
I configured this error page in conf/web.xml. Seemed like this made
the most sense.
Not sure about that. Whatever you put in conf/web.xml applies to *all*
webapps,
Thanks for the info, André! I will be certain to check to make sure ARR
covers all of our needs. We don't use domain user IDs, but that makes me
suspicious that there could be other things ARR doesn't forward that we DO
rely on.
Of course, if anyone has any other empirical or anecdotal
-Original Message-
From: Robinson, Eric [mailto:eric.robin...@psmnv.com]
Sent: Tuesday, March 22, 2011 13:30
To: Tomcat Users List
Subject: RE: tomcat6 still deleting XML files from
Catalina/localhost when the system is booted
--
On 22/03/2011 17:04, Robinson, Eric wrote:
--
Eric Robinson
#!/bin/bash
#
# httpdStartup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: Apache is a World Wide Web server. It is used
to serve \
# HTML files and CGI.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
#
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
SQ,
On 3/22/2011 12:54 PM, SQ wrote:
I too didn't realize there was a difference in connectors. Thanks for the
clarification.
Here is the startup info on the connector:
Yeah, that's not what Mark is looking for. When you first start up
Tomcat,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hide,
On 3/19/2011 10:38 PM, Hide wrote:
How to detect down of tomcat.
Note that the responses you've been getting are only testing for the
Tomcat process still running in some way. There are probably a lot of
scenarios where you consider Tomcat
On 22/03/2011 16:54, SQ wrote:
I too didn't realize there was a difference in connectors. Thanks for the
clarification.
Here is the startup info on the connector:
[Loaded org.apache.catalina.connector.Response from
file:/usr/local/apache-tomcat-5.5.30/server
/lib/catalina.jar]
Tomcat 6.0.26
Java 1.6
OS: Mac OS X and Linux
Goal:
I would like a webapp (onlinecourses.war) to be deployed with multiple contexts
of:
/onlinecourses/insight
/onlinecourses/centering
/onlinecourses/xxx
etc.
Right now I'm just trying to get 1 of these contexts working.
I've read this page
On 22/03/2011 20:14, Billy Bacon wrote:
Does anyone know what I'm doing wrong?
Move the WAR file *outside* of the host's appBase (i.e. not in the
webapps directory) and specify the docBase in your context.xml files.
Mark
-
To
Eric Robinson
#!/bin/bash
#
# httpdStartup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: Apache is a World Wide Web server. It is
used to serve
\
# HTML files and CGI.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
Yep that is it. You are using the old BIO AJP connector based on the
classes you are loading. Hmm. Not what I was expecting. It might be
worth taking a look at this bug:
https://issues.apache.org/bugzilla/show_bug.cgi?id=50189
The problem is that we need a test case to investigate this but the
Thanks so much for the reply Mark.
I did the following and I'm still getting issues. Note I tried 2 things:
1st:
- created $CATALINA_HOME/wars and placed the onlinecourses.war file in there
- cleaned out all old files from $CATALINA_HOME/work/... $CATALINA_HOME/webapps
- removed
On 22/03/2011 21:09, Billy Bacon wrote:
2nd:
So I then tried using an absolute path for the docBase in the Context.
Yes it will need to be absolute. Relative docBases are resolved relative
to the Host's appBase.
Context docBase=/usr/local/tomcat8081/wars
Getting closer. A docBase needs to
Awesome Mark, that worked perfectly!
I'd like to actually run the app out of the war file without exploding it and I
was able to accomplish this by setting unpackWARs=false in the server.xml.
I know this isn't 'preferred' but how would I go about 'hot-patching' let's say
a JSP for the webapp
Hi,
I have two machines bml0065.yalepath.org and bml0066.yalepath.org. Both have
OSX 10.6.6, apache 2.2.17 and mod_jk 1.2.31 installed. Tomcat is 7.0.10 on
both.
Apache was compiled on both machines with proxy, proxy-balancer, proxy-http and
proxy-ajp enabled.
The bml0065 machine is
On 22/03/2011 21:53, Billy Bacon wrote:
Awesome Mark, that worked perfectly!
I'd like to actually run the app out of the war file without exploding it and
I was able to accomplish this by setting unpackWARs=false in the
server.xml.
It shouldn't be doing that if the WAR is outside the
2011/3/23 Mark Thomas ma...@apache.org:
On 22/03/2011 21:09, Billy Bacon wrote:
2nd:
So I then tried using an absolute path for the docBase in the Context.
Yes it will need to be absolute. Relative docBases are resolved relative
to the Host's appBase.
Context
Interesting I had no idea you can mix mod_proxy and mod_jk, thought you
should use the one or the other. What I do I have workers.properties file in
the Apache conf directory with load-balancer worker that takes care of the
load balancing ans sticky sessions.
On Wed, Mar 23, 2011 at 8:54 AM,
thanks for replying. i have installed tomcat 6.0.32 yet again and now lo and
behold i get the icon at bottom right. localhost:8080 works ok. local host
gives me error msg. i have windows xp
please help.
thanks
Date: Sat, 19 Mar 2011 19:57:56 +
From: p...@pidster.com
To:
49 matches
Mail list logo