I have no problem unpacking wars on Tomcat 4.1.x. I set the Host appBase to the absolute (not relative) path of the directory where the war will be located. For example:
<Host name="localhost.struts" appBase="/home/tomcat/struts" debug="0" unpackWARs="true"> In this case you would put mywebapp.war in /home/tomcat/struts/. Then you can use the following Context: <Context path="" docBase="mywebapp" debug="0" reloadable="true" /> Make sure the mywebapp directory does not exist; otherwise, the war will not unpack. On Thu, 2004-03-18 at 09:41, Jesse Vitrone wrote: > When I try to install my application, I put the war file in the webapps > directory, and in the server.xml I add a <context> mapping. When I start > Tomcat, my war file isn't getting extracted. > > Unpack wars is set to true: > > <Host name="localhost" debug="0" appBase="webapps" > unpackWARs="true" autoDeploy="true"> > > If I comment out my <context>, the war gets extracted, but I need the > context mapping. Once the war is extracted, I can put the <context> mapping > in and everything works fine. > > Any idea why my war isn't getting extracted when the mapping is in there? > > My mapping looks like this: > > <Context path="/mywebapp" docBase="mywebapp" debug="99" > reloadable="true"> > <Resource name="jdbc/pmisDS" auth="Container" > type="javax.sql.DataSource"/> > <ResourceParams name="jdbc/mywebappDS"> > <parameter> > <name>factory</name> > > <value>org.apache.commons.dbcp.BasicDataSourceFactory</value> > </parameter> > > <parameter> > <name>maxActive</name> > <value>50</value> > </parameter> > > <parameter> > <name>maxIdle</name> > <value>5</value> > </parameter> > > <parameter> > <name>maxWait</name> > <value>10000</value> > </parameter> > > <parameter> > <name>logAbandoned</name> > <value>true</value> > </parameter> > > <parameter> > <name>removeAbandoned</name> > <value>true</value> > </parameter> > > <parameter> > <name>removeAbandonedTimeout</name> > <value>60</value> > </parameter> > > <parameter> > <name>username</name> > <value>user</value> > </parameter> > <parameter> > <name>password</name> > <value>pass</value> > </parameter> > <parameter> > <name>driverClassName</name> > <value>com.jnetdirect.jsql.JSQLDriver</value> > </parameter> > <parameter> > <name>url</name> > <value>jdbc:JSQLConnect://mydb/database=name</value> > > </parameter> > </ResourceParams> > </Context> > > Any suggestions would be greatly appreciated. > > Thanks, > Jesse > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]