forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject strange Dispatcher behaviour after merge
Date Sat, 05 Dec 2009 00:25:43 GMT
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<String, Object> 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<String, Contract> 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<String, Object> map = new HashMap<String, Object>();
    [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
--------------------------

Mime
View raw message