Mailing List Archive

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

I've setup forrest 0.8 and run the 'seed' and 'site' commands, but i keep
getting this
error. I'm not sure which locationmap.xml file i should be editing. Can
anybody suggest
a workaround?

Regards,

------------------------------------------------------------------------
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.375s 0b linkmap.html
org.apache.cocoon.sitemap.PatternException: Cannot get
variable 'plugin.xmap.out
put' in expression '{lm:plugin.xmap.output}'
at org.apache.cocoon.components.treeprocessor.variables.PreparedVariable
Resolver.processModule(PreparedVariableResolver.java:250)
at org.apache.cocoon.components.treeprocessor.variables.PreparedVariable
Resolver.resolve(PreparedVariableResolver.java:197)
at org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(
SelectNode.java:77)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:77)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invok
e(PipelineNode.java:155)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:77)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invo
ke(PipelinesNode.java:95)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.proc
ess(ConcreteTreeProcessor.java:292)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.proc
ess(ConcreteTreeProcessor.java:223)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(Tree
Processor.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: Una
ble to build LocationMap.
at org.apache.forrest.locationmap.LocationMapModule.loadConfiguration(Lo
cationMapModule.java:148)
at org.apache.forrest.locationmap.LocationMapModule.getLocationMap(Locat
ionMapModule.java:105)
at org.apache.forrest.locationmap.LocationMapModule.getAttribute(Locatio
nMapModule.java:203)
at org.apache.cocoon.components.treeprocessor.variables.PreparedVariable
Resolver.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(Lo
cationMapModule.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(SitemapSo
urce.java:313)
X [0] linkmap.html BROKEN: URI not found: C
annot get variable 'plugin.xmap.output' in
expression '{lm:plugin.xmap.output}'
at org.apache.cocoon.components.source.impl.SitemapSource.<init>(Sitemap
Source.java:146)
at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSour
ce(SitemapSourceFactory.java:65)
at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(C
ocoonSourceResolver.java:159)
at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(C
ocoonSourceResolver.java:189)
at org.apache.forrest.locationmap.LocationMapModule.getLocationMap(Locat
ionMapModule.java:95)
... 16 more
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\bin\build\site\en

BUILD FAILED
C:\projects\Libs\apache-forrest-0.8\main\targets\site.xml:180: Error
building si
te.

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\bin\build\site\en/broken-links.xml
Re: Cannot get variable 'plugin.xmap.output' in expression '{lm:plugin.xmap.output}' [ In reply to ]
On 17 Nov 2008, at 17:06, paul.t.oconnell@gmail.com wrote:

> Hi,
>
> I've setup forrest 0.8 and run the 'seed' and 'site' commands, but i
> keep getting this
> error. I'm not sure which locationmap.xml file i should be editing.
> Can anybody suggest
> a workaround?


Are you sure you are using 0.8? That version has been on release for a
long time and this problem (to my recollection) has not been reported
by any other users. However, SVN head currently displays this problem
on Windows.

Ross
Re: Re: Cannot get variable 'plugin.xmap.output' in expression '{lm:plugin.xmap.output}' [ In reply to ]
Hey,

I checked again but i'm very sure i've the correct 0.8 version, i took it
from here.

http://ftp.heanet.ie/mirrors/www.apache.org/dist/forrest/apache-forrest-0.8.zip

You mentioned that it might be a platform related issue on windows, do you
have
reference to any old occurances of this issue?.

Regards,
P

On Nov 18, 2008 12:38am, Ross Gardler <rgardler@apache.org> wrote:
>
>
> On 17 Nov 2008, at 17:06, paul.t.oconnell@gmail.com wrote:
>
>
>
>
> Hi,
>
>
>
> I've setup forrest 0.8 and run the 'seed' and 'site' commands, but i keep
getting this
>
> error. I'm not sure which locationmap.xml file i should be editing. Can
anybody suggest
>
> a workaround?
>
>
>
>
>
>
> Are you sure you are using 0.8? That version has been on release for a
long time and this problem (to my recollection) has not been reported by
any other users. However, SVN head currently displays this problem on
Windows.
>
>
>
> Ross
>
Re: Cannot get variable 'plugin.xmap.output' in expression '{lm:plugin.xmap.output}' [ In reply to ]
paul.t.oconnell@gmail.com wrote:
> Hey,
>
> I checked again but i'm very sure i've the correct 0.8 version, i took
> it from here.
>
> http://ftp.heanet.ie/mirrors/www.apache.org/dist/forrest/apache-forrest-0.8.zip
>
> You mentioned that it might be a platform related issue on windows, do
> you have
> reference to any old occurances of this issue?.

This issue only raised its head when we changed the version of Cocoon in
trunk. It does not affect 0.8 version. For more info on how it manifests
iteself search our issue tracker and our mailing lists (although I
already did that and only found references to the problem in SVN head so
you may not want to bother).

I've not had the opportunity to look into the problem myself so I'll not
make any wild guesses right now. But whilst we wait for someone else to
have an idea can you please tell us:

What operating system?
What version of Java? (I think 0.8 has known problems with Java 1.6)

Ross
Re: Cannot get variable 'plugin.xmap.output' in expression '{lm:plugin.xmap.output}' [ In reply to ]
Ross Gardler wrote:
> paul.t.oconnell@gmail.com wrote:
> >
> >I checked again but i'm very sure i've the correct 0.8 version, i took
> >it from here.
> >
> >http://ftp.heanet.ie/mirrors/www.apache.org/dist/forrest/apache-forrest-0.8.zip
> >
> >You mentioned that it might be a platform related issue on windows, do
> >you have reference to any old occurances of this issue?.

The issue that Ross refers to is only with the current head of
development, i.e. the svn trunk 0.9-dev, not with the 0.8 release.

> This issue only raised its head when we changed the version of Cocoon in
> trunk. It does not affect 0.8 version. For more info on how it manifests
> iteself search our issue tracker and our mailing lists (although I
> already did that and only found references to the problem in SVN head so
> you may not want to bother).
>
> I've not had the opportunity to look into the problem myself so I'll not
> make any wild guesses right now. But whilst we wait for someone else to
> have an idea can you please tell us:
>
> What operating system?
> What version of Java? (I think 0.8 has known problems with Java 1.6)

No, there is a solitary known issue with Java 6 and it is
not related to what Paul is reporting.

I downloaded a fresh release from the mirrors and
there is no problem for me. It all works as expected.

Paul could you please capture the output from
doing 'forrest seed' and then 'forrest site'.
Then create a new issue at our issue tracker
and attach that output file.
http://forrest.apache.org/issues.html

-David
Re: Re: Cannot get variable 'plugin.xmap.output' in expression '{lm:plugin.xmap.output}' [ In reply to ]
thanks for tht guys, i raised issue :
https://issues.apache.org/jira/browse/FOR-1129

On Nov 20, 2008 3:50am, David Crossley <crossley@apache.org> wrote:
> Ross Gardler wrote:
>
> > paul.t.oconnell@gmail.com wrote:
>
> > >
>
> > >I checked again but i'm very sure i've the correct 0.8 version, i took
>
> > >it from here.
>
> > >
>
> >
>http://ftp.heanet.ie/mirrors/www.apache.org/dist/forrest/apache-forrest-0.8.zip
>
> > >
>
> > >You mentioned that it might be a platform related issue on windows, do
>
> > >you have reference to any old occurances of this issue?.
>
>
>
> The issue that Ross refers to is only with the current head of
>
> development, ie the svn trunk 0.9-dev, not with the 0.8 release.
>
>
>
> > This issue only raised its head when we changed the version of Cocoon in
>
> > trunk. It does not affect 0.8 version. For more info on how it manifests
>
> > iteself search our issue tracker and our mailing lists (although I
>
> > already did that and only found references to the problem in SVN head so
>
> > you may not want to bother).
>
> >
>
> > I've not had the opportunity to look into the problem myself so I'll not
>
> > make any wild guesses right now. But whilst we wait for someone else to
>
> > have an idea can you please tell us:
>
> >
>
> > What operating system?
>
> > What version of Java? (I think 0.8 has known problems with Java 1.6)
>
>
>
> No, there is a solitary known issue with Java 6 and it is
>
> not related to what Paul is reporting.
>
>
>
> I downloaded a fresh release from the mirrors and
>
> there is no problem for me. It all works as expected.
>
>
>
> Paul could you please capture the output from
>
> doing 'forrest seed' and then 'forrest site'.
>
> Then create a new issue at our issue tracker
>
> and attach that output file.
>
> http://forrest.apache.org/issues.html
>
>
>
> -David
>
Re: Cannot get variable 'plugin.xmap.output' in expression '{lm:plugin.xmap.output}' [ In reply to ]
paul.t.oconnell wrote:
> thanks for tht guys, i raised issue :
> https://issues.apache.org/jira/browse/FOR-1129

Thanks. I reckon that i can see the problem.

When Forrest runs for the first time after installation,
it needs network access to get the up-to-date lists
of available plugins. See your FOR-1129-site.txt
around line 16, etc.

Subsequently, if you declare other plugins to be used
then Forrest will need network access to retrieve them.
Also from time-to-time use forrest while connected, so
that it can update its list of available plugins.

The error message is because it was looking for the
file called "output.xmap" which is automatically
generated. Probably missing due to the initial errors.
Forrest should be more graceful.

While searching the issue tracker, i found that there
is a Note about this on our home page.
http://forrest.apache.org/#Explanation+and+features
We should add that to Forrest "getting started" instructions.

-David