RE: Which listeners required in server.xml?

2009-05-29 Thread johnrock
mgainty wrote: > >> Do I need these listeners or can I remove some/all of them? > DONT_NEED>If No Apr then remove AprLifecycleListener > DONT_NEED>If No Jsp then remove JasperListener > DONT_NEED>If No MBean then remove ServerLifecycleListener > DONT_NEED>If No JNDI then remove GlobalResourcesLi

Which listeners required in server.xml?

2009-05-29 Thread johnrock
Running tomcat 6.0.18 server.xml has the following listener's enabled by default: I am using standalone tomcat (no apache) without SSL, without APR, I am not using any manager or host-manager applications .. Do I need these listeners or can I remove some/all of them? --

Re: Apache Portable Runtime ?

2009-05-29 Thread johnrock
I wanted to add a little clarity to my question: I am not using SSL or serving any significant amount of static content - just good ol fashioned Jsp/Jstl's with a standalone tomcat (no Apache). A very svelt and simple web app that I am designing for performance. Given that, is it still a preferre

Apache Portable Runtime ?

2009-05-29 Thread johnrock
I am running a standalone tomcat 6.0.18 on a centOS 5.3 system. Is it a good idea to install the Apache Portable Runtime? Would I see performance increase? And, are there any drawbacks/cons to doing so? Thanks for any advice you might have on this - John -- View this message in context: http:

Re: How to configure Access logs to ignore images

2009-05-26 Thread johnrock
Thanks Tim. Your bonus point approach is quite slick and tidy..I am quite tempted to go that route. Of course that now begs me to overthink this and wonder if there is any performance difference between having the web.xml filter-mapping do the logic or embedding that logic in the filter itself...

RE: How to configure Access logs to ignore images

2009-05-25 Thread johnrock
Thanks for your help. I do understand now the concept. I am quite surprised however how much code it actually took. Here is my filter configuration that is working correctly. This configuration basically filters out everything I don't want in my access logs, including a couple of redundant frames

How to configure Access logs to ignore images

2009-05-25 Thread johnrock
I have set up an Access Log in Tomcat 6. Can someone tell me how to limit access logging to only .jsp's and .html pages? I have read numerous posts and it is amazing how many responses there are to similiar questions that all point to the 'condition' parameter documentation...which I have thorou

Re: Deploy Tomcat Standalone - good idea or not?

2009-05-20 Thread johnrock
Marcus Better wrote: > > > Tomcat in Debian (and Ubuntu) also runs with jsvc as a non-root user by > default, you can have a look at their startup scripts too. > Where would I look to find such scripts? Thanks -- View this message in context: http://www.nabble.com/Deploy-Tomcat-Standalon

Re: Deploy Tomcat Standalone - good idea or not?

2009-05-20 Thread johnrock
It took me quite a while but I finally got a tomcat startup script working using jsvc to start as a tomcat user running on port 80. Are there any drawbacks/cons to this method as opposed to NOT using jsvc and instead running tomcat on 8080 and having the firewall redirect to this port? Does usin

Re: Deploy Tomcat Standalone - good idea or not?

2009-05-19 Thread johnrock
George Sexton wrote: > > Use JSVC to run tomcat on Port 80 without having it run as root. Unpack > the source for jsvc from the bin directory and compile it. > Thank you for your comments. I would love to simply run tomcat on port 80 as tomcat user. I have not yet discovered how to do this a

Deploy Tomcat Standalone - good idea or not?

2009-05-19 Thread johnrock
I am going to be deploying a webapp on CentOS (Spring/Hibernate/Tomcat) that is JSP based and has hardly any static content..I am planning to start out with 1 tomcat server and 1 db server. I think that I do not need an apache front end and can simply run tomcat standalone. Is this a bad idea?

Tomcat better on single or multi core?

2009-05-18 Thread johnrock
I will be deploying a spring/hibernate web app using Tomcat 6, dbcp and MySql5.1. I must decide on my initial tomcat dedicated deployment server configuration and am looking for some advice: (I am starting with one dedicated Tomcat server..will scale in time) Based on budget, the affordable opt

Is it possible to move Tomcat logfiles?

2009-05-09 Thread johnrock
I am setting up a CentOS 5 server running tomcat and wanted to know whether the best practice is to leave the Tomcat logfiles in their default location: /usr/share/apache-tomcat-6.0.18/logs or whether I should place them in another directory like /var/log/tomcat. Is this possible, and/or prefer

RE: setup default webapp in tomcat 6 and apache

2009-01-16 Thread johnrock
Caldarale, Charles R wrote: > >> Isn't this a very standard thing to do? > > No; one normally deploys webapps under the appBase. > - Chuck > Ok, I would like to follow the normal, best practices way. If you will indulge me one more try: What is the best way to configure/deploy an app so th

RE: setup default webapp in tomcat 6 and apache

2009-01-15 Thread johnrock
Caldarale, Charles R wrote: > >> From: johnrock [mailto:johnpi...@yahoo.com] >> Subject: Re: setup default webapp in tomcat 6 and apache >> >> Assuming tomcat is running standalone on port 80, how do I >> set it up so that when I call >> http://localhost/

Re: setup default webapp in tomcat 6 and apache

2009-01-15 Thread johnrock
Let me try to be more clear: Lets forget about Apache, that is not the issue: Assuming tomcat is running standalone on port 80, how do I set it up so that when I call http://localhost/index.jsp Tomcat defaults to serving my custom app located at: C:/myApp/web/index.jsp as opposed to what it is d

Re: setup default webapp in tomcat 6 and apache

2009-01-15 Thread johnrock
I appreciate your great advice, and I will look into that. However, I fear that my confusion is even more basic - as I have not set up tomcat before. How should I set up my webApp so that when I call http://localhost/index.jsp in my browser tomcat serves up the index.jsp from my webApp dir: C:/p

setup default webapp in tomcat 6 and apache

2009-01-15 Thread johnrock
I am setting up apache 2.2 and tomcat 6 on XP. I have apache handling all requests and forwarding JSPs to Tomcat like so: (From apache/conf/httpd.conf:) LoadModulejk_module "C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.so" JkWorkersFile "C:/Program Files/Apa

Re: apache wont start with loadmodule jk_module

2009-01-13 Thread johnrock
t see... But at least there are 9,999,999 other users who share my shame! Thanks so much! John awarnier wrote: > > johnrock wrote: > [...] > Maybe you are just the (guess) 10 millionth user to get hit by the > stupid stupid idea of someone in the distant past to allow spa

apache wont start with loadmodule jk_module

2009-01-13 Thread johnrock
I am trying to get apache2.2 to connect with Tomcat 6 both running on one XP machine. Apache starts fine on its own, but when I add these lines to httpd.conf, apache fails to start: LoadModulejk_module C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.so JkWorkers

tomcat 6 apache 2.2 jk connector: auto config?

2009-01-12 Thread johnrock
I am trying to figure out the best way to configure tomcat 6 to work under apache2.2 running on XP. I have seen a way to 'auto configure' the jk connector, and another way to manually configure it in the httpd.conf file. It seems the auto configure is easier, but are there important advantages t