Detecting resource usage

2011-02-28 Thread laredotornado
Hi, We are using Tomcat 6.0.24 running on two different machines. In our workers.properties file, we have worker.worker1.fail_on_status=500,503 to cause instances to gracefully fail over if there is a problem on one instance. This is great, but if one app server is repeatedly failing over to

Re: Choosing the right worker

2011-02-24 Thread laredotornado
3:32 PM, laredotornado wrote: We're using 6.0.24, running on two servers. In our workers.properties file on the web server, we have ... ===Begin workers.properties == worker.lbroute.balance_workers=worker1,worker2 worker.worker1.type=ajp13 worker.worker1.host

Choosing the right worker

2011-02-23 Thread laredotornado
Hi, We're using 6.0.24, running on two servers. In our workers.properties file on the web server, we have ... ===Begin workers.properties == worker.lbroute.balance_workers=worker1,worker2 worker.worker1.type=ajp13 worker.worker1.host=ip_addr1 worker.worker1.port=8000

Trouble with connection timeout settings

2011-02-02 Thread laredotornado
Hi, We're using Tomcat 6.0.24. We would like Tomcat to kill stuck threads after a certain period of time, but Tomcat doesn't appear to be doing this. Specifically, when the database doesn't return results, the connections just build up. Here are our settings in workers.properties

Re: Trouble with connection timeout settings

2011-02-02 Thread laredotornado
You mean set timeouts at the database level? What if the Tomcat thread is hung for some other reason? Is there any setting that will cause Tomcat to kill a thread if that thread is stuck? - Dave Mark Thomas wrote: On 02/02/2011 15:22, laredotornado wrote: Hi, We're using Tomcat

Where do files served get logged?

2010-10-14 Thread laredotornado
Hi, I'm using Tomcat 6.0.26. Where is it configured, or where do I look to see what files Tomcat has served? I'm trying to make sure Tomcat is not serving static files that Apache can serve more efficiently. Thanks, - Dave -- View this message in context:

Re: Where do files served get logged?

2010-10-14 Thread laredotornado
I haven't done any benchmarks, and I'm assuming some of the folks on this thread are the Tomcat developers and can speak first hand to the speed. If so, I would encourage you to update the wiki ... http://wiki.apache.org/tomcat/FAQ/Connectors because it mentions that Apache is faster at

Re: NullPointerException when Tomcat calls org.apache.catalina.connector.Request.parseParameters

2010-10-07 Thread laredotornado
=true Konstantin Kolinko wrote: 2010/10/6 laredotornado laredotorn...@gmail.com: Hi, I'm using Tomcat 6.0.26 with Java 1.6.  I'm getting a strange NullPointerException from a Tomcat class.  My code is …                if (request != null request.getParameter(FORM_SUBMIT_SITE_NAME

NullPointerException when Tomcat calls org.apache.catalina.connector.Request.parseParameters

2010-10-06 Thread laredotornado
Hi, I'm using Tomcat 6.0.26 with Java 1.6. I'm getting a strange NullPointerException from a Tomcat class. My code is … if (request != null request.getParameter(FORM_SUBMIT_SITE_NAME + FormSubmit) != null) { and the stack trace is below. I have verified I'm not passing a

Character encoding question

2010-08-27 Thread laredotornado
Hi, I'm using Tomcat 6.0.26. I'm noticing that when our JSPs pages are served, we frequently have ?s where apostrophes should be. We think this is because the database-driven content contains the Microsoft style apostrophe. My question is, if I adjust the character encoding on Tomcat, will

How can i tell how much of allocated heap is being used?

2010-08-18 Thread laredotornado
Hi, I'm using Tomcat 6.0.26, Java 1.6 on Linux kernel 2.6.18-164.11.1.el5. I'm trying to figure out if there if we can figure out how much of our allocated heap memory is actually being used. Grateful for any thoughts you might have, - Dave -- View this message in context:

How to count number of active threads?

2010-07-26 Thread laredotornado
Hi, I'm using Tomcat 6.0.26 on Red Hat Linux. How do I count the number of Tomcat threads currently executing? Thanks, - Dave -- View this message in context: http://old.nabble.com/How-to-count-number-of-active-threads--tp29270494p29270494.html Sent from the Tomcat - User mailing list

Tuning garbage collection

2010-07-21 Thread laredotornado
Hi, I'm using Tomcat 6.0.26, Java 1.6 and wondering what tools/strategies you use to tune your garbage collection parameters? Further, does anyone know how to read entries in the garbage collection log? Entries in my log look like Desired survivor size 10944512 bytes, new threshold 1 (max 15)

Script to restart Tomcat

2010-07-15 Thread laredotornado
Hi, I'm using Tomcat 6.0.26 on Mac 10.6.3. I put this script together to try and restart Tomcat ... ==Start restart.sh == sh /Library/Tomcat/Home/bin/shutdown.sh sh /Library/Tomcat/Home/bin/startup.sh End restart.sh = but what I'm noticing is that

Servlet mapping question -- way to include everythign EXCEPT a directory?

2010-07-01 Thread laredotornado
Hi, I'm using Tomcat 6.0.26. I want to map all of my /play/sports/* files to a servlet, except the subdirectory, /play/sports/includes/*. I don't know how to specify not in a mapping, so I only have ... servlet-mapping servlet-nameSportsSearchServlet/servlet-name

RE: Servlet mapping question -- way to include everythign EXCEPT a directory?

2010-07-01 Thread laredotornado
I like your idea about specifying the DefaultServlet, but what do you mean by the DefaultServlet ? - Dave n828cl wrote: From: laredotornado [mailto:laredotorn...@gmail.com] Subject: Servlet mapping question -- way to include everythign EXCEPT a directory? I don't know how to specify

Re: Possible to redeploy a JAR file without restarting Tomcat?

2010-06-29 Thread laredotornado
the other apps would continue to use the old version? - Dave Pid * wrote: On 27/06/2010 20:04, laredotornado wrote: Hi, I'm using Tomcat 6.0.26. There is one JAR file I repeatedly rebuild and deploy and I was wondering if there is any way, obscure or otherwise, to deploy this JAR file

Possible to redeploy a JAR file without restarting Tomcat?

2010-06-27 Thread laredotornado
Hi, I'm using Tomcat 6.0.26. There is one JAR file I repeatedly rebuild and deploy and I was wondering if there is any way, obscure or otherwise, to deploy this JAR file without having to restart Tomcat. Thanks for any insights, - Dave -- View this message in context:

Re: Servlet mapping issue

2010-06-25 Thread laredotornado
additional query params? Thanks, - Dave Pid * wrote: On 24/06/2010 19:24, laredotornado wrote: I tried this too and still got the 404. servlet-mapping servlet-nameMusicVenueServlet/servlet-name url-pattern/play/music/venues/*/url-pattern

Servlet mapping issue

2010-06-24 Thread laredotornado
Hi, I'm using Tomcat 6.0.26. I'm having an issue mapping a url-pattern to a servlet and was wondering if you can see what I'm doing wrong. In my WEB-INF/web.xml I have servlet-mapping servlet-nameMusicVenueServlet/servlet-name

RE: Servlet mapping issue

2010-06-24 Thread laredotornado
tried escaping the period in the file extension (\.jsp), but no luck. Any ideas how to troubleshoot the problem further? - Dave n828cl wrote: From: laredotornado [mailto:laredotorn...@gmail.com] Subject: Servlet mapping issue url-pattern/play/music/includes/venue-listing/url-pattern You

Writing errors to localhost log

2010-06-22 Thread laredotornado
Hi, I'm using Tomcat 6.0.26. I notice that when I define an error page for my JSPs %@ page errorPage=/error-pages/500.jsp % The error page gets called properly, but the stack trace of the error is no longer written to my localhost log file, where it used to be output before I inserted the

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-27 Thread laredotornado
to consider changing your approach to incorporate filters/servlets for some of your processing... On Wed, May 26, 2010 at 1:26 PM, laredotornado laredotorn...@gmail.com wrote: I tried your suggestion, and sadly it didn't work. What is the difference between what the errorPage directive does

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-27 Thread laredotornado
Armbrust wrote: On Wed, May 26, 2010 at 12:26 PM, laredotornado laredotorn...@gmail.com wrote: I tried your suggestion, and sadly it didn't work. What is the difference between what the errorPage directive does and what the web.xml error-page clause does?  - Dave I don't think

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-27 Thread laredotornado
of the page %@ page contentType=text/html; charset=UTF-8 isErrorPage=true On Thu, May 27, 2010 at 12:06 PM, laredotornado laredotorn...@gmail.comwrote: Actually that is directly related and I'm seeing the same exception in my logs. Thanks so much for this -- I would have been spending a lot

Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-26 Thread laredotornado
Hi, I'm running Tomcat 6.0.26 on Mac 10.6.3. I have this in my WEB-INF/web.xml file ... error-page exception-typeException/exception-type location/error-pages/500.jsp/location /error-page but when I create a JSP page with %=

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-26 Thread laredotornado
-typejava.lang.Exception/exception-type location/error-pages/500.jsp/location /error-page Good luck, -- Dave Cherkassky VP of Software Development DJiNN Software Inc. On 26/05/2010 10:34 AM, laredotornado wrote: Hi, I'm running Tomcat 6.0.26 on Mac 10.6.3. I have

Re: Way to record what URL an error originated from in my localhost file?

2010-05-24 Thread laredotornado
, laredotornado wrote: Thanks for this suggestion. Just to be sure I'm understanding correctly, the procedure would be 1. Add an error-page element to my xml doc that will be visited whenever an exception is generated from my JSP or servlet. 2. Configure valve to output a stack trace

Re: Way to record what URL an error originated from in my localhost file?

2010-05-21 Thread laredotornado
: SHA1 Dave, On 5/20/2010 5:30 PM, laredotornado wrote: Is there a way to configure Tomcat to record what the URL was in the browser when this error occurred? Do you have any error-page elements in your web.xml? Do you have custom error pages? If you do, the best place to put this kind

Way to record what URL an error originated from in my localhost file?

2010-05-20 Thread laredotornado
Hi, I'm using Tomcat 6.0.26 on Mac 10.3.6. In our localhost file, we often get exceptions that resemble ... SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.jsp.play.music.news.details_jsp._jspService(details_jsp.java:456)

Any way to get Tomcat to complain if an EL var is undefined?

2010-05-12 Thread laredotornado
Hi, I'm using Tomcat 6.0.26. I wanted to know if there was any setting that would cause the compiler to complain if an EL variable was never defined. For example if I have p${resul}/p the result will be p/p because I haven't defined resul in any scope. I was hoping an exception

Recommendation for log analyzer?

2010-05-07 Thread laredotornado
Hi, We are using Tomcat 6.0.26. We want to be able to get some kind of report of the errors that are being spit out to our localhost file (and catalina.out as well, but localhost is the priority). Do you know of any tool that can produce a report saying, This error occurred X number of times

Where do compiled JSP - java files go?

2010-04-28 Thread laredotornado
Hi, I'm using Tomcat 6.0.26 on Mac 10.6.3. I'm troubleshooting a NullPointerException occurring in one of my JSPs and all I'm told from the stack trace is what line of the compiled Java file it occurred in. However, I can't find this file anywhere on my file system. Where do they usually get

Where is this class?

2010-04-22 Thread laredotornado
Hi, Im running Tomcat 6.0.26. In my app, I'm getting a java.lang.ClassNotFoundException: javax.validation.ValidatorFactory exception. Does anyone know where to find the ValidatorFactory class? More generally, is there a web site taht will tell me what JAR a particular class belongs to?

RE: Where is this class?

2010-04-22 Thread laredotornado
Is this just the documentation ? I'm not able to find the JAR file to download from this page. Thanks, - Dave Joseph Morgan-2 wrote: http://jcp.org/en/jsr/detail?id=303 -Original Message- From: laredotornado [mailto:laredotorn...@gmail.com] Sent: Thursday, April 22, 2010 12

Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread laredotornado
Hi, I'm using Tomcat 6.0.26 on Mac 10.6.3. Currently, in my $CATALINA_HOME/logs directory, Tomcat produces a localhost*log file with the date in the file name for each day, for example -- localhost.2010-04-19. Is there a way to get Tomcat to generate simply localhost.log for whatever day today

Trouble accessing content in webapps/ROOT

2010-04-15 Thread laredotornado
Hi, I'm using Tomcat 6.0.26 with Apache 2.2 on Mac 10.6.3. I want to use http://localhost/ to access content in my $CATALINA_HOME/webapps/ROOT/ directory. However, when I visit http://localhost/index.jsp, I just get the raw page with all the uncompiled, JSP code. Below is the directive I'm

Re: Trouble accessing content in webapps/ROOT

2010-04-15 Thread laredotornado
What specifically is wrong? Why are the pages being served without being compiled? Thanks, - Dave Konstantin Kolinko wrote: 2010/4/15 laredotornado laredotorn...@gmail.com: Hi, I'm using Tomcat 6.0.26 with Apache 2.2 on Mac 10.6.3.  I want to use http://localhost/ to access content

Where do CATALINA_OPTS get defined?

2010-04-14 Thread laredotornado
Hi, I'm using Tomcat 6.0.26 on a Mac 10.6.3. Where is the best place to store the CATALINA_OPTS environment variable? I'm running Tomcat as a daemon on my system. Thanks, - Dave -- View this message in context:

Re: Where do CATALINA_OPTS get defined?

2010-04-14 Thread laredotornado
Yes, what is the best place to set it. I have created a script under /Library/LaunchDaemons/. Thanks, - Dave Pid * wrote: On 14/04/2010 15:20, laredotornado wrote: Hi, I'm using Tomcat 6.0.26 on a Mac 10.6.3. Where is the best place to store the CATALINA_OPTS environment

Installing Tomcat as daeon on Mac 10.6 (Snow Leopard)

2010-04-13 Thread laredotornado
Hi, I've installed Tomcat 6.0.26 on my Mac 10.6.3 system. I'm trying to run it as a daemon on system startup and I was following the instructions here -- http://www.malisphoto.com/tips/tomcatonosx.html#Anchor-JSVC. But the site says to untar the ~/Downloads/tomcat-plist.tar.gz file and I can't