RE: Problem with respecting docBase in context file in TC 6.0.20?

2009-08-20 Thread Roger Powers
> You may have already figured this out, but just in case: > > 1) The path attribute of a element may only > be used when the element is nested inside a > element in server.xml - which is strongly > discouraged. > > 2) The docBase attribute of a element may > only be used when a) the webapp i

Question on setting of context path in Tomcat 6

2009-08-19 Thread Roger Powers
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html says, after I removed some unimportant stuff and added some yellow to highlight: Context elements may be explicitly defined: ยท In individual files (with a ".xml" extension) in the $CATALINA_BASE/conf/[enginename]/[hostname]/

Re: Problem with respecting docBase in context file in TC 6.0.20?

2009-08-19 Thread Roger Powers
Powers wrote: > From: Roger Powers > Subject: Problem with respecting docBase in context file in TC 6.0.20? > To: users@tomcat.apache.org > Date: Wednesday, August 19, 2009, 3:19 PM > Problem: > > 1) /usr/tomcat/conf/Catalina/localhost/t.xml has: > > > 2) /usr/tomcat/

Problem with respecting docBase in context file in TC 6.0.20?

2009-08-19 Thread Roger Powers
Problem: 1) /usr/tomcat/conf/Catalina/localhost/t.xml has: 2) /usr/tomcat/webapps/a exists. 3) /usr/tomcat/webapps/t does not exist. 4) When tomcat starts, org.apache.catalina.core.StandardContext:resourcesStart() throws java.lang.IllegalArgumentException: Document base /usr/tomcat/webapps/

Re: Setting maxThreads from outside tomcat

2009-07-30 Thread Roger Powers
Sorry, I just discovered that catalina.properties can be used to set variables that can be used in server.xml - problem solved! --- On Thu, 7/30/09, Roger Powers wrote: > From: Roger Powers > Subject: Setting maxThreads from outside tomcat > To: users@tomcat.apache.org > Date: Th

Setting maxThreads from outside tomcat

2009-07-30 Thread Roger Powers
Hi, I am making tomcat 6 work on different platforms that need different values for maxThreads in the Connector in server.xml. Ideally, I would set an environment variable and/or property that could be used when server.xml is read - is something like this supported? Or, worse case, it looks li