Tim Williams wrote: > On 2/15/06, Johannes Schaefer <[EMAIL PROTECTED]> wrote: >> Johannes Schaefer wrote: >>> Hi! >>> >>> I resolved trying 'forrest webapp' to get forrest running as a >>> Windows service and running it in tomcat. >>> >>> This is not a well-documented feature, e.g. I'm not sure about the >>> differences between 'webapp', webapp-local' and 'war' options. >>> >>> To get it running, using forrest-0.7-377981: >>> >>> 1. Adapt web.xml, see http://tinyurl.com/cn5ep (Mail archive) >>> >>> Now Forrest runs and produces some output but *not a single* >>> plugin works: >>> output.pdf, input.sdocbook, input.excel, input.projectInfo >>> >>> 2. Copy Forrest/build/plugins into the webapp dir and change >>> the plugins entry in >>> in webapps\my-project\WEB-INF\xconf\forrest-core.xconf >>> to >>> <plugins>@context.home@/plugins</plugins> >>> as described in http://issues.apache.org/jira/browse/FOR-403 >>> (which is marked as fixed). >>> >>> This seems to work using Forrest-0.7-latest. >>> >>> I also tried Forrest-HEAD (r377981) but 'forrest webapp' seems >>> to be broken: it looks for tab2menu.xsl instead for the renamed >>> tab-to-menu.xsl; 'forrest run' works fine. >> sorry, this is wrong; it works except the plugins as in 0.7. >> after performing steps 1 and 2, but it still doesn't work due >> to some location-map thing?! >> Could not find ... >> [org.apache.cocoon.components.modules.input.InputModule/lm] > > Someone else just had a similar problem and it turned out being due to > using the wrong version of the plugin. Plugins have been modified at > this point to use the new locationmap feature but this wasn't > supported in 0.7. You might want to recheck what version of each > plugin you're using.
I did 'svn up' (r376952) and copied *HEAD* "/build/plugins" to avoid this. Now I first deleted this directory, did 'forrest run' which installs the plugins from the local source (should be up-to-date) and then copied the directory. The error message is the same. Internal Server Error Message: null Description: No details available. Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet Request URI: index.html cause: Could not find component for role: [org.apache.cocoon.components.modules.input.InputModule/lm] (Key='org.apache.cocoon.components.modules.input.InputModule/lm') request-uri: /my-project/index.html Apache Cocoon 2.2.0-dev For the plugin-loading process, see output below. These are the plugins I use: >>> output.pdf, input.sdocbook, input.excel, input.projectInfo project.required.plugins=org.apache.forrest.plugin.output.pdf,org.apache.forrest.plugin.input.simplifiedDocbook,org.apache.forrest.plugin.input.excel,org.apache.forrest.plugin.input.projectInfo All of them seem to be unversioned and forrest does a 'local-deploy'. Do I need to put a version number somewhere? I remember I've read something about this in a thread ... Johannes > --tim > C:\home\jschaefer\Projekte\my-project\Styleguide>c:\home\Forrest\forrest-HEAD\bin\forrest run Apache Forrest. Run 'forrest -projecthelp' to list options Buildfile: c:\home\Forrest\forrest-HEAD\bin\..\main\forrest.build.xml check-java-version: This is apache-forrest-0.8-dev Using Java 1.5 from C:\Programme\Java\jdk1.5.0_03\jre init-plugins: Created dir: C:\home\Forrest\forrest-HEAD\build\plugins Copying 1 file to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Copying 1 file to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Copying 1 file to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Copying 1 file to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Copying 1 file to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Installing plugin: org.apache.forrest.plugin.output.pdf check-plugin: org.apache.forrest.plugin.output.pdf is not available in the build dir fetch-plugins-descriptors: Deleting 2 files from C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Fetching plugins descriptor: http://forrest.apache.org/plugins/plugins.xml Getting: http://forrest.apache.org/plugins/plugins.xml . last modified = Sat Feb 11 08:07:04 CET 2006 Fetching plugins descriptor: http://forrest.apache.org/plugins/whiteboard-plugins.xml Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml .. last modified = Sat Feb 11 09:07:06 CET 2006 Plugin list loaded from http://forrest.apache.org/plugins/plugins.xml. Plugin list loaded from http://forrest.apache.org/plugins/whiteboard-plugins.xml. fetch-plugin: Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\plugins-1.xml to C:\home\jschaefer\Projekte\my-project\Sty leguide\build\tmp\pluginlist2fetchbuild.xml Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginlist2fetch.xsl fetch-unversioned-plugin: Versioned plugin unavailable, trying to get versionless plugin... Looking in local plugins src... init: -------------------------------------------------------------- Using Apache Ant version 1.6.2 compiled on July 16 2004 Build file C:\home\Forrest\forrest-HEAD\plugins\org.apache.forrest.plugin.output.pdf\build.xml Use 'build.[sh|bat] -projecthelp' to see other options. Build system home c:\home\Forrest\forrest-HEAD\bin\\..\tools\ant Build number 3 Project Name Forrest plugin build file Java Version 1.5 Timestamp 200602151303 -------------------------------------------------------------- local-deploy: Locally deploying org.apache.forrest.plugin.output.pdf Copying 16 files to C:\home\Forrest\forrest-HEAD\build\plugins\org.apache.forrest.plugin.output.pdf Copied 8 empty directories to 1 empty directory under C:\home\Forrest\forrest-HEAD\build\plugins\org.apache.forrest.plugin.outpu t.pdf Copying 1 file to C:\home\Forrest\forrest-HEAD\build\plugins Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\plugins-2.xml to C:\home\jschaefer\Projekte\my-project\Sty leguide\build\tmp\pluginlist2fetchbuild.xml Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginlist2fetch.xsl configure-output-plugin: Mounting output plugin: org.apache.forrest.plugin.output.pdf Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\output.xmap to C:\home\jschaefer\Projekte\my-project\Style guide\build\tmp\output.xmap.new Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginMountSnippet.xsl Moving 1 files to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp configure-plugin-locationmap: Mounting plugin locationmap for org.apache.forrest.plugin.output.pdf Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\locationmap.xml to C:\home\jschaefer\Projekte\my-project\S tyleguide\build\tmp\locationmap.xml.new Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginLmMountSnippet.xsl Moving 1 files to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Installing plugin: org.apache.forrest.plugin.input.simplifiedDocbook check-plugin: org.apache.forrest.plugin.input.simplifiedDocbook is not available in the build dir fetch-plugins-descriptors: Deleting 2 files from C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Fetching plugins descriptor: http://forrest.apache.org/plugins/plugins.xml Getting: http://forrest.apache.org/plugins/plugins.xml .. last modified = Sat Feb 11 08:07:04 CET 2006 Fetching plugins descriptor: http://forrest.apache.org/plugins/whiteboard-plugins.xml Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml .. last modified = Sat Feb 11 09:07:06 CET 2006 Plugin list loaded from http://forrest.apache.org/plugins/plugins.xml. Plugin list loaded from http://forrest.apache.org/plugins/whiteboard-plugins.xml. fetch-plugin: Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\plugins-1.xml to C:\home\jschaefer\Projekte\my-project\Sty leguide\build\tmp\pluginlist2fetchbuild.xml Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginlist2fetch.xsl fetch-unversioned-plugin: Versioned plugin unavailable, trying to get versionless plugin... Looking in local plugins src... init: -------------------------------------------------------------- Using Apache Ant version 1.6.2 compiled on July 16 2004 Build file C:\home\Forrest\forrest-HEAD\plugins\org.apache.forrest.plugin.input.simplifiedDocbook\build.xml Use 'build.[sh|bat] -projecthelp' to see other options. Build system home c:\home\Forrest\forrest-HEAD\bin\\..\tools\ant Build number 9 Project Name Forrest plugin build file Java Version 1.5 Timestamp 200602151303 -------------------------------------------------------------- local-deploy: Locally deploying org.apache.forrest.plugin.input.simplifiedDocbook Copying 34 files to C:\home\Forrest\forrest-HEAD\build\plugins\org.apache.forrest.plugin.input.simplifiedDocbook Copied 11 empty directories to 1 empty directory under C:\home\Forrest\forrest-HEAD\build\plugins\org.apache.forrest.plugin.inpu t.simplifiedDocbook Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\plugins-2.xml to C:\home\jschaefer\Projekte\my-project\Sty leguide\build\tmp\pluginlist2fetchbuild.xml Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginlist2fetch.xsl configure-input-plugin: Mounting input plugin: org.apache.forrest.plugin.input.simplifiedDocbook Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\input.xmap to C:\home\jschaefer\Projekte\my-project\Styleg uide\build\tmp\input.xmap.new Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginMountSnippet.xsl Moving 1 files to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\resources.xmap to C:\home\jschaefer\Projekte\my-project\St yleguide\build\tmp\resources.xmap.new Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginMountSnippet.xsl Moving 1 files to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp configure-plugin-locationmap: Mounting plugin locationmap for org.apache.forrest.plugin.input.simplifiedDocbook Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\locationmap.xml to C:\home\jschaefer\Projekte\my-project\S tyleguide\build\tmp\locationmap.xml.new Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginLmMountSnippet.xsl Moving 1 files to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Installing plugin: org.apache.forrest.plugin.input.excel check-plugin: org.apache.forrest.plugin.input.excel is not available in the build dir fetch-plugins-descriptors: Deleting 2 files from C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Fetching plugins descriptor: http://forrest.apache.org/plugins/plugins.xml Getting: http://forrest.apache.org/plugins/plugins.xml .. last modified = Sat Feb 11 08:07:04 CET 2006 Fetching plugins descriptor: http://forrest.apache.org/plugins/whiteboard-plugins.xml Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml .. last modified = Sat Feb 11 09:07:06 CET 2006 Plugin list loaded from http://forrest.apache.org/plugins/plugins.xml. Plugin list loaded from http://forrest.apache.org/plugins/whiteboard-plugins.xml. fetch-plugin: Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\plugins-1.xml to C:\home\jschaefer\Projekte\my-project\Sty leguide\build\tmp\pluginlist2fetchbuild.xml Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginlist2fetch.xsl fetch-unversioned-plugin: Versioned plugin unavailable, trying to get versionless plugin... Looking in local plugins src... init: -------------------------------------------------------------- Using Apache Ant version 1.6.2 compiled on July 16 2004 Build file C:\home\Forrest\forrest-HEAD\plugins\org.apache.forrest.plugin.input.excel\build.xml Use 'build.[sh|bat] -projecthelp' to see other options. Build system home c:\home\Forrest\forrest-HEAD\bin\\..\tools\ant Build number 2 Project Name Forrest plugin build file Java Version 1.5 Timestamp 200602151303 -------------------------------------------------------------- local-deploy: Locally deploying org.apache.forrest.plugin.input.excel Copying 26 files to C:\home\Forrest\forrest-HEAD\build\plugins\org.apache.forrest.plugin.input.excel Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\plugins-2.xml to C:\home\jschaefer\Projekte\my-project\Sty leguide\build\tmp\pluginlist2fetchbuild.xml Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginlist2fetch.xsl configure-input-plugin: Mounting input plugin: org.apache.forrest.plugin.input.excel Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\input.xmap to C:\home\jschaefer\Projekte\my-project\Styleg uide\build\tmp\input.xmap.new Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginMountSnippet.xsl Moving 1 files to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\resources.xmap to C:\home\jschaefer\Projekte\my-project\St yleguide\build\tmp\resources.xmap.new Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginMountSnippet.xsl Moving 1 files to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp configure-plugin-locationmap: Mounting plugin locationmap for org.apache.forrest.plugin.input.excel Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\locationmap.xml to C:\home\jschaefer\Projekte\my-project\S tyleguide\build\tmp\locationmap.xml.new Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginLmMountSnippet.xsl Moving 1 files to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Installing plugin: org.apache.forrest.plugin.input.projectInfo check-plugin: org.apache.forrest.plugin.input.projectInfo is not available in the build dir fetch-plugins-descriptors: Deleting 2 files from C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Fetching plugins descriptor: http://forrest.apache.org/plugins/plugins.xml Getting: http://forrest.apache.org/plugins/plugins.xml .. last modified = Sat Feb 11 08:07:04 CET 2006 Fetching plugins descriptor: http://forrest.apache.org/plugins/whiteboard-plugins.xml Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml .. last modified = Sat Feb 11 09:07:06 CET 2006 Plugin list loaded from http://forrest.apache.org/plugins/plugins.xml. Plugin list loaded from http://forrest.apache.org/plugins/whiteboard-plugins.xml. fetch-plugin: Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\plugins-1.xml to C:\home\jschaefer\Projekte\my-project\Sty leguide\build\tmp\pluginlist2fetchbuild.xml Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginlist2fetch.xsl fetch-unversioned-plugin: Versioned plugin unavailable, trying to get versionless plugin... Looking in local plugins src... init: -------------------------------------------------------------- Using Apache Ant version 1.6.2 compiled on July 16 2004 Build file C:\home\Forrest\forrest-HEAD\plugins\org.apache.forrest.plugin.input.projectInfo\build.xml Use 'build.[sh|bat] -projecthelp' to see other options. Build system home c:\home\Forrest\forrest-HEAD\bin\\..\tools\ant Build number 2 Project Name Forrest plugin build file Java Version 1.5 Timestamp 200602151303 -------------------------------------------------------------- local-deploy: Locally deploying org.apache.forrest.plugin.input.projectInfo Copying 32 files to C:\home\Forrest\forrest-HEAD\build\plugins\org.apache.forrest.plugin.input.projectInfo Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\plugins-2.xml to C:\home\jschaefer\Projekte\my-project\Sty leguide\build\tmp\pluginlist2fetchbuild.xml Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginlist2fetch.xsl configure-input-plugin: Mounting input plugin: org.apache.forrest.plugin.input.projectInfo Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\input.xmap to C:\home\jschaefer\Projekte\my-project\Styleg uide\build\tmp\input.xmap.new Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginMountSnippet.xsl Moving 1 files to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\resources.xmap to C:\home\jschaefer\Projekte\my-project\St yleguide\build\tmp\resources.xmap.new Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginMountSnippet.xsl Moving 1 files to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp configure-plugin-locationmap: Mounting plugin locationmap for org.apache.forrest.plugin.input.projectInfo Processing C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp\locationmap.xml to C:\home\jschaefer\Projekte\my-project\S tyleguide\build\tmp\locationmap.xml.new Loading stylesheet C:\home\Forrest\forrest-HEAD\main\var\pluginLmMountSnippet.xsl Moving 1 files to C:\home\jschaefer\Projekte\my-project\Styleguide\build\tmp run_default_jetty: Note: Use Ctrl-C to stop the Jetty server ... and reply 'n' and press [Enter] when asked about aborting the batch! 13:03:46.562 EVENT Checking Resource aliases 13:03:46.828 EVENT Starting Jetty/4.2.19 13:03:46.937 EVENT Started WebApplicationContext[/,Apache Forrest] 13:03:46.984 EVENT Initializing Apache Cocoon 2.2.0-dev 13:03:47.015 EVENT Running in mode: dev 13:03:47.046 WARN!! Delete existing temp dir C:\DOKUME~1\JSCHAE~1\LOKALE~1\Temp\Jetty__8888__ for WebApplicationContext[/,Apache Forrest] Cannot find CatalogManager.properties 13:03:48.093 EVENT Apache Cocoon 2.2.0-dev is up and ready. 13:03:48.109 EVENT Started SocketListener on 0.0.0.0:8888 13:03:48.109 EVENT Started [EMAIL PROTECTED] -- User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg Fon +49 (0)7141 377 000 * Fax +49 (0)7141 377 00-99 Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * D-81825 München www.uidesign.de Buch "User Interface Tuning" von Joachim Machate & Michael Burmester www.user-interface-tuning.de