Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 57798 invoked from network); 24 Jan 2007 05:51:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jan 2007 05:51:34 -0000 Received: (qmail 89953 invoked by uid 500); 24 Jan 2007 05:51:26 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 89936 invoked by uid 500); 24 Jan 2007 05:51:26 -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 89925 invoked by uid 99); 24 Jan 2007 05:51:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 21:51:26 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of andre.prasetya@gmail.com designates 66.249.82.231 as permitted sender) Received: from [66.249.82.231] (HELO wx-out-0506.google.com) (66.249.82.231) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 21:51:18 -0800 Received: by wx-out-0506.google.com with SMTP id i26so75612wxd for ; Tue, 23 Jan 2007 21:50:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Dg+mnG2QonAU6IpaKojfHeXy4UeOJPYoBcFIkIN9jokMrmDxNPEndT/R8skRD9U8GjYuBv1FD6jzmSGWvH8OZo7oKm6pifvRfmD5l++jfBCErwmMTIYIfBuI6jL6GIF01PSJ8VERlSJKwQRRR3hxCZjoGm8SfL08NPrLcX/1zOw= Received: by 10.70.74.1 with SMTP id w1mr759033wxa.1169617857564; Tue, 23 Jan 2007 21:50:57 -0800 (PST) Received: by 10.70.96.11 with HTTP; Tue, 23 Jan 2007 21:50:57 -0800 (PST) Message-ID: <95bb02000701232150s3b2b2adfhbc955de0823d0b8@mail.gmail.com> Date: Wed, 24 Jan 2007 12:50:57 +0700 From: "Andre Prasetya" To: "Tomcat Users List" Subject: Re: Path element in context.xml In-Reply-To: <369B1AC65F85B2479C266305ED32A0EC01D7838E@NA1000EXM02.na.ds.monsanto.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_261_29616360.1169617857518" References: <369B1AC65F85B2479C266305ED32A0EC01D7838E@NA1000EXM02.na.ds.monsanto.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_261_29616360.1169617857518 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline This question being asked many times by many people. Context path="xxx" is not supposed to be used unless you mention it at server.xml but its strongly discouraged.CMIIW so far i only use the war name as its deploy path like foo.war will map to localhost:8080/foo/ On 1/24/07, DHARNA, AJAY [AG/1000] wrote: > > Hi, > I had posted this question earlier on the users mailing list and got no > response, so I am going to try and re-post it again and also post it on > the > dev mailing list. > > I have recently upgrade from tomcat 5.0.28 to 5.5.20 and everything seems > to > be working fine for most of my apps except for the ones that have context > with multi-level path. Also I should mention that I am not unpacking any > of > my war files. (unpackWARs="false" autoDeploy="true") > > I deployed my app - foo.war which had the following context in > foo.war/meta-inf/context.xml > > reloadable="true"/> > > > In the Tomcat Manager Application List, I only see the path /foo and also > in > the /Catalina/hostname there is a file called foo.xml. If I > try > to hit the url < > http://localhost:8080/some/foo> > http://localhost:8080/some/foo - it doesn't work. > > I did some reach on this issue and found a similar issue in bugzilla ( < > > http://issues.apache.org/bugzilla/show_bug.cgi?id=38198> > > > http://issues.apache.org/bugzilla/show_bug.cgi?id=38198) that mentioned > that > the path element is no longer being used and it mentions that I should > rename the context.xml file to contain the path. According to Bug#:38198 > in > bugzilla - the fix is to rename the foo.xml file to be some#foo.xml and > remove the path. So I renamed the file in > /Catalina/hostname/foo.xml to > /Catalina/hostname/some#foo.xml and it now contains the > > following: > > > > When I do this and start up tomcat, I get the following error: > > SEVERE: Error starting static Resources > java.lang.IllegalArgumentException: Document base > C:\www\tomcat_5.5.20\webapps\some\foo does not exist or is not a readable > directory > > at > org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java > :14 > > 0) > at > org.apache.catalina.core.StandardContext.resourcesStart( > StandardContext.java > > :3848) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4019) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java > :7 > > 59) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) > at > org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java > :608) > > > at > org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java > :535 > > ) > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) > at > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) > at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent > (LifecycleSuppor > > t.java:119) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) > at > org.apache.catalina.core.StandardHost.start(StandardHost.java:718) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) > at > org.apache.catalina.core.StandardService.start(StandardService.java:450) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:709) > at org.apache.catalina.startup.Catalina.start(Catalina.java:551) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java > :39 > > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl > > .java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) > Jan 19, 2007 3:58:06 PM org.apache.catalina.core.StandardContext start > SEVERE: Error in resourceStart() > Jan 19, 2007 3:58:06 PM org.apache.catalina.core.StandardContext start > SEVERE: Error getConfigured > Jan 19, 2007 3:58:06 PM org.apache.catalina.core.StandardContext start > SEVERE: Context [/some/foo] startup failed due to previous errors > Jan 19, 2007 3:58:06 PM org.apache.catalina.core.StandardContext stop > INFO: Container > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/some/foo] > has not been started > > > I also tried changing the docBase to be the absolute path of the war file: > > some#foo.xml > privileged="true" reloadable="true"/> > > But I get the same result as above. > > Could someone please tell me how they are able to get this to work with > 5.5 > - what changes do I need to make so that when I deploy my war - foo.war, > it > show up in the Tomcat Manager Application List with path /some/foo > > Thanks for your help > Ajay. > > > > --------------------------------------------------------------------------------------------------------- > This e-mail message may contain privileged and/or confidential > information, and is intended to be received only by persons entitled to > receive such information. If you have received this e-mail in error, please > notify the sender immediately. Please delete it and all attachments from any > servers, hard drives or any other media. Other use of this e-mail by you is > strictly prohibited. > > > All e-mails and attachments sent and received are subject to monitoring, > reading and archival by Monsanto. The recipient of this e-mail is solely > responsible for checking for the presence of "Viruses" or other "Malware". > Monsanto accepts no liability for any damage caused by any such code > transmitted by or accompanying this e-mail or any attachment. > > --------------------------------------------------------------------------------------------------------- > > > -- -Andre- People see things the way they are and say "why ?" I see things that never were and say "Why not ?" ------=_Part_261_29616360.1169617857518--