forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gav..." <ga...@16degrees.com.au>
Subject RE: Can't get Dispatcher working at all windows/linux from trunk
Date Mon, 22 Feb 2010 06:30:38 GMT


> -----Original Message-----
> From: Gav... [mailto:gavin@16degrees.com.au]
> Sent: Monday, 22 February 2010 3:54 PM
> To: dev@forrest.apache.org
> Subject: RE: Can't get Dispatcher working at all windows/linux from
> trunk
> 
> 
> 
> > -----Original Message-----
> > From: Gavin [mailto:gavin@16degrees.com.au]
> > Sent: Monday, 22 February 2010 1:43 PM
> > To: dev@forrest.apache.org
> > Subject: Can't get Dispatcher working at all windows/linux from trunk
> >
> > Using a fresh trunk - in fact on a Windows machine and a Linux
> machine
> > that have never had Forrest installed on it before, I can get a
> > 'forrest
> > seed' site working normally.
> >
> > As soon as I dispatcher enable it in forrest.properties, I get a
> whole
> > heap of errors in both 'forrest run' and 'forrest site' - the build
> > continues to completion and I end up with a skinned site still, the
> > dispatcher was not enabled.
> >
> > This is on Windows XP, Ubuntu 8.10, using all combinations of java
> > 1.4.2, java 5 and java 6 jdks on both machines. With java 5 and 6 I
> get
> > the same 21 errors (pasted below) and with 1.4.2 I get more - 54
> > errors.
> >
> > Others seem to get further than me, to the point of a basic seed site
> > working fine, so have I missed some developer step not mentioned in
> the
> > docs that I might have forgotten?
> 
> I see Davids thread 'strange dispatcher behaviour after merge' is
> exactly the same problems
> as I am getting now. David, I see no follow up solution, what did you
> do to get it going again?
> 
> I also note Brian says he is not having any issues either, Brian, what
> did you need to change
> to get dispatcher in current trunk working for you?
> 
> The problem for me lies completely in the dispatcher plugin as I get
> those errors trying to
> run an 'ant test' or 'ant local-deploy' from within the dispatcher
> plugin dir.

I tested by going back to just before the new dispatcher merger:

$ cd $forrest_home/whiteboard/plugins

$ svn up org.apache.forrest.plugin.internal.dispatcher -r886146

$ svn up org.apache.forrest.themes.core -r886146

$ svn up whiteboard-plugins.xml -r886146

Now the dispatcher works fine with the current trunk and java 1.4.2, java 5 and java 6

Obviously not a solution to our current trunk, but a workaround should anyone need to get
dispatcher working for their own needs.

> 
> 
> Thanks
> 
> Gav...
> 
> >
> > ----------------
> > Apache Forrest.  Run 'forrest -projecthelp' to list options
> >
> > Buildfile: /home/gmcdonald/asf/forrest/main/forrest.build.xml
> >
> > check-java-version:
> > This is apache-forrest-0.9-dev
> > Using Java 1.6 from /usr/lib/jvm/java-6-sun-1.6.0.15/jre
> > Using Apache Ant version 1.7.1 compiled on September 26 2008
> > from /home/gmcdonald/asf/forrest/tools/ant
> >
> > <snip>
> >
> > fetch-plugins-descriptors:
> > Fetching plugins descriptor:
> > http://forrest.apache.org/plugins/plugins.xml
> > Getting: http://forrest.apache.org/plugins/plugins.xml
> > To: /home/gmcdonald/forrest-sites/forrest-seed/build/tmp/plugins-
> 1.xml
> > local file date : Mon Feb 22 09:45:04 EST 2010
> > Not modified - so not downloaded
> > Fetching plugins descriptor:
> > http://forrest.apache.org/plugins/whiteboard-plugins.xml
> > Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml
> > To: /home/gmcdonald/forrest-sites/forrest-seed/build/tmp/plugins-
> 2.xml
> > local file date : Mon Feb 22 09:49:46 EST 2010
> > Not modified - so not downloaded
> > Plugin list loaded from
> http://forrest.apache.org/plugins/plugins.xml.
> > Plugin list loaded from
> > http://forrest.apache.org/plugins/whiteboard-plugins.xml.
> >
> >
> >       --------------------------------------------------------------
> >       Installing plugin: org.apache.forrest.plugin.output.pdf
> >       --------------------------------------------------------------
> >
> > <snip>
> >
> > fetch-local-unversioned-plugin:
> >
> > get-local:
> > Trying to locally get org.apache.forrest.plugin.output.pdf
> > Looking in local /home/gmcdonald/asf/forrest/plugins
> > Found !
> >
> > <snip>
> >
> > configure-plugin:
> >
> > configure-output-plugin:
> > Mounting output plugin: org.apache.forrest.plugin.output.pdf
> > Processing /home/gmcdonald/forrest-sites/forrest-
> > seed/build/tmp/output.xmap to /home/gmcdonald/forrest-sites/forrest-
> > seed/build/tmp/output.xmap.new
> > Loading
> > stylesheet
> /home/gmcdonald/asf/forrest/main/var/pluginMountSnippet.xsl
> > Moving 1 file to /home/gmcdonald/forrest-sites/forrest-seed/build/tmp
> >
> > configure-plugin-locationmap:
> > Mounting plugin locationmap for org.apache.forrest.plugin.output.pdf
> > Processing /home/gmcdonald/forrest-sites/forrest-
> > seed/build/tmp/locationmap.xml to /home/gmcdonald/forrest-
> > sites/forrest-seed/build/tmp/locationmap.xml.new
> > Loading
> > stylesheet
> > /home/gmcdonald/asf/forrest/main/var/pluginLmMountSnippet.xsl
> > Moving 1 file to /home/gmcdonald/forrest-sites/forrest-seed/build/tmp
> >
> >       --------------------------------------------------------------
> >       Installing plugin:
> org.apache.forrest.plugin.internal.dispatcher
> >       --------------------------------------------------------------
> >
> >
> > check-plugin:
> > org.apache.forrest.plugin.internal.dispatcher is not available in the
> > build dir. Trying to fetch it...
> >
> > init-props:
> >
> > echo-settings-condition:
> >
> > echo-settings:
> >
> > init-proxy:
> >
> > fetch-plugins-descriptors:
> >
> > fetch-plugin:
> > Trying to find the description of
> > org.apache.forrest.plugin.internal.dispatcher in the different
> > descriptor files
> > Using the descriptor
> > file /home/gmcdonald/forrest-sites/forrest-seed/build/tmp/plugins-
> > 1.xml...
> > Processing /home/gmcdonald/forrest-sites/forrest-
> > seed/build/tmp/plugins-1.xml to /home/gmcdonald/forrest-
> sites/forrest-
> > seed/build/tmp/pluginlist2fetchbuild.xml
> > Loading
> > stylesheet /home/gmcdonald/asf/forrest/main/var/pluginlist2fetch.xsl
> >
> > findPlugin:
> > Using the descriptor
> > file /home/gmcdonald/forrest-sites/forrest-seed/build/tmp/plugins-
> > 2.xml...
> > Processing /home/gmcdonald/forrest-sites/forrest-
> > seed/build/tmp/plugins-2.xml to /home/gmcdonald/forrest-
> sites/forrest-
> > seed/build/tmp/pluginlist2fetchbuild.xml
> > Loading
> > stylesheet /home/gmcdonald/asf/forrest/main/var/pluginlist2fetch.xsl
> >
> > fetch-local-unversioned-plugin:
> >
> > get-local:
> > Trying to locally get org.apache.forrest.plugin.internal.dispatcher
> > Looking in local /home/gmcdonald/asf/forrest/plugins
> > Looking in local /home/gmcdonald/asf/forrest/whiteboard/plugins
> > Found !
> >
> > init-build-compiler:
> >
> > echo-init:
> >
> > init:
> >
> > compile:
> > Compiling 31 source files
> > to
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> > n.internal.dispatcher/build/classes
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/api/Contra
> > ct.java:79: generics are not supported in -source 1.4
> > (use -source 5 or higher to enable generics)
> >   InputStream execute(InputStream dataStream, Map<String, Object>
> > properties)
> >                                                  ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/factories/
> > ContractFactory.java:54: generics are not supported in -source 1.4
> > (use -source 5 or higher to enable generics)
> >   private Map<String, Contract> map = null;
> >              ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/Abstr
> > actXmlStructurer.java:38: generics are not supported in -source 1.4
> > (use -source 5 or higher to enable generics)
> >   protected final Map<String, Object> param;
> >                      ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XMLSt
> > ructurer.java:55: generics are not supported in -source 1.4
> > (use -source 5 or higher to enable generics)
> >   private final LinkedHashMap<String, LinkedHashSet<XMLEvent>>
> > resultTree = new LinkedHashMap<String, LinkedHashSet<XMLEvent>>();
> >                              ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XMLSt
> > ructurer.java:454: for-each loops are not supported in -source 1.4
> > (use -source 5 or higher to enable for-each loops)
> >     for (final String string : tokenizer) {
> >                              ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XMLSt
> > ructurerAxiom.java:76: generics are not supported in -source 1.4
> > (use -source 5 or higher to enable generics)
> >   public XMLStructurerAxiom(DispatcherBean config, Map<String,
> Object>
> > defaultProperties) {
> >                                                       ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XMLSt
> > ructurerAxiom.java:86: annotations are not supported in -source 1.4
> > (use -source 5 or higher to enable annotations)
> >   @SuppressWarnings("unchecked")
> >    ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XMLSt
> > ructurerAxiom.java:345: for-each loops are not supported in -source
> 1.4
> > (use -source 5 or higher to enable for-each loops)
> >         for (OMNamespace space : spaces) {
> >                                ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XSLCo
> > ntract.java:76: generics are not supported in -source 1.4
> > (use -source 5 or higher to enable generics)
> >       Map<String, Object> properties) throws ContractException {
> >          ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helpe
> > r/AXIOMXPathCreate.java:108: generics are not supported in -source
> 1.4
> > (use -source 5 or higher to enable generics)
> >     LinkedHashSet<OMElement> pathNodes = new
> > LinkedHashSet<OMElement>();
> >                  ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helpe
> > r/AXIOMXPathCreate.java:109: for-each loops are not supported in -
> > source 1.4
> > (use -source 5 or higher to enable for-each loops)
> >     for (String pathPart : tokenizer) {
> >                          ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helpe
> > r/CommonString.java:31: generics are not supported in -source 1.4
> > (use -source 5 or higher to enable generics)
> >     List<String> list = Arrays.asList(args);
> >         ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helpe
> > r/ContractHandler.java:31: generics are not supported in -source 1.4
> > (use -source 5 or higher to enable generics)
> >   private HashMap<String, String> map;
> >                  ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helpe
> > r/NSAllocator.java:46: annotations are not supported in -source 1.4
> > (use -source 5 or higher to enable annotations)
> >   @SuppressWarnings("unchecked")
> >    ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helpe
> > r/StAX.java:189: generics are not supported in -source 1.4
> > (use -source 5 or higher to enable generics)
> >   public static Iterator<Namespace> allocateNamespacesForced(QName
> > name,
> >                         ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helpe
> > r/XMLProperties.java:56: generics are not supported in -source 1.4
> > (use -source 5 or higher to enable generics)
> >   public static void parseProperties(InputStream stream, Map<String,
> > Object> map) throws XMLStreamException{
> >                                                             ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helpe
> > r/XSLContractHelper.java:122: generics are not supported in -source
> 1.4
> > (use -source 5 or higher to enable generics)
> >       boolean allowXmlProperties, Map<String, Object> params)
> >                                      ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transforma
> > tion/DispatcherTransformer.java:237: generics are not supported in -
> > source 1.4
> > (use -source 5 or higher to enable generics)
> >   private HashMap<String, Object> map;
> >                  ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transforma
> > tion/DispatcherTransformer.java:584: annotations are not supported in
> -
> > source 1.4
> > (use -source 5 or higher to enable annotations)
> >   @SuppressWarnings("unchecked")
> >    ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transforma
> > tion/DispatcherTransformer.java:637: for-each loops are not supported
> > in -source 1.4
> > (use -source 5 or higher to enable for-each loops)
> >         for (OMNamespace space : spaces) {
> >                                ^
> >
> /home/gmcdonald/asf/forrest/whiteboard/plugins/org.apache.forrest.plugi
> >
> n.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transforma
> > tion/DispatcherWrapperTransformer.java:318: generics are not
> supported
> > in -source 1.4
> > (use -source 5 or higher to enable generics)
> >     HashMap<String, Object> map = new HashMap<String, Object>();
> >            ^
> > 21 errors
> > Plugin org.apache.forrest.plugin.internal.dispatcher deployed ! Ready
> > to
> > configure
> >
> > fetch-remote-unversioned-plugin-version-forrest:
> >
> > fetch-remote-unversioned-plugin-unversion-forrest:
> >
> > has-been-downloaded:
> >
> > downloaded-message:
> >
> > uptodate-message:
> >
> > not-found-message:
> > Fetch-plugin Ok, installing !
> >
> > unpack-plugin:
> >
> > install-plugin:
> >
> > configure-plugin:
> > No locationmap provided for plugin
> > org.apache.forrest.plugin.internal.dispatcher
> >
> > init:
> >
> > check-contentdir:
> >
> > ensure-content:
> >
> > run_custom_jetty:
> >
> > run_default_jetty:
> >
> >   Note: Use Ctrl-C to stop the Jetty server
> >
> > Warning: Reference forrest.cp has not been set at runtime, but was
> > found
> > during
> > build file parsing, attempting to resolve. Future versions of Ant may
> > support
> >  referencing ids defined in non-executed targets.
> > 13:01:30.588 EVENT  Checking Resource aliases
> > 13:01:30.833 EVENT  Starting Jetty/4.2.19
> > 13:01:30.932 EVENT  Started WebApplicationContext[/,Apache Forrest]
> > 13:01:30.984 WARN!! Delete existing temp dir /tmp/Jetty__8888__ for
> > WebApplicationContext[/,Apache Forrest]
> > 13:01:31.882 EVENT  Started SocketListener on 0.0.0.0:8888
> > 13:01:31.883 EVENT  Started org.mortbay.jetty.Server@1f14ceb
> > ----------------
> >
> 
> 




Mime
View raw message