Re: Shutdown Hook in Tomcat 5.5.26

2008-03-30 Thread Ho Fat Tsang
Hello Chris, Thank for your reply and yes. It seems System.out is subtle at that moment and it is not a good indicator for validation. I have re-written something else and it works fine. But let me elaborate what i want to achieve. I would like to deliver a alert email when the JVM shutdown

Re: displaying an image from outside the webapps directory

2008-03-30 Thread Kimberly Begley
Thanks for that I will check it out - I have switched gears and have been trying to get a c:import to work - now I get the error printed in the middle of the page saying that: The requested resource (/test/home/kimberly/Desktop/testhtmlfile1.html) is not available where test is the directory unde

Re: displaying an image from outside the webapps directory

2008-03-30 Thread Vamsavardhana Reddy
Have you considered using the allowLinking attribute (See http://tomcat.apache.org/tomcat-6.0-doc/config/context.html) and creating a soft-link inside the webapp directory to the directory which is outside of webapp? ++Vamsi On Fri, Mar 21, 2008 at 4:28 PM, Kimberly Begley <[EMAIL PROTECTED]> wro

RE: Tomcat deploys 2 instances of an app mapped to "/"

2008-03-30 Thread Caldarale, Charles R
> From: Alex Epshteyn [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat deploys 2 instances of an app mapped to "/" > > I now have it working as desired with the following context.xml, > deployed with my app in ROOT.war > > > Close, but the path and docBase attributes are not allowed (and may c

Re: Tomcat deploys 2 instances of an app mapped to "/"

2008-03-30 Thread Alex Epshteyn
Chris, Your suggestion worked! Simply renaming my app to ROOT and getting rid of the stuff I added to server.xml proved to be a better strategy. I now have it working as desired with the following context.xml, deployed with my app in ROOT.war (Note: the "etc." refers to the other attributes

Re: displaying an image from outside the webapps directory

2008-03-30 Thread Kimberly Begley
Hi, Wasn't sure whether to start a new thread but my question is in regards to the previous code. As well as the jpeg I also have some html that I wanted to include in the same page - so the html snippet is in a directory outside of the webapps directory and when a user selects a link I'd like to i

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-30 Thread David Rees
On Sun, Mar 30, 2008 at 2:14 AM, David Rees <[EMAIL PROTECTED]> wrote: > From my understanding of the clustering software, it appears that > Tomcat is trying to send messages to the other Tomcat but it isn't > receiving them? Shouldn't it drop membership and give up? I suspect > that some recon

Re: ServletContextListener Query

2008-03-30 Thread Sparecreative
Thanks Martin, But I'm not sure how spring can be the issue as it hasn't yet been initialized. It's listener gets called after the ServletContextListener is initialized. In my web xml I don't define the spring servlet. I just define the listener as follows: org.springframework.web.

Re: Problem in running Tomcat

2008-03-30 Thread David Smith
tomcat 5 w/ gcj -- either get rid of it or take this conversation to the yum folks. We support tomcat as provided by Apache using primarily Sun Java although I'm sure people have had success with IBM's jvm. Other packaging methods introduce lot's of symlinks and at times alterations in the so

Re: Problem in running Tomcat

2008-03-30 Thread Steve Ochani
Your question was already answered by at least 3 people under the previous thread subject you made. Date sent: Sun, 30 Mar 2008 09:22:42 -0700 (PDT) From: Raghavan_sat <[EMAIL PROTECTED]> Subject:Problem in running Tomcat To:

Large HTML file not getting compressed despite compression enabled

2008-03-30 Thread Alex Epshteyn
I have Tomcat's compression enabled: It works as expected for all my resources (stylesheets, scripts, etc) except for one static file, which has the extension .cache.html (in case you're wondering, it contains scripts generated by GWT). This file is pretty large - about 150K, but Tomcat doesn't

Re: Tomcat deploys 2 instances of an app mapped to "/"

2008-03-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alex, Alex Epshteyn wrote: | Suppose I have the following in my server.xml: | | | | | | | In Tomcat 5.5, it is recommended to use context.xml files in WAR files (or exploded WAR files in directories) placed directly into the Engine's "

Tomcat deploys 2 instances of an app mapped to "/"

2008-03-30 Thread Alex Epshteyn
Hi, Suppose I have the following in my server.xml: This causes Tomcat to deploy two instances of the "foo" webapp - one as path "/foo/" and one as "/". I only want one instance deployed at "/". Any ideas? This is the only strategy I've found for replacing the ROOT app with my ow

Problem in running Tomcat

2008-03-30 Thread Raghavan_sat
Hi, I installed tomcat5 using yum and it installed lot of dependencies... This tomcat uses gcj java to run and is running fine.. But my Servlet program cannot be compiled with this gcj javaSo i installed JDK1.6 and changed the java using alternatives command and compiled it But with thi

Re: ServletContextListener Query

2008-03-30 Thread Martin Gainty
Hi Zoran- Spring doc at http://www.jdocs.com/spring/1.2.8/org/springframework/web/context/ContextLoa derServlet.html says This is a bootstrap listener and you will need an appserver that can work specifically with Bootstrap listeners This servlet should have a lower load-on-startup value in web.xm

Updating context

2008-03-30 Thread Max Sevenfold
Hello All, Could you advise the ways to update Tomcat context automatically and comments pluses and minuses. Here are solutions I have guessed already:- 1. Upload via /manager/html/* (undeploy + upload) (Does not seems to be a good solution in general for automated script) 2. Replace war fil

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-30 Thread David Rees
On Sun, Mar 30, 2008 at 1:49 AM, David Rees <[EMAIL PROTECTED]> wrote: > I have a 2-Tomcat 5.5.26 cluster running 64bit Java which leaks > ClusterData and LinkObject objects. > > I have a hprof dump which shows over 600k of each of those classes. > Analyzing them with a profiler reveals an endle

Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-30 Thread David Rees
I have a 2-Tomcat 5.5.26 cluster running 64bit Java which leaks ClusterData and LinkObject objects. I have a hprof dump which shows over 600k of each of those classes. Analyzing them with a profiler reveals an endless loop of LinkObject.next references through all 600k of them. There were about 60

RE: tomcat-users.xml parsing and updating

2008-03-30 Thread Lanny Rosicky
Caldarale, Charles R wrote: > > > Consider using a real authentication mechanism rather than augmenting > this toy. The doc is here: > http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html > > If you want something more flexible than what's in the servlet spec, try > this: > http://source