Forrest
  1. Forrest
  2. FOR-1188

locationmap or sitemap path broken on Windows, multiple paths concatenated

    Details

    • Urgency:
      Urgent

      Description

      Dear all
      I was going to edit perfectly working plugin "org.apache.forrest.plugin.input.projectInfo". Before that i tried to test it using "ant test" command. Then below bug arrised. I have included "antworks-miporter.jar" and "xml-common-resolver.jar".

      Please help me

      Rajith



      D:\Projects\forrest\plugins\org.apache.forrest.plugin.input.projectInfo>ant test

      Buildfile: D:\Projects\forrest\plugins\org.apache.forrest.plugin.input.projectIn
      fo\build.xml

      init-build-compiler:

      echo-init:
           [echo]
           [echo] --------------------------------------------------------------

           [echo]
           [echo] Using Apache Ant version 1.8.0 compiled on February 1 2010
           [echo] Build file D:\Projects\forrest\plugins\org.apache.forrest.plug
      in.input.projectInfo\build.xml
           [echo] Use 'build.[sh|bat] -projecthelp' to see other options.
           [echo] Build system home C:\apache-ant-1.8.0
           [echo] Build number 12
           [echo] Project Name Forrest plugin build file
           [echo] Java Version 1.6
           [echo] Timestamp 201003311350
           [echo]
           [echo] --------------------------------------------------------------

           [echo]

      init:

      clean:
         [delete] Deleting directory D:\Projects\forrest\build\plugins\org.apache.forr
      est.plugin.input.projectInfo

      compile:

      jar:

      local-deploy:
           [echo] Locally deploying org.apache.forrest.plugin.input.projectInfo
           [copy] Copying 43 files to D:\Projects\forrest\build\plugins\org.apache.for
      rest.plugin.input.projectInfo

      build:

      docs:
           [echo] Building Docs for org.apache.forrest.plugin.input.projectInfo

      check-java-version:
           [echo] This is apache-forrest-0.8
           [echo] Using Java 1.6 from C:\Program Files\Java\jdk1.6.0_18\jre
           [echo] Using Apache Ant version 1.8.0 compiled on February 1 2010 from C:\a
      pache-ant-1.8.0

      init-props:

      echo-settings-condition:

      echo-settings:

      check-skin:

      init-proxy:

      fetch-skins-descriptors:

      fetch-skin:

      unpack-skins:

      init-skins:

      fetch-plugins-descriptors:
           [echo] Fetching plugins descriptor: http://forrest.apache.org/plugins/plugi
      ns.xml
            [get] Getting: http://forrest.apache.org/plugins/plugins.xml
            [get] To: D:\Projects\forrest\plugins\org.apache.forrest.plugin.input.proj
      ectInfo\build\tmp\plugins-1.xml
            [get] local file date : Wed Mar 24 13:38:56 IST 2010
            [get] Not modified - so not downloaded
           [echo] Fetching plugins descriptor: http://forrest.apache.org/plugins/white
      board-plugins.xml
            [get] Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml
            [get] To: D:\Projects\forrest\plugins\org.apache.forrest.plugin.input.proj
      ectInfo\build\tmp\plugins-2.xml
            [get] local file date : Thu Mar 04 15:05:34 IST 2010
            [get] Not modified - so not downloaded
           [echo] Plugin list loaded from http://forrest.apache.org/plugins/plugins.xm
      l.
           [echo] Plugin list loaded from http://forrest.apache.org/plugins/whiteboard
      -plugins.xml.

      init-plugins:
           [copy] Copying 1 file to D:\Projects\forrest\plugins\org.apache.forrest.plu
      gin.input.projectInfo\build\tmp
           [copy] Copying 1 file to D:\Projects\forrest\plugins\org.apache.forrest.plu
      gin.input.projectInfo\build\tmp
           [copy] Copying 1 file to D:\Projects\forrest\plugins\org.apache.forrest.plu
      gin.input.projectInfo\build\tmp
           [copy] Copying 1 file to D:\Projects\forrest\plugins\org.apache.forrest.plu
      gin.input.projectInfo\build\tmp
           [copy] Copying 1 file to D:\Projects\forrest\plugins\org.apache.forrest.plu
      gin.input.projectInfo\build\tmp
           [echo]
           [echo] --------------------------------------------------------------

           [echo] Installing plugin: org.apache.forrest.plugin.input.projectInfo

           [echo] --------------------------------------------------------------

           [echo]

      check-plugin:
           [echo] org.apache.forrest.plugin.input.projectInfo is available in the buil
      d dir. Trying to update it...

      init-props:

      echo-settings-condition:

      echo-settings:

      init-proxy:

      fetch-plugins-descriptors:

      fetch-plugin:
           [echo] Trying to find the description of org.apache.forrest.plugin.input.pr
      ojectInfo in the different descriptor files
           [echo] Using the descriptor file D:\Projects\forrest\plugins\org.apache.for
      rest.plugin.input.projectInfo\build\tmp\plugins-1.xml...
           [xslt] Processing D:\Projects\forrest\plugins\org.apache.forrest.plugin.inp
      ut.projectInfo\build\tmp\plugins-1.xml to D:\Projects\forrest\plugins\org.apache
      .forrest.plugin.input.projectInfo\build\tmp\pluginlist2fetchbuild.xml
           [xslt] Loading stylesheet D:\Projects\forrest\main\var\pluginlist2fetch.xsl


      fetch-local-unversioned-plugin:

      get-local:
           [echo] Trying to locally get org.apache.forrest.plugin.input.projectInfo
           [echo] Looking in local D:\Projects\forrest/plugins
           [echo] Found !

      init-build-compiler:

      echo-init:

      init:

      compile:

      jar:

      local-deploy:
           [echo] Locally deploying org.apache.forrest.plugin.input.projectInfo

      build:
           [echo] Plugin org.apache.forrest.plugin.input.projectInfo 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:
           [echo] Fetch-plugin Ok, installing !

      unpack-plugin:

      install-plugin:

      configure-plugin:

      configure-input-plugin:
           [echo] Mounting input plugin: org.apache.forrest.plugin.input.projectInfo
           [xslt] Processing D:\Projects\forrest\plugins\org.apache.forrest.plugin.inp
      ut.projectInfo\build\tmp\input.xmap to D:\Projects\forrest\plugins\org.apache.fo
      rrest.plugin.input.projectInfo\build\tmp\input.xmap.new
           [xslt] Loading stylesheet D:\Projects\forrest\main\var\pluginMountSnippet.x
      sl
           [move] Moving 1 file to D:\Projects\forrest\plugins\org.apache.forrest.plug
      in.input.projectInfo\build\tmp
           [xslt] Processing D:\Projects\forrest\plugins\org.apache.forrest.plugin.inp
      ut.projectInfo\build\tmp\resources.xmap to D:\Projects\forrest\plugins\org.apach
      e.forrest.plugin.input.projectInfo\build\tmp\resources.xmap.new
           [xslt] Loading stylesheet D:\Projects\forrest\main\var\pluginMountSnippet.x
      sl
           [move] Moving 1 file to D:\Projects\forrest\plugins\org.apache.forrest.plug
      in.input.projectInfo\build\tmp

      configure-plugin-locationmap:
           [echo] Mounting plugin locationmap for org.apache.forrest.plugin.input.proj
      ectInfo
           [xslt] Processing D:\Projects\forrest\plugins\org.apache.forrest.plugin.inp
      ut.projectInfo\build\tmp\locationmap.xml to D:\Projects\forrest\plugins\org.apac
      he.forrest.plugin.input.projectInfo\build\tmp\locationmap.xml.new
           [xslt] Loading stylesheet D:\Projects\forrest\main\var\pluginLmMountSnippet
      .xsl
           [move] Moving 1 file to D:\Projects\forrest\plugins\org.apache.forrest.plug
      in.input.projectInfo\build\tmp

      init:

      -prepare-classpath:

      check-contentdir:

      examine-proj:

      validation-props:
           [echo] Using these catalog descriptors: D:\Projects\forrest\main\webapp\res
      ources\schema\catalog.xcat;D:\Projects\forrest\build\plugins\catalog.xcat;D:\Pro
      jects\forrest\plugins\org.apache.forrest.plugin.input.projectInfo\src\documentat
      ion\resources\schema\catalog.xcat

      validate-xdocs:
      [xmlvalidate] 2 file(s) have been successfully validated.
           [echo] ...validated xdocs

      validate-skinconf:

      validate-sitemap:
           [echo] ...validated project sitemap

      validate-skins-stylesheets:

      validate-skins:

      validate-skinchoice:
           [echo] ...validated existence of skin 'pelt'

      validate-stylesheets:

      validate:

      site:
           [echo]
           [echo] Copying the various non-generated resources to site.
           [echo] Warnings will be issued if the optional project resources are not fo
      und.
           [echo] This is often the case, because they are optional and so may not be
      available.
           [echo] Copying project resources and images to site ...
           [copy] Warning: D:\Projects\forrest\plugins\org.apache.forrest.plugin.input
      .projectInfo\build\webapp\resources does not exist.
           [copy] Copying 5 files to D:\Projects\forrest\plugins\org.apache.forrest.pl
      ugin.input.projectInfo\build\site
           [echo] Copying main skin images to site ...
           [copy] Copying 18 files to D:\Projects\forrest\plugins\org.apache.forrest.p
      lugin.input.projectInfo\build\site\skin\images
           [copy] Copying 14 files to D:\Projects\forrest\plugins\org.apache.forrest.p
      lugin.input.projectInfo\build\site\skin\images
           [echo] Copying project skin images to site ...
           [copy] Warning: D:\Projects\forrest\plugins\org.apache.forrest.plugin.input
      .projectInfo\src\documentation\skins\common\images does not exist.
           [copy] Warning: D:\Projects\forrest\plugins\org.apache.forrest.plugin.input
      .projectInfo\src\documentation\skins\pelt\images does not exist.
           [echo] Copying main skin css and js files to site ...
           [copy] Copying 11 files to D:\Projects\forrest\plugins\org.apache.forrest.p
      lugin.input.projectInfo\build\site\skin
           [copy] Copying 4 files to D:\Projects\forrest\plugins\org.apache.forrest.pl
      ugin.input.projectInfo\build\site\skin
           [echo] Copying project skin css and js files to site ...
           [copy] Warning: D:\Projects\forrest\plugins\org.apache.forrest.plugin.input
      .projectInfo\src\documentation\skins\common does not exist.
           [copy] Warning: D:\Projects\forrest\plugins\org.apache.forrest.plugin.input
      .projectInfo\src\documentation\skins\pelt does not exist.
           [echo]
           [echo] Finished copying the non-generated resources.
           [echo] Now Cocoon will generate the rest.
           [echo]
           [echo]
           [echo] Static site will be generated at:
           [echo] D:\Projects\forrest\plugins\org.apache.forrest.plugin.input.projectI
      nfo\build\site
           [echo]
           [echo] Cocoon will report the status of each document:
           [echo] - in column 1: *=okay X=brokenLink ^=pageSkipped (see FAQ).
           [echo]
           [java] --------------------------------------------------------------------
      ----
           [java] cocoon 2.1.12-dev
           [java] Copyright (c) 1999-2007 Apache Software Foundation. All rights reser
      ved.
           [java] --------------------------------------------------------------------
      ----
           [java]
           [java]
           [java] ^ docs/
           [java] ^ docs/user/useCases/
           [java] ^ docs/developer/useCases/
           [java] * [1/23] [23/26] 4.985s 8.7Kb linkmap.html
           [java] X [0] index.html BROKEN:
      D:\Projects\forrest\main\webapp\.\D:\Projects\forrest\plugins\org.apache.forrest
      .plugin.input.projectInfo\build\tmp\D:\Projects\forrest\build\plugins\svnHelper.
      xmap (The filename, directory name, or volume label syntax is incorrect)
           [java] * [4/20] [0/0] 0.141s 4.0Kb skin/profile.css
           [java] * [5/32] [13/13] 0.266s 13.4Kb skin/screen.css
           [java] * [7/30] [0/0] 4.468s 16.1Kb images/project.png
           [java] X [0] docs/user/useCases/all.htm
      l BROKEN: D:\Projects\forrest\main\webapp\.\D:\Projects\forrest\plugins\or
      g.apache.forrest.plugin.input.projectInfo\build\tmp\D:\Projects\forrest\build\pl
      ugins\org.apache.forrest.plugin.input.projectInfo (The filename, directory name,
       or volume label syntax is incorrect)
           [java] * [9/28] [0/0] 0.109s 214b skin/images/rc-t-r-5-1header-2t
      ab-unselected-3tab-unselected.png
           [java] * [10/27] [0/0] 0.047s 1.3Kb skin/print.css
           [java] * [11/26] [0/0] 0.031s 316b skin/images/rc-b-r-15-1body-2me
      nu-3menu.png
           [java] X [0] docs/user/useCases/changeL
      ogFeatures.html BROKEN: D:\Projects\forrest\main\webapp\.\D:\Projects\forrest\pl
      ugins\org.apache.forrest.plugin.input.projectInfo\build\tmp\D:\Projects\forrest\
      build\plugins\org.apache.forrest.plugin.input.projectInfo (The filename, directo
      ry name, or volume label syntax is incorrect)
           [java] X [0] docs/user/useCases/useCase
      Features.html BROKEN: D:\Projects\forrest\main\webapp\.\D:\Projects\forrest\pl
      ugins\org.apache.forrest.plugin.input.projectInfo\build\tmp\D:\Projects\forrest\
      build\plugins\org.apache.forrest.plugin.input.projectInfo (The filename, directo
      ry name, or volume label syntax is incorrect)
           [java] X [0] docs/developer/useCases/ch
      angeLogFeatures.html BROKEN: D:\Projects\forrest\main\webapp\.\D:\Projects\fo
      rrest\plugins\org.apache.forrest.plugin.input.projectInfo\build\tmp\D:\Projects\
      forrest\build\plugins\org.apache.forrest.plugin.input.projectInfo (The filename,
       directory name, or volume label syntax is incorrect)
           [java] * [15/22] [0/0] 0.016s 202b skin/images/rc-t-l-5-1header-2s
      earchbox-3searchbox.png
           [java] * [16/21] [0/0] 0.015s 213b skin/images/rc-t-r-5-1header-2s
      earchbox-3searchbox.png
           [java] * [17/20] [0/0] 0.031s 202b skin/images/rc-t-l-5-1header-2t
      ab-selected-3tab-selected.png
           [java] * [20/17] [0/0] 0.031s 213b skin/images/rc-t-r-5-1header-2t
      ab-selected-3tab-selected.png
           [java] X [0] docs/developer/useCases/al
      l.html BROKEN: D:\Projects\forrest\main\webapp\.\D:\Projects\forrest\plugins\or
      g.apache.forrest.plugin.input.projectInfo\build\tmp\D:\Projects\forrest\build\pl
      ugins\org.apache.forrest.plugin.input.projectInfo (The filename, directory name,
       or volume label syntax is incorrect)
           [java] * [23/14] [0/0] 0.047s 3.2Kb skin/basic.css
           [java] * [24/13] [0/0] 0.031s 347b skin/images/rc-b-l-15-1body-2me
      nu-3menu.png
           [java] * [26/11] [0/0] 0.031s 385b skin/images/rc-t-r-15-1body-2me
      nu-3menu.png
           [java] X [0] releaseNotes_0.2-dev.html
      BROKEN: D:\Projects\forrest\main\webapp\.\D:\Projects\forrest\plugins\org.apache
      .forrest.plugin.input.projectInfo\build\tmp\D:\Projects\forrest\build\plugins\or
      g.apache.forrest.plugin.input.projectInfo (The filename, directory name, or volu
      me label syntax is incorrect)
           [java] * [29/8] [0/0] 0.031s 207b skin/images/rc-t-l-5-1header-2t
      ab-unselected-3tab-unselected.png
           [java] X [0] releaseNotes_0.1.html
      BROKEN: D:\Projects\forrest\main\webapp\.\D:\Projects\forrest\plugins\org.apache
      .forrest.plugin.input.projectInfo\build\tmp\D:\Projects\forrest\build\plugins\or
      g.apache.forrest.plugin.input.projectInfo (The filename, directory name, or volu
      me label syntax is incorrect)
           [java] X [0] changes.html BROKEN:
      D:\Projects\forrest\main\webapp\.\D:\Projects\forrest\plugins\org.apache.forrest
      .plugin.input.projectInfo\build\tmp\D:\Projects\forrest\build\plugins\org.apache
      .forrest.plugin.input.projectInfo (The filename, directory name, or volume label
       syntax is incorrect)
           [java] X [0] todo.html BROKEN: D:\Proje
      cts\forrest\main\webapp\.\D:\Projects\forrest\plugins\org.apache.forrest.plugin.
      input.projectInfo\build\tmp\D:\Projects\forrest\build\plugins\org.apache.forrest
      .plugin.input.projectInfo (The filename, directory name, or volume label syntax
      is incorrect)
           [java] * [34/3] [0/0] 0.031s 199b skin/images/rc-b-r-5-1header-2t
      ab-selected-3tab-selected.png
           [java] X [0] docs/developer/useCases/us
      eCaseFeatures.html BROKEN: D:\Projects\forrest\main\webapp\.\D:\Projects\fo
      rrest\plugins\org.apache.forrest.plugin.input.projectInfo\build\tmp\D:\Projects\
      forrest\build\plugins\org.apache.forrest.plugin.input.projectInfo (The filename,
       directory name, or volume label syntax is incorrect)
           [java] Total time: 0 minutes 17 seconds, Site size: 50,613 Site pages: 16
           [java] Java Result: 1
           [echo]
           [echo] Copying broken links file to site root.
           [echo]
           [copy] Copying 1 file to D:\Projects\forrest\plugins\org.apache.forrest.plu
      gin.input.projectInfo\build\site

      BUILD FAILED
      D:\Projects\forrest\plugins\build.xml:327: The following error occurred while ex
      ecuting this line:
      D:\Projects\forrest\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 D:\Projects\forrest\plugins\org.apache.forrest.plugin.input.projectInfo\
      build\site/broken-links.xml

      Total time: 40 seconds

        Issue Links

          Activity

          Hide
          David Crossley added a comment -
          Other related discussion around 23 Mar 2012:
          http://s.apache.org/vj
          Show
          David Crossley added a comment - Other related discussion around 23 Mar 2012: http://s.apache.org/vj
          Hide
          David Crossley added a comment -
          The related discussion now on dev list seems to be indicating that the ProjectInfo does not have the workaround applied to it as shown in FOR-1108.
          e.g. http://svn.apache.org/viewvc?view=revision&revision=734537

          Note that for some locationmaps there are multiple places for this workaround.
          Show
          David Crossley added a comment - The related discussion now on dev list seems to be indicating that the ProjectInfo does not have the workaround applied to it as shown in FOR-1108 . e.g. http://svn.apache.org/viewvc?view=revision&revision=734537 Note that for some locationmaps there are multiple places for this workaround.
          Hide
          David Crossley added a comment -
          This sounds similar to the issue (is that FOR-1108?) that arose after updating to Cocoon-2.1 version, where everything worked fine on UNIX-style systems, but this concatenation problem on Windows was later discovered. Workarounds were added to the locationmaps to provide an additional match to specifically set the path. That was way before the 0.9 release.

          Perhaps some of the other plugins do not yet have that workaround.

          It is great to hear that the problem has gone away with 0.10-dev version. It would be useful to review what changes were made after 0.9 release. IIRC there were not very many. This being fixed would mean that we could remove those confusing locationmap workarounds.
          Show
          David Crossley added a comment - This sounds similar to the issue (is that FOR-1108 ?) that arose after updating to Cocoon-2.1 version, where everything worked fine on UNIX-style systems, but this concatenation problem on Windows was later discovered. Workarounds were added to the locationmaps to provide an additional match to specifically set the path. That was way before the 0.9 release. Perhaps some of the other plugins do not yet have that workaround. It is great to hear that the problem has gone away with 0.10-dev version. It would be useful to review what changes were made after 0.9 release. IIRC there were not very many. This being fixed would mean that we could remove those confusing locationmap workarounds.
          Hide
          Sjur N. Moshagen added a comment -
          We updated the forrest installation to the latest svn, and that solved the issue. I am tempted to close this bug as solved - any thoughts?
          Show
          Sjur N. Moshagen added a comment - We updated the forrest installation to the latest svn, and that solved the issue. I am tempted to close this bug as solved - any thoughts?
          Hide
          Sjur N. Moshagen added a comment - - edited
          I am experiencing the same / a similar problem with a co-worker of mine. Forrest is working fine for me, but not for him. There are a couple of variables between our setups:

          * he is on Windows (Win7), I am on Mac (Snow Leopard/10.6)
          * he uses Forrest 9, I am using svn r1070042
          * the problem site uses dispatcher
          * the problem site has a tailored xdocs dir
          * his forrest works fine with another site using the traditional skins (pelt in this case)

          The error message he gets is:

          D:\forrest\main\webapp\D:\giellatekno\ped\build\tmp\d:\forrest\build\plugins\dataModel.xmap (The filename, directory name, or volume label syntax is incorrect)

          It seems that forrest incorrectly are concatenating three different paths:
          1) the main/webapp dir of $FORREST_HOME
          2) the project's build/tmp dir
          3) the build/plugins dir of the running forrest in $FORREST_HOME

          We are trying to update forrest to the latest svn, and will see if that helps. I'll report the (lack of) progress here.
          Show
          Sjur N. Moshagen added a comment - - edited I am experiencing the same / a similar problem with a co-worker of mine. Forrest is working fine for me, but not for him. There are a couple of variables between our setups: * he is on Windows (Win7), I am on Mac (Snow Leopard/10.6) * he uses Forrest 9, I am using svn r1070042 * the problem site uses dispatcher * the problem site has a tailored xdocs dir * his forrest works fine with another site using the traditional skins (pelt in this case) The error message he gets is: D:\forrest\main\webapp\D:\giellatekno\ped\build\tmp\d:\forrest\build\plugins\dataModel.xmap (The filename, directory name, or volume label syntax is incorrect) It seems that forrest incorrectly are concatenating three different paths: 1) the main/webapp dir of $FORREST_HOME 2) the project's build/tmp dir 3) the build/plugins dir of the running forrest in $FORREST_HOME We are trying to update forrest to the latest svn, and will see if that helps. I'll report the (lack of) progress here.
          Hide
          David Crossley added a comment -
          I do not get any problem with current trunk:

          ]$ cd $FORREST_HOME/plugins/org.apache.forrest.plugin.input.projectInfo/

          Followed the docs about testing plugins:
          http://forrest.apache.org/docs/howto/howto-buildPlugin.html#ant
          http://forrest.apache.org/docs/howto/howto-buildPlugin.html#test

          ]$ $FORREST_HOME/tools/ant/bin/ant test

          The build did succeed properly. (On both Mac OS X 10.5 with Java 1.5 and on Mac OS X 10.6 with Java 6)
          Show
          David Crossley added a comment - I do not get any problem with current trunk: ]$ cd $FORREST_HOME/plugins/org.apache.forrest.plugin.input.projectInfo/ Followed the docs about testing plugins: http://forrest.apache.org/docs/howto/howto-buildPlugin.html#ant http://forrest.apache.org/docs/howto/howto-buildPlugin.html#test ]$ $FORREST_HOME/tools/ant/bin/ant test The build did succeed properly. (On both Mac OS X 10.5 with Java 1.5 and on Mac OS X 10.6 with Java 6)
          Hide
          Jeremias Maerki added a comment -
          I'm seeing the same problem with Forrest 0.9 on the Apache FOP website.
          Show
          Jeremias Maerki added a comment - I'm seeing the same problem with Forrest 0.9 on the Apache FOP website.

            People

            • Assignee:
              Unassigned
              Reporter:
              Rajith Gunasinghe
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development