Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 26408 invoked from network); 21 Mar 2006 08:35:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Mar 2006 08:35:11 -0000 Received: (qmail 45980 invoked by uid 500); 21 Mar 2006 08:35:08 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 45922 invoked by uid 500); 21 Mar 2006 08:35:08 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 45910 invoked by uid 99); 21 Mar 2006 08:35:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2006 00:35:07 -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.237.222.115] (HELO smtp.nada.kth.se) (130.237.222.115) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2006 00:35:07 -0800 X-Authentication-Info: The sender was authenticated as danielf using PLAIN at smtp.nada.kth.se Received: from [192.168.105.132] ([62.84.203.102]) (authenticated bits=0) by smtp.nada.kth.se (8.12.11/8.12.11) with ESMTP id k2L8Yjpc013281 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 21 Mar 2006 09:34:45 +0100 (MET) Message-ID: <441FBA9C.30002@nada.kth.se> Date: Tue, 21 Mar 2006 09:34:36 +0100 From: Daniel Fagerstrom User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [RT] a simple release plan References: <44183A19.5080908@apache.org> <44183E8E.3090404@gmail.com> <441A6EF5.6010107@apache.org> <441BE1B4.40201@nada.kth.se> <441C521D.3070908@apache.org> <441D43B2.6090808@nada.kth.se> <441FABA5.9040206@apache.org> In-Reply-To: <441FABA5.9040206@apache.org> Content-Type: text/plain; charset=ISO-8859-15; 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 Carsten Ziegeler skrev: > Daniel Fagerstrom wrote: > >> Didn't work for me. I copied configuration files and samples as >> described in >> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=114073731515724&w=2 and >> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=114085759822501&w=2 >> and still gets the same problem as Ben reports in the link above. I.e. >> that components are not inherited properly to subsitemaps. Stack trace >> below. >> >> > Ok, you're right (of course): the hierarchy of bean factories is > correctly initialized, including for example the jx generator. For some > strange reason, the tree processor of a sub sitemap is creating the > correct bean factory but using the root bean factory. Therefore the jx > generator can't be found. > > What's the easiest way to debug the code? Can I easily run jetty in > debug mode? > I do most development in Eclipse and use the Jetty plugin (see http://marc.theaimsgroup.com/?t=113715888100008&r=1&w=2 about setup), the Jetty plugin works fine with debugging. During development of the blocks fw I have used ServletUnit and tests at the functional level. So during most of the debugging I have started the main servlet from ServletUnit instead. The base test class can be found here http://svn.apache.org/repos/asf/cocoon/trunk/cocoon-blocks-fw/cocoon-blocks-fw-servlet-impl/src/test/java/org/apache/cocoon/ServletTestCase.java, and an example of using it here http://svn.apache.org/repos/asf/cocoon/trunk/cocoon-blocks-fw/cocoon-blocks-fw-servlet-impl/src/test/java/org/apache/cocoon/blocks/servlet/BlocksManagerTestCase.java, it will use a webapp in the same package, http://svn.apache.org/repos/asf/cocoon/trunk/cocoon-blocks-fw/cocoon-blocks-fw-servlet-impl/src/test/resources/org/apache/cocoon/blocks/servlet/. The testing system is quite primitive but has been very useful despite that. We could move the base class to core (and maybe even make it less primitive and combine it with the HtmlUnit tests from 2.1.x), if others are interested. /Daniel