You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Cyriaque Dupoirieux <Cy...@pcotech.fr> on 2005/10/13 15:25:12 UTC

[Pelt with Structurer]

Thorsten,

    Can you tell me what I can do to make the pelt theme work again.

You wrote for Revision: *320710 :
*

HEADSUP: I did not updated the pelt theme yet! This theme will be broken till I changed the nugget contracts and the forrest:call-templates.


-- 

Salutations,
Cyriaque,


Re: [Pelt with Structurer]

Posted by Thorsten Scherler <th...@apache.org>.
El jue, 13-10-2005 a las 18:25 +0200, Cyriaque Dupoirieux escribió:
> Thorsten Scherler a écrit :
> 
> >El jue, 13-10-2005 a las 18:06 +0200, Cyriaque Dupoirieux escribió:
> >  
> >
> >>>http://issues.apache.org/jira/browse/FOR-675
> >>>
> >>>"forrest site" is *not* working in views v2! That is above issue. If you
> >>>want to export the site with views you need to use v1.
> >>> 
> >>>
> >>>      
> >>>
> >>I know this, but it was wrong before your last update changing <url> 
> >>tags into <jx:import...
> >>    
> >>
> >
> >¿? It was working before? Actually that would really surprise me.
> >  
> >
> indeed,
> 
> >  
> >
> >>I have been working on my site since the begining of this week without 
> >>much problem - I replaced the commons-jxpath-20030909.jar by 
> >>commons-jxpath-1.2.jar, and I can't generate anymore for two or three 
> >>ours...
> >>    
> >>
> >
> >You mean before my commit you could generate your site with the
> >structurer? Is forrest run working for you?
> >  
> >
> Now, neither forrest run nor forrest site is working.
> Before, forrest site was working, with few errors because of the 
> ProjectInfo plugin - the Oo.org plugin was working well also !
> I can't give you the proof because I have deleted my build directory :-( .
> 
> You can see in the past days that I have updated some pelt templates in 
> the Themes and also updated the pelt.fv when it was in the structurer...

Yeah I saw. 

Do you have deployed and build?

I just tried again and cannot reproduce the error. What is the exact
error for forrest run?

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re: [Pelt with Structurer]

Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
Thorsten Scherler a écrit :

>El jue, 13-10-2005 a las 18:06 +0200, Cyriaque Dupoirieux escribió:
>  
>
>>>http://issues.apache.org/jira/browse/FOR-675
>>>
>>>"forrest site" is *not* working in views v2! That is above issue. If you
>>>want to export the site with views you need to use v1.
>>> 
>>>
>>>      
>>>
>>I know this, but it was wrong before your last update changing <url> 
>>tags into <jx:import...
>>    
>>
>
>¿? It was working before? Actually that would really surprise me.
>  
>
indeed,

>  
>
>>I have been working on my site since the begining of this week without 
>>much problem - I replaced the commons-jxpath-20030909.jar by 
>>commons-jxpath-1.2.jar, and I can't generate anymore for two or three 
>>ours...
>>    
>>
>
>You mean before my commit you could generate your site with the
>structurer? Is forrest run working for you?
>  
>
Now, neither forrest run nor forrest site is working.
Before, forrest site was working, with few errors because of the 
ProjectInfo plugin - the Oo.org plugin was working well also !
I can't give you the proof because I have deleted my build directory :-( .

You can see in the past days that I have updated some pelt templates in 
the Themes and also updated the pelt.fv when it was in the structurer...

Cyriaque,

>salu2
>  
>

Re: [Pelt with Structurer]

Posted by Thorsten Scherler <th...@apache.org>.
El jue, 13-10-2005 a las 18:06 +0200, Cyriaque Dupoirieux escribió:
> >
> >http://issues.apache.org/jira/browse/FOR-675
> >
> >"forrest site" is *not* working in views v2! That is above issue. If you
> >want to export the site with views you need to use v1.
> >  
> >
> I know this, but it was wrong before your last update changing <url> 
> tags into <jx:import...

¿? It was working before? Actually that would really surprise me.

> I have been working on my site since the begining of this week without 
> much problem - I replaced the commons-jxpath-20030909.jar by 
> commons-jxpath-1.2.jar, and I can't generate anymore for two or three 
> ours...

You mean before my commit you could generate your site with the
structurer? Is forrest run working for you?

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re: [Pelt with Structurer]

Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
Thorsten Scherler a écrit :

>...
>  
>
>>D:\duc\stdViews>forrest
>>
>>Apache Forrest.  Run 'forrest -projecthelp' to list options
>>...
>>check-java-version:
>>This is apache-forrest-0.8-dev
>>Using Java 1.4 from C:\j2sdk1.4.1_02\jre
>>...
>>validate-skinchoice:
>>validated existence of skin 'leather-dev'
>>
>>site:
>>...
>>Note that there are various reasons for "build failed" messages.
>>* 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.
>>* Please check the file:
>>D:\duc\stdViews\build\tmp\brokenlinks.xml
>>for any broken links in the generated site.
>>------------------------------------------------------------------------
>>cocoon 2.2.0-dev
>>Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
>>Build: September 19 2005 (TargetVM=1.4, SourceVM=1.3, Debug=on, Optimize=on)
>>------------------------------------------------------------------------
>>X [0]                                     linkmap.html  BROKEN: 
>>D:\duc\forrest\build\plugins\org.apache.forrest.plugin.internal.structurer\linkmap.xma
>>p (Le fichier spÚcifiÚ est introuvable)
>>Total time: 0 minutes 2 seconds,  Site size: 0 Site pages: 0
>>
>>BUILD FAILED
>>D:\duc\forrest\main\targets\site.xml:41: Java returned: 1
>>
>>Total time: 23 seconds
>>    
>>
>
>http://issues.apache.org/jira/browse/FOR-675
>
>"forrest site" is *not* working in views v2! That is above issue. If you
>want to export the site with views you need to use v1.
>  
>
I know this, but it was wrong before your last update changing <url> 
tags into <jx:import...
I have been working on my site since the begining of this week without 
much problem - I replaced the commons-jxpath-20030909.jar by 
commons-jxpath-1.2.jar, and I can't generate anymore for two or three 
ours...

Cyriaque

>In forrest run the link rewritting is not working either but you will
>see the site.
>
>HTH
>  
>

Re: [Pelt with Structurer]

Posted by Thorsten Scherler <th...@apache.org>.
...
> 
> D:\duc\stdViews>forrest
> 
> Apache Forrest.  Run 'forrest -projecthelp' to list options
> ...
> check-java-version:
> This is apache-forrest-0.8-dev
> Using Java 1.4 from C:\j2sdk1.4.1_02\jre
> ...
> validate-skinchoice:
> validated existence of skin 'leather-dev'
> 
> site:
> ...
> Note that there are various reasons for "build failed" messages.
> * 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.
> * Please check the file:
> D:\duc\stdViews\build\tmp\brokenlinks.xml
> for any broken links in the generated site.
> ------------------------------------------------------------------------
> cocoon 2.2.0-dev
> Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
> Build: September 19 2005 (TargetVM=1.4, SourceVM=1.3, Debug=on, Optimize=on)
> ------------------------------------------------------------------------
> X [0]                                     linkmap.html  BROKEN: 
> D:\duc\forrest\build\plugins\org.apache.forrest.plugin.internal.structurer\linkmap.xma
> p (Le fichier spÚcifiÚ est introuvable)
> Total time: 0 minutes 2 seconds,  Site size: 0 Site pages: 0
> 
> BUILD FAILED
> D:\duc\forrest\main\targets\site.xml:41: Java returned: 1
> 
> Total time: 23 seconds

http://issues.apache.org/jira/browse/FOR-675

"forrest site" is *not* working in views v2! That is above issue. If you
want to export the site with views you need to use v1.

In forrest run the link rewritting is not working either but you will
see the site.

HTH
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re: [Pelt with Structurer]

Posted by Thorsten Scherler <th...@apache.org>.
El vie, 14-10-2005 a las 17:51 +1000, David Crossley escribió:
> Cyriaque Dupoirieux wrote:
> > David Crossley a ?crit :
> > >
> > >It was more obscure in 'forrest run' mode:
> > >index.html ... resource not found,
> > >but WEB-INF/logs showed a similar error.
> >
> > Exact, I have the same...
> 
> Does it now work for you after today's
> 'svn update'? I made the change below.
> 
> -David
> 
> > >Today i made a hack to ... structure/internal.xmap
> > >to stop looking for linkmap.xmap
> > >
> > >Thorsten, perhaps there was a file missing from your
> > >recent commit.

Thanks David, well spotted. 

I thought I comment that out, because the linkmap only can be used if
the jxpath bug is solved. Anyway I will commit this file now.
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re: [Pelt with Structurer]

Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
David Crossley a écrit :

>Cyriaque Dupoirieux wrote:
>  
>
>>David Crossley a ?crit :
>>    
>>
>>>It was more obscure in 'forrest run' mode:
>>>index.html ... resource not found,
>>>but WEB-INF/logs showed a similar error.
>>>      
>>>
>>Exact, I have the same...
>>    
>>
>
>Does it now work for you after today's
>'svn update'? I made the change below.
>  
>
Yes it works - Still some problem of site:error rewritten links but I 
had the same before.
Thanks,
Cyriaque,

>-David
>
>  
>
>>>Today i made a hack to ... structure/internal.xmap
>>>to stop looking for linkmap.xmap
>>>
>>>Thorsten, perhaps there was a file missing from your
>>>recent commit.
>>>      
>>>
>
>
>  
>

Re: [Pelt with Structurer]

Posted by David Crossley <cr...@apache.org>.
Cyriaque Dupoirieux wrote:
> David Crossley a ?crit :
> >
> >It was more obscure in 'forrest run' mode:
> >index.html ... resource not found,
> >but WEB-INF/logs showed a similar error.
>
> Exact, I have the same...

Does it now work for you after today's
'svn update'? I made the change below.

-David

> >Today i made a hack to ... structure/internal.xmap
> >to stop looking for linkmap.xmap
> >
> >Thorsten, perhaps there was a file missing from your
> >recent commit.

Re: [Pelt with Structurer]

Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
David Crossley a écrit :

>Cyriaque Dupoirieux wrote:
>  
>
>>------------------------------------------------------------------------
>>cocoon 2.2.0-dev
>>Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
>>Build: September 19 2005 (TargetVM=1.4, SourceVM=1.3, Debug=on, Optimize=on)
>>------------------------------------------------------------------------
>>X [0]                                     linkmap.html  BROKEN: 
>>D:\duc\forrest\build\plugins\org.apache.forrest.plugin.internal.structurer\linkmap.xma
>>p (Le fichier sp??cifi?? est introuvable)
>>Total time: 0 minutes 2 seconds,  Site size: 0 Site pages: 0
>>
>>BUILD FAILED
>>    
>>
>
>It was more obscure in 'forrest run' mode:
>index.html ... resource not found,
>but WEB-INF/logs showed a similar error.
>
>  
>
Exact, I have the same...

>Today i made a hack to ... structure/internal.xmap
>to stop looking for linkmap.xmap
>
>Thorsten, perhaps there was a file missing from your
>recent commit.
>
>-David
>
>
>  
>

Re: [Pelt with Structurer]

Posted by David Crossley <cr...@apache.org>.
Cyriaque Dupoirieux wrote:
> ------------------------------------------------------------------------
> cocoon 2.2.0-dev
> Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
> Build: September 19 2005 (TargetVM=1.4, SourceVM=1.3, Debug=on, Optimize=on)
> ------------------------------------------------------------------------
> X [0]                                     linkmap.html  BROKEN: 
> D:\duc\forrest\build\plugins\org.apache.forrest.plugin.internal.structurer\linkmap.xma
> p (Le fichier sp??cifi?? est introuvable)
> Total time: 0 minutes 2 seconds,  Site size: 0 Site pages: 0
> 
> BUILD FAILED

It was more obscure in 'forrest run' mode:
index.html ... resource not found,
but WEB-INF/logs showed a similar error.

Today i made a hack to ... structure/internal.xmap
to stop looking for linkmap.xmap

Thorsten, perhaps there was a file missing from your
recent commit.

-David

Re: [Pelt with Structurer]

Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
Thorsten Scherler a écrit :

>My test forrest.properties (snippets):
>#********************************************************
># code name: views 
>#********************************************************
># code name: (views-)themer
>#   views is using a fallback mechanism for theming.
>#   Themes are structured and transformed through templates. 
>#   You can configure the theme name and its extension here
>#####################################
>#   *theme* aka (also known as) {project:theme}
> project.theme=pelt
>#   *theme-extension* aka {project:theme-ext}
># project.theme-extension=.fv
>#####################################
>#  *description* 
>#  Forrest will resolve which (view-) template is responsible 
>#  for the request with the help of themes.
>#  
>#  If no (view-) template (first choice or fallback) can be found, 
>#  the structurer will return the default fallback 
>#  ({defaults:view-themes}/{defaults:theme}{defaults:theme-ext}).
>#
># Example (default.fv):
># 1.request: index 
>#  First choice: index.{project:theme-ext} = index.fv
>#  First/last fallback: {project:theme}{project:theme-ext} = default.fv
># 
># 2.request: sample/index 
>#  First choice: sample/index.fv 
>#  First fallback: sample/default.fv 
>#  Last fallback: default.fv
># 
># 3.request: sample/subdir/index 
>#  First choice: sample/subdir/index.fv 
>#  First fallback: sample/subdir/default.fv 
>#  Second fallback: sample/default.fv
>#  Last fallback: default.fv
># ...
># The parent (view-) template inherits to its children until a child
># is overriding this template. This fallback templating can be 
># used for directories (default.fv) and/or files (*.fv). 
># That means that the root view is the
># default view as long no other view can be found in the requested
>child.
>##########################################
>#   *advanced configuration* - you can specify which plugins you want
>#   use internal.
>#project.themer=
>${forrest.home}/build/plugins/org.apache.forrest.plugin.output.themes
>#project.stucturer=
>${forrest.home}/build/plugins/org.apache.forrest.plugin.internal.structurer
># depreceated:
># ...
>project.required.plugins=org.apache.forrest.plugin.output.themes,org.apache.forrest.plugin.internal.structurer,org.apache.forrest.plugin.input.viewHelper.xhtml.ls
>
>El jue, 13-10-2005 a las 16:38 +0200, Cyriaque Dupoirieux escribió:
>  
>
>>Thorsten Scherler a écrit :
>>
>>    
>>
>>>Done 
>>>Commit de la revisión 320775.
>>>
>>>I just deleted the themer and check it out again. ;-)
>>> 
>>>
>>>      
>>>
>>I had finished to apply to patch :-( ...
>>    
>>
>
>Sorry. 
>
>  
>
>>    It's not working with me, is there a problem with the 
>>commons-jxpath-*-.jar version, which must I use ?
>>    
>>
>
>?      lib/core/commons-jxpath-1.2.jar
>
>What is the error?
>
>  
>

D:\duc\stdViews>forrest

Apache Forrest.  Run 'forrest -projecthelp' to list options
...
check-java-version:
This is apache-forrest-0.8-dev
Using Java 1.4 from C:\j2sdk1.4.1_02\jre
...
validate-skinchoice:
validated existence of skin 'leather-dev'

site:
...
Note that there are various reasons for "build failed" messages.
* 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.
* Please check the file:
D:\duc\stdViews\build\tmp\brokenlinks.xml
for any broken links in the generated site.
------------------------------------------------------------------------
cocoon 2.2.0-dev
Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
Build: September 19 2005 (TargetVM=1.4, SourceVM=1.3, Debug=on, Optimize=on)
------------------------------------------------------------------------
X [0]                                     linkmap.html  BROKEN: 
D:\duc\forrest\build\plugins\org.apache.forrest.plugin.internal.structurer\linkmap.xma
p (Le fichier spÚcifiÚ est introuvable)
Total time: 0 minutes 2 seconds,  Site size: 0 Site pages: 0

BUILD FAILED
D:\duc\forrest\main\targets\site.xml:41: Java returned: 1

Total time: 23 seconds

Cyriaque,

>salu2
>  
>

Re: [Pelt with Structurer]

Posted by Thorsten Scherler <th...@apache.org>.
My test forrest.properties (snippets):
#********************************************************
# code name: views 
#********************************************************
# code name: (views-)themer
#   views is using a fallback mechanism for theming.
#   Themes are structured and transformed through templates. 
#   You can configure the theme name and its extension here
#####################################
#   *theme* aka (also known as) {project:theme}
 project.theme=pelt
#   *theme-extension* aka {project:theme-ext}
# project.theme-extension=.fv
#####################################
#  *description* 
#  Forrest will resolve which (view-) template is responsible 
#  for the request with the help of themes.
#  
#  If no (view-) template (first choice or fallback) can be found, 
#  the structurer will return the default fallback 
#  ({defaults:view-themes}/{defaults:theme}{defaults:theme-ext}).
#
# Example (default.fv):
# 1.request: index 
#  First choice: index.{project:theme-ext} = index.fv
#  First/last fallback: {project:theme}{project:theme-ext} = default.fv
# 
# 2.request: sample/index 
#  First choice: sample/index.fv 
#  First fallback: sample/default.fv 
#  Last fallback: default.fv
# 
# 3.request: sample/subdir/index 
#  First choice: sample/subdir/index.fv 
#  First fallback: sample/subdir/default.fv 
#  Second fallback: sample/default.fv
#  Last fallback: default.fv
# ...
# The parent (view-) template inherits to its children until a child
# is overriding this template. This fallback templating can be 
# used for directories (default.fv) and/or files (*.fv). 
# That means that the root view is the
# default view as long no other view can be found in the requested
child.
##########################################
#   *advanced configuration* - you can specify which plugins you want
#   use internal.
#project.themer=
${forrest.home}/build/plugins/org.apache.forrest.plugin.output.themes
#project.stucturer=
${forrest.home}/build/plugins/org.apache.forrest.plugin.internal.structurer
# depreceated:
# ...
project.required.plugins=org.apache.forrest.plugin.output.themes,org.apache.forrest.plugin.internal.structurer,org.apache.forrest.plugin.input.viewHelper.xhtml.ls

El jue, 13-10-2005 a las 16:38 +0200, Cyriaque Dupoirieux escribió:
> Thorsten Scherler a écrit :
> 
> >Done 
> >Commit de la revisión 320775.
> >
> >I just deleted the themer and check it out again. ;-)
> >  
> >
> I had finished to apply to patch :-( ...

Sorry. 

>     It's not working with me, is there a problem with the 
> commons-jxpath-*-.jar version, which must I use ?

?      lib/core/commons-jxpath-1.2.jar

What is the error?

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re: [Pelt with Structurer]

Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
Thorsten Scherler a écrit :

>Done 
>Commit de la revisión 320775.
>
>I just deleted the themer and check it out again. ;-)
>  
>
I had finished to apply to patch :-( ...

    It's not working with me, is there a problem with the 
commons-jxpath-*-.jar version, which must I use ?
    (I tried with forrest run on a new forrest seed...)

Cyriaque,

>salu2
>
>El jue, 13-10-2005 a las 15:59 +0200, Thorsten Scherler escribió:
>  
>
>>Whoops, there were some unrelated stuff in it!
>>
>>    
>>
>>>Attached the patch, can you try to apply it?
>>>      
>>>
>>please use the new one
>>
>>    
>>

Re: [Pelt with Structurer]

Posted by Thorsten Scherler <th...@apache.org>.
Done 
Commit de la revisión 320775.

I just deleted the themer and check it out again. ;-)

salu2

El jue, 13-10-2005 a las 15:59 +0200, Thorsten Scherler escribió:
> Whoops, there were some unrelated stuff in it!
> 
> > Attached the patch, can you try to apply it?
> 
> please use the new one
> 
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re: [Pelt with Structurer]

Posted by Thorsten Scherler <th...@apache.org>.
Whoops, there were some unrelated stuff in it!

> Attached the patch, can you try to apply it?

please use the new one

-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)

Re: [Pelt with Structurer]

Posted by Thorsten Scherler <th...@apache.org>.
El jue, 13-10-2005 a las 15:25 +0200, Cyriaque Dupoirieux escribió:
> Thorsten,
> 
>     Can you tell me what I can do to make the pelt theme work again.
> 
> You wrote for Revision: *320710 :
> *
> 
> HEADSUP: I did not updated the pelt theme yet! This theme will be broken till I changed the nugget contracts and the forrest:call-templates.
> 

Grr, I just wanted to commit that, but I got:
Enviando       resources/views/pelt.fv
Transmitiendo contenido de archivos .svn: Falló el commit (detalles a
continuación):
svn:
Base checksum mismatch on
'/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themes/resources/views/pelt.fv':
   expected:  3b287e029c1b3ee6b224e903ecd02cba
     actual:  4545758ab4f2114073859c01e0360a82

Anybody has an idea what that is? I never seen it before (I did a svn
cleanup with no suggest).

Attached the patch, can you try to apply it?

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)