Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 19145 invoked from network); 5 Dec 2009 00:26:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Dec 2009 00:26:18 -0000 Received: (qmail 78215 invoked by uid 500); 5 Dec 2009 00:26:17 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 78128 invoked by uid 500); 5 Dec 2009 00:26:17 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 78120 invoked by uid 99); 5 Dec 2009 00:26:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Dec 2009 00:26:17 +0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [66.111.4.25] (HELO out1.smtp.messagingengine.com) (66.111.4.25) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Dec 2009 00:26:06 +0000 Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id A5E48C4D91 for ; Fri, 4 Dec 2009 19:25:45 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Fri, 04 Dec 2009 19:25:45 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=date:from:to:subject:message-id:mime-version:content-type; s=smtpout; bh=0b+yc8sNGX/V+VRSIzkuAvjspA0=; b=nhA46DOqBqquZonRag9gG16vwGqQKkYoWI3FLokFH+agm3NujXOCFpWm2yOxOmdBBHG7yqiDq7EfOTj0gADCdBAzCot7TK5aG7qAvRzVep3sWcABcXSCyy8E+mcd/1BL9+rGsaEhmmY85Uw371aSsDCMOIReCyo/mA+2tJ3mNiw= X-Sasl-enc: ZuOdp8NA4/h8qIS73ZM/i8PGSneffI1/m5nVST9AKje/ 1259972743 Received: from localhost (dsl-41-216.wholesaledsl.com.au [125.168.41.216]) by mail.messagingengine.com (Postfix) with ESMTPSA id C2BBD3965 for ; Fri, 4 Dec 2009 19:25:43 -0500 (EST) Date: Sat, 5 Dec 2009 11:25:43 +1100 From: David Crossley To: dev@forrest.apache.org Subject: strange Dispatcher behaviour after merge Message-ID: <20091205002543.GA5859@igg.indexgeo.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Virus-Checked: Checked by ClamAV on apache.org Dispatcher seems to have some strange behaviours after the recent merge. I don't have much time, so here is a quick dump of notes. Perhaps someone else can raise Jira issues for them. Using Java-1.5 1) Rebuild forrest. All seems okay. 2) cd $FORREST_HOME/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher 3) rm -rf build 3) $FORREST_HOME/tools/ant/bin/ant local-deploy 4) Get compilation errors and "BUILD FAILED" (see [A]) It sounds like someone needs to get the PMC to agree on increasing the base Java version. Now follow the instructions for a Dispatcher-based sample site: 5) cd /tmp/forrest-sample-2 6) forrest seed-sample 7) Follow instructions in forrest.properties* to configure Dispatcher 8) forrest 9) Those same errors whizz by at the Dispatcher plugin deployment phase. 10) The build continues. 11) Get "BUILD SUCCESSFUL" and yes there are pages generated. The configuration at our zone uses Java-1.4.2 It has different errors in its logfile, but similar behaviour. Doing 'forrest run' on that sample seems to basically work. Of course those same errors are issued, but the process continues. Using the "forrestbar" to access the internal parts, does not work at all. It gives Cocoon errors. That "sample" site does not really exercise the Dispatcher. I have a production site based on Dispatcher (see Forrest Examples) which was working okay just before the merge. It has various uses of specific structurers to show different layouts for different pages, e.g. additional right-hand panel. None of that is working. It seems to be using the default theme/structurer. The Dispatcher plugin's own website seems to basically work in the 'forrest run' mode. It has a very basic demonstration of using a structurer. That does seem to work. I suppose that with my own project i am going to need to follow the instructions from scratch again. Is that plugin documentation and changes up-to-date? Does someone have hints about what has changed with structurer configuration? -------------------------- [A] snipped beginning and end of output ... compile: [mkdir] Created dir: /svn/asf/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/build/classes [javac] Compiling 31 source files to /svn/asf/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/build/classes [javac] /svn/asf/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/api/Contract.java:79: generics are not supported in -source 1.4 [javac] (try -source 1.5 to enable generics) [javac] InputStream execute(InputStream dataStream, Map properties) [javac] ^ [javac] /svn/asf/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/factories/ContractFactory.java:54: generics are not supported in -source 1.4 [javac] (try -source 1.5 to enable generics) [javac] private Map map = null; ... ... [javac] /svn/asf/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transformation/DispatcherTransformer.java:637: for-each loops are not supported in -source 1.4 [javac] (try -source 1.5 to enable for-each loops) [javac] for (OMNamespace space : spaces) { [javac] ^ [javac] /svn/asf/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transformation/DispatcherWrapperTransformer.java:318: generics are not supported in -source 1.4 [javac] (try -source 1.5 to enable generics) [javac] HashMap map = new HashMap(); [javac] ^ [javac] 21 errors BUILD FAILED /svn/asf/forrest/plugins/build.xml:389: Compile failed; see the compiler error output for details. Total time: 1 second --------------------------