Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 86149 invoked from network); 9 Feb 2006 21:15:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Feb 2006 21:15:22 -0000 Received: (qmail 58895 invoked by uid 500); 9 Feb 2006 21:15:11 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 58741 invoked by uid 500); 9 Feb 2006 21:15:10 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 58573 invoked by uid 99); 9 Feb 2006 21:15:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2006 13:15:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [130.231.240.1] (HELO oulu.fi) (130.231.240.1) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2006 13:15:08 -0800 Received: from cc.oulu.fi (sun3.oulu.fi [130.231.240.13]) by oulu.fi (8.13.1/8.13.1) with ESMTP id k19LEkSp004062 for ; Thu, 9 Feb 2006 23:14:46 +0200 (EET) Received: from [192.168.1.10] (dsl-176-86.oulu.fi [130.231.176.86]) by cc.oulu.fi (8.12.10/8.12.10) with ESMTP id k19LEjxH005628 for ; Thu, 9 Feb 2006 23:14:45 +0200 (EET) Message-ID: <43EBB0C5.4000509@cc.oulu.fi> Date: Thu, 09 Feb 2006 23:14:45 +0200 From: Andre Juffer Reply-To: Andre.Juffer@oulu.fi Organization: The University of Oulu User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.2) Gecko/20040804 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: using resource:// protocol References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Simon, could it be that you have to put your css in the directory org/apache/cocoon/{1}/resources/{2} (with {1}, {2} replaced with the appropriate names) I have not used resource protocol myself, but I think you have to put your CSS file in the classpath under org/apache/cocoon/... (e.g. in a jar file in the WEB-INF/lib directory). Simon Stanlake wrote: > Hi, > I'm having trouble using the 'resource://' protocol from my web-app. > > I've got the default cocoon web-app installed (2.1.8) on tomcat 5.5.9. I > have a sub-directory called myApp containing my application like: > > tomcat > | > ->webapps > | > ->cocoon > | > ->myApp > > I have copied some stuff from the samples in order to get cforms to > work. > > myApp/sitemap.xmap: > > > > src="resource://org/apache/cocoon/{1}/resources/{2}"/> > > > > I then want to have stuff like CSS's in a resources folder. What I don't > understand is where to put the resources folder, and if I have to > configure something else (in web.xml?) to get it to work. > > if I browse to http://localhost:8080/cocoon/myApp/resources/css/my.css I > get "Resource Not Found". I've tried putting the css under... > > cocoon/resources/css > cocoon/WEB-INF/resources/css > cocoon/WEB-INF/css > cocoon/myApp/resources/css > > all with no luck. > > I've stepped through all the ResourceReader code down until it passes > off to the Tomcat WebappClassLoader, which returns null. > > Thanks - > Simon Stanlake > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > -- Andre H. Juffer | Phone: +358-8-553 1161 The Biocenter and | Fax: +358-8-553-1141 the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org