You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Annie Dumont <an...@univ-reunion.fr> on 2005/05/18 14:19:58 UTC

Upgrade of Lenya : pb with kupu

Hi list,

Each day its problem ;)
Yesterday i coudn't enter the editor's view. Today i can't enter kupu.
When i try to edit an article i have this message  :

An Error Occurred
org.apache.lenya.cms.cocoon.generation.StreamGenerator

org.apache.cocoon.ProcessingException: Failed to load sitemap from
file:/opt/tomcat5/webapps/lenya_new/lenya/usecase.xmap:
org.apache.avalon.framework.configuration.ConfigurationException: Could
not load class org.apache.lenya.cms.cocoon.generation.StreamGenerator
for component named 'kupustream' at
file:/opt/tomcat5/webapps/lenya_new/lenya/usecase.xmap:26:202

cause: java.lang.ClassNotFoundException:
org.apache.lenya.cms.cocoon.generation.StreamGenerator

full exception chain stacktrace

org.apache.cocoon.ProcessingException: Failed to load sitemap from file:/opt/tomcat5/webapps/lenya_new/lenya/usecase.xmap: org.apache.avalon.framework.configuration.ConfigurationException: Could not load class org.apache.lenya.cms.cocoon.generation.StreamGenerator for component named 'kupustream' at file:/opt/tomcat5/webapps/lenya_new/lenya/usecase.xmap:26:202
	at org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultTreeBuilder.java:361)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.buildConcreteProcessor(TreeProcessor.java:327)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.setupConcreteProcessor(TreeProcessor.java:289)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:241)
	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
	at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:243)
	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)[...]


stacktrace[show]
java.lang.ClassNotFoundException:
org.apache.lenya.cms.cocoon.generation.StreamGenerator
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
	at org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:228)
	at org.apache.cocoon.components.treeprocessor.sitemap.ComponentsSelector.configure(ComponentsSelector.java:157)
	at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
	at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:269)
	at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108)
	at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:522)
	at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:561)
	at org.apache.cocoon.components.treeprocessor.sitemap.SitemapLanguage.createComponentManager(SitemapLanguage.java:90)
	at org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultTreeBuilder.java:377)
	at org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultTreeBuilder.java:357)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.buildConcreteProcessor(TreeProcessor.java:327)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.setupConcreteProcessor(TreeProcessor.java:289)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:241)
	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)[...]

env :
tomcat 5.027
cocoon 2.1.7
lenya 1.2.3
jre_version 1.4.2-01

Method : deploying our actual pubs directory with lenya-1.2.3 
in tomcat.webapps.dir=${tomcat.home.dir}/webapps/lenya_new
copying these files from our actual site to lenya_new :
sitemap.xmap
global.sitemap.xmap
lenya/navigation.xmap
lenya/usecase.xmap
lenya/info.xmap
lenya/scheduler.xmap

I tried in $LENYA_HOME a ./build.sh kupu : no difference
Any idea ?

Regards.

PS to Gregor : i have corrected stylesheets containing <xsl:param name="something" select=""/> with the <xsl:param name="something select="''"/> as you suggested it.





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Upgrade of Lenya : pb with kupu

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Annie Dumont wrote:

>     <map:generators default="file">
>       <map:generator label="content,data"
> logger="sitemap.generator.kupustream"  name="stream" pool-grow="2"
> pool-max="16" pool-min="1"
> src="org.apache.lenya.cms.cocoon.generation.StreamGenerator"/>
>     </map:generators>

that has to go. in 1.2.3, the cocoon stream generator is already defined 
in sitemap.xmap

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Upgrade of Lenya : pb with kupu

Posted by Annie Dumont <an...@univ-reunion.fr>.
Hi list,

i think i have big problems with my usecase.xmap.
i took it from the older pubs directory and copy it to the new, and it
doesn't work at all.
i copied the kupu usecase pipeline from 
http://lenya.apache.org/1_2_x/components/editors/kupu.html#What
+integrating+an+editor+is+all+about
and changed the path when necessary.

i commented like this the generators
<map:generators default="file"> <!--
      <map:generator label="content,data"
logger="sitemap.generator.kupustream"  name="stream" pool-grow="2"
pool-max="16" pool-min="1"
src="org.apache.lenya.cms.cocoon.generation.StreamGenerator"/> -->
    </map:generators> 
to see if i can go on without it 

i enter Kupu but it looks awfull.
It looks like no stylesheet was readen.
i have a form with "The requested document '/kupublank.html' with
document-id '/kupublank' does not exist."
All tools (Table, properties, links, image) are on the left and very big
The document displays in a form at the end of the page, under "Debug
log" title.

Something to do with the missing instruction in map:generators ?
Or something else ?

Regards. annie


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Upgrade of Lenya : pb with kupu

Posted by Annie Dumont <an...@univ-reunion.fr>.
Hi Gregor, hi list,

Unfortunatelly, by replacing kupustream with stream gives this other
message :

An Error Occurred
org.apache.lenya.cms.cocoon.generation.StreamGenerator

org.apache.cocoon.ProcessingException: Failed to load sitemap from
file:/opt/tomcat5/webapps/lenya_new/lenya/usecase.xmap:
org.apache.avalon.framework.configuration.ConfigurationException: Could
not load class org.apache.lenya.cms.cocoon.generation.StreamGenerator
for component named 'stream' at
file:/opt/tomcat5/webapps/lenya_new/lenya/usecase.xmap:26:212

Here are the few lines of usecase.xmap concerning the generator

    <map:generators default="file">
      <map:generator label="content,data"
logger="sitemap.generator.kupustream"  name="stream" pool-grow="2"
pool-max="16" pool-min="1"
src="org.apache.lenya.cms.cocoon.generation.StreamGenerator"/>
    </map:generators>


Regards,

annie

Le mercredi 18 mai 2005 à 21:57 -0400, Gregor J. Rothfuss a écrit :
> Annie Dumont wrote:
> 
> > org.apache.cocoon.ProcessingException: Failed to load sitemap from
> > file:/opt/tomcat5/webapps/lenya_new/lenya/usecase.xmap:
> > org.apache.avalon.framework.configuration.ConfigurationException: Could
> > not load class org.apache.lenya.cms.cocoon.generation.StreamGenerator
> > for component named 'kupustream' at
> > file:/opt/tomcat5/webapps/lenya_new/lenya/usecase.xmap:26:202
> 
> replace           <map:generate type="kupustream"/>
> with              <map:generate type="stream"/>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Upgrade of Lenya : pb with kupu

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Annie Dumont wrote:

> org.apache.cocoon.ProcessingException: Failed to load sitemap from
> file:/opt/tomcat5/webapps/lenya_new/lenya/usecase.xmap:
> org.apache.avalon.framework.configuration.ConfigurationException: Could
> not load class org.apache.lenya.cms.cocoon.generation.StreamGenerator
> for component named 'kupustream' at
> file:/opt/tomcat5/webapps/lenya_new/lenya/usecase.xmap:26:202

replace           <map:generate type="kupustream"/>
with              <map:generate type="stream"/>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org