Try to build your app as ROOT.war. Because tomcat extracts the war-file, and makes some copies to tmp and work dirs.
-----Oorspronkelijk bericht----- Van: Ken Bowen [mailto:[EMAIL PROTECTED] Verzonden: donderdag 18 oktober 2007 13:43 Aan: users@tomcat.apache.org Onderwerp: Problem installing application context as ROOT Hi All, I'm having a problem installing my application to run as the ROOT context. The problem is in getting Tomcat to expand ROOT.war. I can make things work as follows: 1. Use ant to create myapp.war, and upload it to the isp. 2. Drop myapp.war in ~tomcat5/webapps; Tomcat expands myapp.war to myapp/ 3. Stop Tomcat; rename myapp/ to ROOT/, and delete myapp.war 4. Restart Tomcat; after a delay (maybe 1-2 min), myapp is running as ROOT/ . But the following doesn't work: a. Stop Tomcat; remove everything in webapps b. Copy myapp.war into webapps, and rename it to ~/tomcat5/webapps/ROOT.war c. Restart Tomcat No matter how long I wait (say 5 min), while making requests for the root context from a browser, ROOT.war doesn't get expanded, and all I get in the browser is "/ is unavailable". [In contrast, when I drop myapp.war into webapps, it is almost instantly expanded to myapp/ ] I've also tried starting the Tomcat manager. It falsly claims that "/" is running. I've asked it to Stop and then Start "/", but that doesn't help. Some details: Tomcat 5.5.25 Java 1.5.0_12 The Host spec from server.xml: <Host appBase="webapps" name="myaddress.com" unpackWARs="true" autoDeploy="true"> <Context path="/manager" docBase="/opt/tomcat5/server/webapps/manager" privileged="true" debug="0"/> <Context path="/admin" docBase="/opt/tomcat5/server/webapps/admin" privileged="true" debug="0"/> </Host> The META-INF/context.xml for myapp: <Context path="" debug="5" reloadable="true" crossContext="true"> <Resource name="jdbc/sb_data" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="XXXXX" password="XXXXX" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/sb_data"/> <Resource name="jdbc/sb_users" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="XXXXX" password="XXXXX" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/sb_users"/> </Context> Does anyone have any tips for how I could carry out installs of myapp.war as ROOT.war and get it expanded? Steps 1-4 are a little bit awkward. If I have to, I assume I could slightly streamline 1-4 by first stopping the root app (/) with the manager, dropping in the new ROOT.war, and then executing jar -xf ./ROOT.war Does this expand ROOT.war exactly as Tomcat does? Thanks in advance, Ken Bowen --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.15.0/1076 - Release Date: 17-10-2007 19:53 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.15.0/1076 - Release Date: 17-10-2007 19:53 --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]