Forrest
  1. Forrest
  2. FOR-1129

Cannot get variable 'plugin.xmap.output' in expression '{lm:plugin.xmap.output}'

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.8
    • Fix Version/s: None
    • Component/s: Core operations
    • Labels:
      None
    • Urgency:
      Normal

      Description

      I extracted forrest 0.8 on windows xp, and ran the 'site' and 'seed' operations using the java 1.5.0_12 jre. I expectrd a default site to be created, but got the following error. After posting to the forrest mail group, it was recommended that i raise an issue.
      1. site.txt
        10 kB
        Paul O'Connell
      2. seed.txt
        2 kB
        Paul O'Connell

        Activity

        Paul O'Connell created issue -
        Paul O'Connell made changes -
        Field Original Value New Value
        Attachment site.txt [ 12394342 ]
        Attachment seed.txt [ 12394341 ]
        David Crossley made changes -
        Description I extracted forrest 0.8 on windows xp, and ran the 'site' and 'seed' operations using the java 1.5.0_12 jre. I expectrd a default site to be created, but got the following error. After posting to the forrest mail group, it was recommended that i raise an issue.

        Regards,

        -------------------------------------

        Seed operation

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


        Buildfile: C:\projects\Libs\apache-forrest-0.8\bin\..\main\forrest.build.xml

        seed:
        Copying 80 files to C:\projects\Libs\apache-forrest-0.8\sites\java5
        Copied 18 empty directories to 2 empty directories under C:\projects\Libs\apache-forrest-0.8\sites\java5

        -------------------------------
        ~~ Template project created! ~~

        Here is an outline of the generated files:

        / # C:\projects\Libs\apache-forrest-0.8\sites\java5
        /forrest.properties # Optional file describing your site layout
        /src/documentation/ # Doc-specific files
        /src/documentation/skinconf.xml # Info about your project used by the skin
        /src/documentation/content # Site content.
        /src/documentation/content/xdocs # XML content.
        /src/documentation/content/xdocs/index.xml # Home page
        /src/documentation/content/xdocs/site.xml # Navigation file for site structure
        /src/documentation/content/xdocs/tabs.xml # Skin-specific 'tabs' file.
        /src/documentation/content/xdocs/*.html,pdf # Static content files, may have subdirs
        /src/documentation/resources/images # Project images (logos, etc)
        # you can create other directories as needed (see forrest.properties)


        What to do now?

        - Render this template to static HTML by typing 'forrest'.
          View the generated HTML in a browser to make sure everything works.
        - Alternatively 'forrest run' and browse to http://localhost:8888/ live demo.
        - Start adding content in xdocs/ remembering to declare new files in site.xml
        - Follow the document http://forrest.apache.org/docs/your-project.html
        - Provide any feedback to dev@forrest.apache.org

        Thanks for using Apache Forrest
        -------------------------------


        BUILD SUCCESSFUL
        Total time: 2 seconds


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


        Buildfile: C:\projects\Libs\apache-forrest-0.8\bin\..\main\forrest.build.xml

        check-java-version:
        This is apache-forrest-0.8
        Using Java 1.5 from p:\javasoft\jdk\1.5.0_12\jre

        fetch-plugins-descriptors:
        Fetching plugins descriptor: http://forrest.apache.org/plugins/plugins.xml
        Getting: http://forrest.apache.org/plugins/plugins.xml
        To: C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp\plugins-1.xml
        local file date : Sun Apr 15 13:42:28 BST 2007
        Error getting http://forrest.apache.org/plugins/plugins.xml to C:\projects\Libs\apache-forrest-0.8\sites\java5\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: C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp\plugins-2.xml
        local file date : Sun Apr 15 13:42:28 BST 2007
        Error getting http://forrest.apache.org/plugins/whiteboard-plugins.xml to C:\projects\Libs\apache-forrest-0.8\sites\java5\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:
        Copying 1 file to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp
        Copying 1 file to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp
        Copying 1 file to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp
        Copying 1 file to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp
        Copying 1 file to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp

              --------------------------------------------------------------
              Installing plugin: org.apache.forrest.plugin.output.pdf
              --------------------------------------------------------------
               

        check-plugin:
        org.apache.forrest.plugin.output.pdf is available in the build dir. Trying to update it...

        fetch-plugin:
        Trying to find the description of org.apache.forrest.plugin.output.pdf in the different descriptor files
        Using the descriptor file C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp\plugins-1.xml...
        Processing C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp\plugins-1.xml to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp\pluginlist2fetchbuild.xml
        Loading stylesheet C:\projects\Libs\apache-forrest-0.8\main\var\pluginlist2fetch.xsl

        get-local:
        Trying to locally get org.apache.forrest.plugin.output.pdf
        Looking in local C:\projects\Libs\apache-forrest-0.8/plugins
        Found !

        local-deploy:
        Locally deploying org.apache.forrest.plugin.output.pdf
        Plugin org.apache.forrest.plugin.output.pdf deployed ! Ready to configure
        Fetch-plugin Ok, installing !

        configure-output-plugin:
        Mounting output plugin: org.apache.forrest.plugin.output.pdf
        Processing C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp\output.xmap to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp\output.xmap.new
        Loading stylesheet C:\projects\Libs\apache-forrest-0.8\main\var\pluginMountSnippet.xsl
        Moving 1 file to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp

        configure-plugin-locationmap:
        Mounting plugin locationmap for org.apache.forrest.plugin.output.pdf
        Processing C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp\locationmap.xml to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp\locationmap.xml.new
        Loading stylesheet C:\projects\Libs\apache-forrest-0.8\main\var\pluginLmMountSnippet.xsl
        Moving 1 file to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\tmp

        validate-xdocs:
        ...validated xdocs

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

        validate-sitemap:
        ...validated project sitemap

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

        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: C:\projects\Libs\apache-forrest-0.8\sites\java5\build\webapp\resources not found.
        Copying 2 files to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\site\en
        Copying main skin images to site ...
        Created dir: C:\projects\Libs\apache-forrest-0.8\sites\java5\build\site\en\skin\images
        Copying 18 files to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\site\en\skin\images
        Copying 14 files to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\site\en\skin\images
        Copying project skin images to site ...
        Warning: C:\projects\Libs\apache-forrest-0.8\sites\java5\src\documentation\skins\common\images not found.
        Warning: C:\projects\Libs\apache-forrest-0.8\sites\java5\src\documentation\skins\pelt\images not found.
        Copying main skin css and js files to site ...
        Copying 11 files to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\site\en\skin
        Copied 4 empty directories to 3 empty directories under C:\projects\Libs\apache-forrest-0.8\sites\java5\build\site\en\skin
        Copying 4 files to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\site\en\skin
        Copying project skin css and js files to site ...
        Warning: C:\projects\Libs\apache-forrest-0.8\sites\java5\src\documentation\skins\common not found.
        Warning: C:\projects\Libs\apache-forrest-0.8\sites\java5\src\documentation\skins\pelt not found.

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

        Static site will be generated at:
        C:\projects\Libs\apache-forrest-0.8\sites\java5\build\site\en

        Cocoon will report the status of each document:
          - in column 1: *=okay X=brokenLink ^=pageSkipped (see FAQ).
          
        ------------------------------------------------------------------------
        cocoon 2.2.0-dev
        Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
        Build: December 8 2005 (TargetVM=1.4, SourceVM=1.4, Debug=on, Optimize=on)
        ------------------------------------------------------------------------
        * [1/0] [0/0] 0.406s 0b linkmap.html
        org.apache.cocoon.sitemap.PatternException: Cannot get variable 'plugin.xmap.output' in expression '{lm:plugin.xmap.output}'
        at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.processModule(PreparedVariableResolver.java:250)
        at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:197)
        at org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:77)
        at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
        at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:155)
        at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
        at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:95)
        at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:292)
        at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:223)
        at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:557)
        at org.apache.cocoon.bean.CocoonWrapper.getPage(CocoonWrapper.java:426)
        at org.apache.cocoon.bean.CocoonBean.processTarget(CocoonBean.java:496)
        at org.apache.cocoon.bean.CocoonBean.process(CocoonBean.java:357)
        at org.apache.cocoon.Main.main(Main.java:311)
        Caused by: org.apache.avalon.framework.configuration.ConfigurationException: Unable to build LocationMap.
        at org.apache.forrest.locationmap.LocationMapModule.loadConfiguration(LocationMapModule.java:148)
        at org.apache.forrest.locationmap.LocationMapModule.getLocationMap(LocationMapModule.java:105)
        at org.apache.forrest.locationmap.LocationMapModule.getAttribute(LocationMapModule.java:203)
        at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.processModule(PreparedVariableResolver.java:246)
        ... 14 more
        Caused by: org.apache.excalibur.source.SourceException: Cannot get input stream for cocoon://locationmap.xml
        at org.apache.cocoon.components.source.impl.SitemapSource.getInputStream(SitemapSource.java:184)
        at org.apache.forrest.locationmap.LocationMapModule.loadConfiguration(LocationMapModule.java:144)
        ... 17 more
        Caused by: org.apache.cocoon.ResourceNotFoundException: Resource not found.
        at <map:mount> - file:/C:/projects/Libs/apache-forrest-0.8/main/webapp/./sitemap.xmap:402:72
        at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:313)
        at org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:146)
        at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:65)
        at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:159)
        at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:189)
        at org.apache.forrest.locationmap.LocationMapModule.getLocationMap(LocationMapModule.java:95)
        ... 16 more
        X [0] linkmap.html BROKEN: URI not found: Cannot get variable 'plugin.xmap.output' in expression '{lm:plugin.xmap.output}'
        Total time: 0 minutes 4 seconds, Site size: 0 Site pages: 1
        Java Result: 1

          Copying broken links file to site root.
              
        Copying 1 file to C:\projects\Libs\apache-forrest-0.8\sites\java5\build\site\en

        BUILD FAILED
        C:\projects\Libs\apache-forrest-0.8\main\targets\site.xml:180: 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 C:\projects\Libs\apache-forrest-0.8\sites\java5\build\site\en/broken-links.xml

        Total time: 50 seconds
        I extracted forrest 0.8 on windows xp, and ran the 'site' and 'seed' operations using the java 1.5.0_12 jre. I expectrd a default site to be created, but got the following error. After posting to the forrest mail group, it was recommended that i raise an issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Paul O'Connell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development