Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 6991 invoked from network); 3 Oct 2008 19:45:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2008 19:45:43 -0000 Received: (qmail 1967 invoked by uid 500); 3 Oct 2008 19:45:28 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 1926 invoked by uid 500); 3 Oct 2008 19:45:28 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 1915 invoked by uid 99); 3 Oct 2008 19:45:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 12:45:28 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mceahems@mail.slh.wisc.edu designates 144.92.248.144 as permitted sender) Received: from [144.92.248.144] (HELO securemail.slh.wisc.edu) (144.92.248.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 19:44:26 +0000 Received: from [144.92.155.78] by securemail.slh.wisc.edu with ESMTP ( Tumbleweed Email Firewall SMTP Relay (Email Firewall v6.3.2)); Fri, 03 Oct 2008 14:44:50 -0500 X-Server-Uuid: 282D9B1E-FBD1-446E-80C2-7AB232699C2B X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message Subject: RE: Deploying to a subfolder MIME-Version: 1.0 Date: Fri, 3 Oct 2008 14:44:50 -0500 Message-ID: <1298E81544388440ADBE9B0072AABD8101FFA430@slhmail2003.ad.slh.wisc.edu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Deploying to a subfolder Thread-Index: AckletKHmdAo7xjsSoiA3/Bc0aOmUAAEycZA From: "McEahern, Mark S" To: "Tomcat Users List" X-WSS-ID: 64F8A9B81O02382419-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Mark Thomas wrote: > That is the wrong docBase so the error makes sense but it=20 > should have been converted to ...\apps#myapp What's interesting is that the automatic deployment process takes the war file that I place in webapps/apps#myapp.war and creates a corresponding file in this folder: C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost named: apps#myapp.xml with contents that match the META-INF/context.xml file in the .war: > What is the error message when Tomcat starts and deployment fails. >From catalina.log: Oct 3, 2008 2:36:59 PM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\apps\myapp does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.jav a:141) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext. java:3957) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4126 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java: 627) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java :553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31 1) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Oct 3, 2008 2:36:59 PM org.apache.catalina.core.StandardContext start SEVERE: Error in resourceStart() Oct 3, 2008 2:36:59 PM org.apache.catalina.core.StandardContext start SEVERE: Error getConfigured Oct 3, 2008 2:36:59 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/apps/myapp] startup failed due to previous errors Oct 3, 2008 2:36:59 PM org.apache.catalina.core.StandardContext stop INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/apps/mya pp] has not been started Oct 3, 2008 2:36:59 PM org.apache.catalina.startup.HostConfig deployWAR > This works for me, even with a space in the install path. >=20 > Are you sure you are using 6.0.18? Yes. Here's the information from the manager application: Server Information Tomcat Version: Apache Tomcat/6.0.18 JVM Version: 1.6.0_06-b02 JVM Vendor: Sun Microsystems Inc. OS Name: Windows XP OS Version: 5.1 OS Architecture: x86 > Also, is there a Context element defined anywhere for this=20 > web app and if so, what is it? The context inside of the .war file (/META-INF/context.xml) as well as the resulting apps#myapp.xml in: C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost They match and they both look like this: Thanks, // m --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org