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:

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

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 endless

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

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

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

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: Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false !-- Serve foo from the root dir of the Tomcat server -- Context path= docBase=foo debug=0 reloadable=false cookies=false / !--

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: | | Host name=localhost appBase=webapps unpackWARs=true | autoDeploy=true xmlValidation=false xmlNamespaceAware=false | !-- Serve foo from the root dir of the Tomcat

Large HTML file not getting compressed despite compression enabled

2008-03-30 Thread Alex Epshteyn
I have Tomcat's compression enabled: Connector port=8080 maxHttpHeaderSize=8192 maxThreads=200 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true

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:

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

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: listener

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

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

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 Context path= docBase=ROOT etc. /Context (Note:

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 Context path= docBase=ROOT etc. /Context Close, but the path and docBase

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]