content redirect in Tomcat 5
Hi all,
I work techsupport for a software company who's developed an app running on Tomcat. We have many different versions of the application in the field so I need 12 different webapp directories on my test server, which I can quickly boot into for testing. Using Tomcat 4.1, I was able to create individual XML files that would redirect to separate docbase's, depending on the version I needed. I could just pop the XML into the ..\webapps directory for the version I wanted, restart services, and be good to go. Since the WAR file for each version is upwards of 200 MB, this was a work-around to having all 12 instance live at once, which my minimalist server couldn't handle.
Since upgrading to Tomcat 5, these same redirect XML files no longer work. Now I'm getting a 404 Error when navigating to the individual URLs.
My quick question is, does 5 require editing of the server.xml to get the functionality I'm looking for? And the long question, is there something misconfigured in my XML?
Thanks in advance,
Seth
<Context path="/concur71112" docBase="E:\ApacheGroup\Tomcat 5.0\webappsbak\concur71112" debug="0"
reloadable="true" crossContext="false">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="concur71112." suffix=".txt"
timestamp="true"/>
<Manager className="org.apache.catalina.session.PersistentM anager"
debug="0"
saveOnRestart="false"
maxActiveSessions="-1"
minIdleSwap="-1"
maxIdleSwap="-1"
maxIdleBackup="-1">
<Store className="org.apache.catalina.session.FileStore"/>
</Manager>
<Environment name="maxExemptions" type="java.lang.Integer"
value="15"/>
<Parameter name="context.param.name" value="context.param.value"
override="false"/>
<Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/EmployeeAppDb">
<parameter><name>username</name><value>sa</value></parameter>
<parameter><name>password</name><value></value></parameter>
<parameter><name>driverClassName</name>
<value>org.hsql.jdbcDriver</value></parameter>
<parameter><name>url</name>
<value>jdbc:HypersonicSQL:database</value></parameter>
</ResourceParams>
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
<ResourceLink name="linkToGlobalResource"
global="simpleValue"
type="java.lang.Integer"/>
</Context>
|