Re: Tomcat 5.5. META-INF/context.xml ignored when deploying as war.

2008-09-05 Thread Eric Berry
Mark, Chuck, Thank you both very much for the detailed explanations. I can certainly see how this would definitely speed development along, and how - in most cases - the context.xml is unnecessary. I myself, have rarely used them unless as Mark mentioned, I needed specific context parameters.

Tomcat 5.5. META-INF/context.xml ignored when deploying as war.

2008-09-04 Thread Eric Berry
Hello, I'm trying to use the manager to deploy a war file creating using Maven 2. The war is a snapshot file which contains a META-INF/context.xml file. It seems that this file is being ignored when deploying this way and the war file-name is being used instead. I thought the purpose of the

Re: Tomcat 5.5. META-INF/context.xml ignored when deploying as war.

2008-09-04 Thread Eric Berry
Mark, thanks for the reply. You appear to have misunderstood. Which part of the doc did you get this from and I'll see if it can be made clearer. From my understanding of the the order of precedence. [quote] *Context* elements may be explicitly defined: - in the

Re: Tomcat 5.5. META-INF/context.xml ignored when deploying as war.

2008-09-04 Thread Eric Berry
That isn't quite how it works. $CATALINA_HOME/conf/context.xml provides global defaults which can be overridden at the host level by: $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.defaultfile which in turn can be overridden at the context level by:

Re: How do I set maxage on the JSESSIONID cookie?

2007-06-29 Thread Eric Berry
You will probably have to write a valve for this. I had to write one to set the session cookie's domain so that it's a site wide domain. I posted the code to this mailing list a while back. If you do a search you should be able to find it, if not let me know I'll see if I can get a hold of it.

Re: Creating a custom session manager -- SOLVED

2007-04-24 Thread Eric Berry
cookie. * * @author Eric Berry */ public class EviteSessionValve extends ValveBase { private static final String JSESSIONID = JSESSIONID; private String cookieDomain; /** * An explicit no-arg constructor. */ public EviteSessionValve

Re: Three hostnames in one instance of tomcat

2006-09-15 Thread Eric Berry
This will fail in later versions of Tomcat 5. appBase should not equal docbase. The correct configuration is: Host name=www.host1.com appBase=/opt/projects/www/host1/web Context docBase=/ROOT / /Host Does this mean that there must be a ROOT directory under /opt/projects/www/host1/web? In my

Fwd: Three hostnames in one instance of tomcat

2006-09-14 Thread Eric Berry
-- Forwarded message -- From: Eric Berry [EMAIL PROTECTED] Date: Sep 14, 2006 11:11 AM Subject: Re: Three hostnames in one instance of tomcat To: [EMAIL PROTECTED] [EMAIL PROTECTED] In the ${tomcat_instance}/conf/server.xml files just change the single host entry to have your

Re: Three hostnames in one instance of tomcat

2006-09-13 Thread Eric Berry
I have my development box setup how I think you want yours done (though, I only access it locally from that machine). The 3 hosts should have separate app bases and the context paths should be empty (meaning the default path). What you've done up there should work if you have your hosts file

Re: configuring mod_jk - can any one help, please ??

2006-08-28 Thread Eric Berry
From my understanding found here: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html The Document Base (also known as the Context Root) directory for this web application, or the pathname to the web application archive file (if this web application is being executed directly from the

Re: configuring mod_jk - can any one help, please ??

2006-08-28 Thread Eric Berry
added lines. Now the server.xml is the default one that came with tomcat. What changes you want me to try ?? Eric Berry wrote: From my understanding found here: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html The Document Base (also known as the Context Root) directory for this web

Virtual Hosting with Apache and mod_jk

2006-08-02 Thread Eric Berry
Hi all, I'm still pretty new to this. I'm trying to set up a home server for testing and learning purposes, and I'm having some troubles setting up virtual hosts with Apache and mod_jk. I have created a virtual host in my httpd.conf: VirtualHost *:80 DocumentRoot

Re: [OT: Apache] Re: Virtual Hosting with Apache and mod_jk

2006-08-02 Thread Eric Berry
Hi Chris, On 8/2/06, Christopher Schultz [EMAIL PROTECTED] wrote: Eric, /*.jsp ajp13 /*.do ajp13 I assume these lines say JkMount before the paths...? This is correct, sorry (bad rectangular copy). Are you using name based virtual hosting -- meaning that the hostname

Re: [OT: Apache] Re: Virtual Hosting with Apache and mod_jk

2006-08-02 Thread Eric Berry
Chris, I remembered seeing something about this when I downloaded tomcat, and managed to find this in the RUNNING.txt. == Advanced Configuration - Multiple Tomcat Instances == In many

Re: [OT: Apache] Re: Virtual Hosting with Apache and mod_jk

2006-08-02 Thread Eric Berry
Chris, Thank you so very much for all the help. So all I need besides the workers.properties entries you mentioned previously, is to make sure that virtual hosts in httpd.conf have the JkMounts pointed to the worker I choose. That worker's port must coincide with a Connector configuration in