forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vicent Mas <uve...@gmail.com>
Subject Re: unable to run forrest
Date Tue, 03 Aug 2010 14:06:21 GMT
2010/8/3 Tim Williams <williamstw@gmail.com>:
> On Tue, Aug 3, 2010 at 8:16 AM, Vicent Mas <uvemas@gmail.com> wrote:
>> Hi list,
>>
>> after  a long time (more than one year) without working  with computers due to
>> several problems I'm trying to come back to my normal activity with computers.
>> One of the first things I'm trying to do is to update my dispatcher website
>> (www.vitables.org) but I'm unable to do it. I've done a fresh trunk check out
>> which built with no problems (just a couple of deprecation warnings):
>>
>> rachael:/opt/forrest_trunk/main# ./build.sh
>> Using classpath:
>> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
>> Buildfile: build.xml
>>
>> init:
>> Created dir: /opt/forrest_trunk/build
>>
>>      --------------------------------------------------------------
>>
>>      Using Apache Ant version 1.7.1 compiled on September 26 2008
>>      Build file /opt/forrest_trunk/main/build.xml
>>      Use 'build.[sh|bat] -projecthelp' to see other options.
>>      Build system home /opt/forrest_trunk/tools/ant
>>      Build number 0
>>      Project Name Forrest build file
>>      Java Version 1.6
>>      Timestamp 201008031357
>>      This is: apache-forrest 0.9-dev
>>
>>      --------------------------------------------------------------
>>
>>
>> compile:
>> Created dir: /opt/forrest_trunk/build/classes
>> Compiling 33 source files to /opt/forrest_trunk/build/classes
>> /opt/forrest_trunk/main/java/org/apache/forrest/log/ForrestLogTargetFactory.java:22:
>> warning: [deprecation] org.apache.cocoon.util.log.CocoonTargetFactory
>> in org.apache.cocoon.util.log has been deprecated
>> import org.apache.cocoon.util.log.CocoonTargetFactory;
>>                                 ^
>> /opt/forrest_trunk/main/java/org/apache/forrest/log/ForrestLogTargetFactory.java:30:
>> warning: [deprecation] org.apache.cocoon.util.log.CocoonTargetFactory
>> in org.apache.cocoon.util.log has been deprecated
>>    extends CocoonTargetFactory {
>>            ^
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> 2 warnings
>>
>> jar:
>> Building jar: /opt/forrest_trunk/build/xml-forrest.jar
>>
>>  *-----------------------------------------------------------------
>>  | Installation notice
>>  *-----------------------------------------------------------------
>>  | You have now built the 0.9-dev version of Forrest.
>>  | Please set the environment variable FORREST_HOME to point to
>>  |  /opt/forrest_trunk
>>  | It is recommended to add
>>  |    unix: $FORREST_HOME/bin: to your $PATH
>>  |    win: %FORREST_HOME%\bin; to your %PATH%
>>  | Then do 'forrest -projecthelp' to list options for the 'forrest' command
>>  | More help at http://forrest.apache.org/
>>  *-----------------------------------------------------------------
>>
>>
>> BUILD SUCCESSFUL
>> Total time: 4 seconds
>>
>>
>> After that I've created a sample site with $ forrest seed, copied the
>> forrest.properties* files to my real site folder, and added my required
>> plugins to the forrest.properties file:
>>
>> # project.required.plugins=org.apache.forrest.plugin.output.pdf
>> project.required.plugins=org.apache.forrest.plugin.internal.dispatcher,org.apache.forrest.plugin.input.feeder,org.apache.forrest.themes.core
>>
>> Then I run $ forrest run. It fails. The output is lenghty but the only errors I
>> see are the following:
>>
>> [...]
>>
>> fetch-plugins-descriptors:
>> Copying 1 file to /home/vmas/ViTables/website/forrest/build/tmp
>> Copying 1 file to /home/vmas/ViTables/website/forrest/build/tmp
>> Fetching plugins descriptor: http://forrest.apache.org/plugins/plugins.xml
>> Getting: http://forrest.apache.org/plugins/plugins.xml
>> To: /home/vmas/ViTables/website/forrest/build/tmp/plugins-1.xml
>> local file date : Tue Aug 03 08:53:46 CEST 2010
>> Error getting http://forrest.apache.org/plugins/plugins.xml to
>> /home/vmas/ViTables/website/forrest/build/tmp/plugins-1.xml
>> Fetching plugins descriptor:
>> http://forrest.apache.org/plugins/whiteboard-plugins.xml
>> Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml
>> To: /home/vmas/ViTables/website/forrest/build/tmp/plugins-2.xml
>> local file date : Tue Aug 03 08:53:57 CEST 2010
>> Error getting http://forrest.apache.org/plugins/whiteboard-plugins.xml
>> to /home/vmas/ViTables/website/forrest/build/tmp/plugins-2.xml
>> 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.themes.core
>>      --------------------------------------------------------------
>>
>>
>> check-plugin:
>> org.apache.forrest.themes.core 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.themes.core in
>> the different descriptor files
>> Using the descriptor file
>> /home/vmas/ViTables/website/forrest/build/tmp/plugins-1.xml...
>> Processing /home/vmas/ViTables/website/forrest/build/tmp/plugins-1.xml
>> to /home/vmas/ViTables/website/forrest/build/tmp/pluginlist2fetchbuild.xml
>> Loading stylesheet /opt/forrest_trunk/main/var/pluginlist2fetch.xsl
>>
>> findPlugin:
>> Using the descriptor file
>> /home/vmas/ViTables/website/forrest/build/tmp/plugins-2.xml...
>> Processing /home/vmas/ViTables/website/forrest/build/tmp/plugins-2.xml
>> to /home/vmas/ViTables/website/forrest/build/tmp/pluginlist2fetchbuild.xml
>> Loading stylesheet /opt/forrest_trunk/main/var/pluginlist2fetch.xsl
>>
>> findPlugin:
>>
>>
>> BUILD FAILED
>> /opt/forrest_trunk/main/targets/plugins.xml:392: The following error
>> occurred while executing this line:
>> /opt/forrest_trunk/main/targets/plugins.xml:413: The following error
>> occurred while executing this line:
>> /opt/forrest_trunk/main/targets/plugins.xml:359: STOP GENERATION !
>>    WARNING - Cannot find the plugin description
>>    ============================================
>>
>>    Unable to find the description of org.apache.forrest.themes.core
>> in the different descriptor files.
>>    This plugin used by this project (declared in
>> project.required.plugins variable of the forrest.properties).
>>    Forrest will stop the generation now.
>>    To correct this :
>>      - Check the name of the plugin and correct it in case it is wrong,
>>      - Add the missing descriptor file in the list in the
>> forrest.plugins.descriptors variable (forrest.properties) if
>> necessary...
>>
>> Total time: 8 seconds
>>
>> So although in the past I used the plugin org.apache.forrest.themes.core without
>> problems it seems I cannot do the same now. Please, could somebody tell me how
>> to fix the problem?
>
> Hi Vicent,
> I suspect your project is defined based on an old version of
> dispatcher.  I think that plugin was merged into dispatcher itself so
> try removing it from forrest.properties and giving it another go.
>
> --tim
>

Hi Tim,

thanks for your answer. I've tried your suggestion but with no luck.
When I do $forrest run my web browser displays this page:

Internal Server Error

Message: null

Description: No details available.

Sender: org.apache.cocoon.servlet.CocoonServlet

Source: Cocoon Servlet

cause

org.apache.forrest.dispatcher.transformation.DispatcherTransformer

Request URI

request-uri

/

Apache Cocoon 2.1.12-dev

but I don't see anything in the console that gives me a clue.

When I execute $ forrest I get the following:

Apache Forrest.  Run 'forrest -projecthelp' to list options

Buildfile: /opt/forrest_trunk/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.20/jre
Using Apache Ant version 1.7.1 compiled on September 26 2008 from
/opt/forrest_trunk/tools/ant

init-props:
Created dir: /home/vmas/ViTables/website/forrest/build/tmp

echo-settings-condition:

echo-settings:

check-skin:

init-proxy:

fetch-skins-descriptors:

fetch-skin:

unpack-skins:

init-skins:

fetch-plugins-descriptors:
Copying 1 file to /home/vmas/ViTables/website/forrest/build/tmp
Copying 1 file to /home/vmas/ViTables/website/forrest/build/tmp
Fetching plugins descriptor: http://forrest.apache.org/plugins/plugins.xml
Getting: http://forrest.apache.org/plugins/plugins.xml
To: /home/vmas/ViTables/website/forrest/build/tmp/plugins-1.xml
local file date : Tue Aug 03 13:51:04 CEST 2010
Error getting http://forrest.apache.org/plugins/plugins.xml to
/home/vmas/ViTables/website/forrest/build/tmp/plugins-1.xml
Fetching plugins descriptor:
http://forrest.apache.org/plugins/whiteboard-plugins.xml
Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml
To: /home/vmas/ViTables/website/forrest/build/tmp/plugins-2.xml
local file date : Tue Aug 03 13:55:01 CEST 2010
Error getting http://forrest.apache.org/plugins/whiteboard-plugins.xml
to /home/vmas/ViTables/website/forrest/build/tmp/plugins-2.xml
Plugin list loaded from http://forrest.apache.org/plugins/plugins.xml.
Plugin list loaded from
http://forrest.apache.org/plugins/whiteboard-plugins.xml.

init-plugins:
Created dir: /home/vmas/ViTables/website/forrest/build/webapp/conf
Copying 1 file to /home/vmas/ViTables/website/forrest/build/tmp
Copying 1 file to /home/vmas/ViTables/website/forrest/build/tmp
Copying 1 file to /home/vmas/ViTables/website/forrest/build/tmp
Copying 1 file to /home/vmas/ViTables/website/forrest/build/tmp
Copying 1 file to /home/vmas/ViTables/website/forrest/build/tmp

      --------------------------------------------------------------
      Installing plugin: org.apache.forrest.plugin.internal.dispatcher
      --------------------------------------------------------------


check-plugin:
org.apache.forrest.plugin.internal.dispatcher is available in the
build dir. Trying to update 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/vmas/ViTables/website/forrest/build/tmp/plugins-1.xml...
Processing /home/vmas/ViTables/website/forrest/build/tmp/plugins-1.xml
to /home/vmas/ViTables/website/forrest/build/tmp/pluginlist2fetchbuild.xml
Loading stylesheet /opt/forrest_trunk/main/var/pluginlist2fetch.xsl

findPlugin:
Using the descriptor file
/home/vmas/ViTables/website/forrest/build/tmp/plugins-2.xml...
Processing /home/vmas/ViTables/website/forrest/build/tmp/plugins-2.xml
to /home/vmas/ViTables/website/forrest/build/tmp/pluginlist2fetchbuild.xml
Loading stylesheet /opt/forrest_trunk/main/var/pluginlist2fetch.xsl

fetch-local-unversioned-plugin:

get-local:
Trying to locally get org.apache.forrest.plugin.internal.dispatcher
Looking in local /opt/forrest_trunk/plugins
Looking in local /opt/forrest_trunk/whiteboard/plugins
Found !

init-build-compiler:

echo-init:

init:

compile:

jar:

local-deploy:
Locally deploying org.apache.forrest.plugin.internal.dispatcher

build:
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:

configure-internal-plugin:
Mounting internal plugin: org.apache.forrest.plugin.internal.dispatcher
Processing /home/vmas/ViTables/website/forrest/build/tmp/internal.xmap
to /home/vmas/ViTables/website/forrest/build/tmp/internal.xmap.new
Loading stylesheet /opt/forrest_trunk/main/var/pluginMountSnippet.xsl
Moving 1 file to /home/vmas/ViTables/website/forrest/build/tmp

configure-plugin-locationmap:
Mounting plugin locationmap for org.apache.forrest.plugin.internal.dispatcher
Processing /home/vmas/ViTables/website/forrest/build/tmp/locationmap.xml
to /home/vmas/ViTables/website/forrest/build/tmp/locationmap.xml.new
Loading stylesheet /opt/forrest_trunk/main/var/pluginLmMountSnippet.xsl
Moving 1 file to /home/vmas/ViTables/website/forrest/build/tmp

      --------------------------------------------------------------
      Installing plugin: org.apache.forrest.plugin.input.feeder
      --------------------------------------------------------------


check-plugin:
org.apache.forrest.plugin.input.feeder is available in the build dir.
Trying to update 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.input.feeder in the different descriptor
files
Using the descriptor file
/home/vmas/ViTables/website/forrest/build/tmp/plugins-1.xml...
Processing /home/vmas/ViTables/website/forrest/build/tmp/plugins-1.xml
to /home/vmas/ViTables/website/forrest/build/tmp/pluginlist2fetchbuild.xml
Loading stylesheet /opt/forrest_trunk/main/var/pluginlist2fetch.xsl

fetch-local-unversioned-plugin:

get-local:
Trying to locally get org.apache.forrest.plugin.input.feeder
Looking in local /opt/forrest_trunk/plugins
Found !

init-build-compiler:

echo-init:

init:

compile:

jar:

local-deploy:
Locally deploying org.apache.forrest.plugin.input.feeder

build:
Plugin org.apache.forrest.plugin.input.feeder 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:

configure-input-plugin:
Mounting input plugin: org.apache.forrest.plugin.input.feeder
Processing /home/vmas/ViTables/website/forrest/build/tmp/input.xmap to
/home/vmas/ViTables/website/forrest/build/tmp/input.xmap.new
Loading stylesheet /opt/forrest_trunk/main/var/pluginMountSnippet.xsl
Moving 1 file to /home/vmas/ViTables/website/forrest/build/tmp
Processing /home/vmas/ViTables/website/forrest/build/tmp/resources.xmap
to /home/vmas/ViTables/website/forrest/build/tmp/resources.xmap.new
Loading stylesheet /opt/forrest_trunk/main/var/pluginMountSnippet.xsl
Moving 1 file to /home/vmas/ViTables/website/forrest/build/tmp

configure-plugin-locationmap:
Mounting plugin locationmap for org.apache.forrest.plugin.input.feeder
Processing /home/vmas/ViTables/website/forrest/build/tmp/locationmap.xml
to /home/vmas/ViTables/website/forrest/build/tmp/locationmap.xml.new
Loading stylesheet /opt/forrest_trunk/main/var/pluginLmMountSnippet.xsl
Moving 1 file to /home/vmas/ViTables/website/forrest/build/tmp

init:

-prepare-classpath:

check-contentdir:

examine-proj:

validation-props:
Using these catalog descriptors:
/opt/forrest_trunk/main/webapp/resources/schema/catalog.xcat:/opt/forrest_trunk/build/plugins/catalog.xcat:/home/vmas/ViTables/website/forrest/src/documentation/resources/schema/catalog.xcat

validate-xdocs:
12 file(s) have been successfully validated.
...validated xdocs

validate-skinconf:
1 file(s) have been successfully validated.
...validated skinconf

validate-sitemap:
...validated project sitemap

validate-skins-stylesheets:

validate-skins:

validate-skinchoice:
...validated existence of skin 'pelt'

validate-stylesheets:
...validated stylesheets

validate:

site:

Copying the various non-generated resources to site.
Warnings will be issued if the optional project resources are not found.
This is often the case, because they are optional and so may not be available.
Copying project resources and images to site ...
Warning: /home/vmas/ViTables/website/forrest/build/webapp/resources not found.
Copying 1 file to /home/vmas/ViTables/website/forrest/build/site
Copying main skin images to site ...
Created dir: /home/vmas/ViTables/website/forrest/build/site/skin/images
Copying 18 files to /home/vmas/ViTables/website/forrest/build/site/skin/images
Copying 14 files to /home/vmas/ViTables/website/forrest/build/site/skin/images
Copying project skin images to site ...
Warning: /home/vmas/ViTables/website/forrest/src/documentation/skins/common/images
not found.
Warning: /home/vmas/ViTables/website/forrest/src/documentation/skins/pelt/images
not found.
Copying main skin css and js files to site ...
Copying 11 files to /home/vmas/ViTables/website/forrest/build/site/skin
Copied 4 empty directories to 3 empty directories under
/home/vmas/ViTables/website/forrest/build/site/skin
Copying 4 files to /home/vmas/ViTables/website/forrest/build/site/skin
Copying project skin css and js files to site ...
Warning: /home/vmas/ViTables/website/forrest/src/documentation/skins/common
not found.
Warning: /home/vmas/ViTables/website/forrest/src/documentation/skins/pelt
not found.

Finished copying the non-generated resources.
Now Cocoon will generate the rest.


Static site will be generated at:
/home/vmas/ViTables/website/forrest/build/site

Cocoon will report the status of each document:
  - in column 1: *=okay X=brokenLink ^=pageSkipped (see FAQ).

------------------------------------------------------------------------
cocoon 2.1.12-dev
Copyright (c) 1999-2007 Apache Software Foundation. All rights reserved.
------------------------------------------------------------------------


Loading catalog:
file:/home/vmas/ViTables/website/forrest/src/documentation/resources/schema/catalog.xcat
X [0]                                     linkmap.html  BROKEN:
org.apache.forrest.dispatcher.transformation.DispatcherTransformer
Total time: 0 minutes 1 seconds,  Site size: 0 Site pages: 0
Java Result: 1

  Copying broken links file to site root.

Copying 1 file to /home/vmas/ViTables/website/forrest/build/site

BUILD FAILED
/opt/forrest_trunk/main/targets/site.xml:223: Error building site.

There appears to be a problem with your site build.

Read the output above:
* Cocoon will report the status of each document:
    - in column 1: *=okay X=brokenLink ^=pageSkipped (see FAQ).
* Even if only one link is broken, you will still get "failed".
* Your site would still be generated, but some pages would be broken.
  - See /home/vmas/ViTables/website/forrest/build/site/broken-links.xml

Total time: 6 seconds

And the broken-links.xml file contains:
<broken-links>
  <link message="org.apache.forrest.dispatcher.transformation.DispatcherTransformer">linkmap.html</link>
</broken-links>

In my website I have several contract customisations (like
siteinfo-compliance-links or
content-title.ft) and also customisations of several panel files (for instance
pelt-html.content.panel.xml or pelt-html.head.panel.xml). Could it be
that this customisations
don't work anymore after the merge of the themes.core and the
dispatcher plugins?
Would it mean that I should redo all those customisations?

TIA for your help,

Vicent
-- 
Share what you know, learn what you don't.

Mime
View raw message