<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>users@cocoon.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/cocoon-users/"/>
<id>http://mail-archives.apache.org/mod_mbox/cocoon-users/</id>
<updated>2009-12-10T02:26:13Z</updated>
<entry>
<title>Re: cocoon3 sitemap call</title>
<author><name>Steven Dolg &lt;steven.dolg@indoqa.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B1F890C.5050303@indoqa.com%3e"/>
<id>urn:uuid:%3c4B1F890C-5050303@indoqa-com%3e</id>
<updated>2009-12-09T11:25:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Reinhard Pötz schrieb:
&gt; Thomas Markus wrote:
&gt;   
&gt;&gt; i missed the aop part
&gt;&gt;
&gt;&gt; it would be great to move all servlet independent parts outside of
&gt;&gt; cocoon-servlet (CallStack ...), maybe to cocoon-pipeline
&gt;&gt;
&gt;&gt; currently i cant use cocoon-servlet as dependency (and dont want).
&gt;&gt;
&gt;&gt; org.springframework.beans.factory.BeanCreationException: Error creating
&gt;&gt; bean with name
&gt;&gt; 'org.apache.cocoon.blockdeployment.BlockContextURLStreamHandlerFactory'
&gt;&gt; defined in class path resource
&gt;&gt; [META-INF/cocoon/spring/cocoon-blockdeployment-protocol.xml]:
&gt;&gt; Initialization of bean failed; nested exception is
&gt;&gt; java.lang.ClassCastException:
&gt;&gt; org.springframework.context.support.ClassPathXmlApplicationContext
&gt;&gt; cannot be cast to org.springframework.web.context.WebApplicationContext
&gt;&gt;
&gt;&gt; i try to run a sitemap inside a junit test without any servlet specific
&gt;&gt; parts. this works fine without coocon-servlet. after copying CallFrame,
&gt;&gt; CallStack, MimeTypeCollector and spring config (ugly i know) mimetype is ok.
&gt;&gt;     
&gt;
&gt; I refactored all *Collector aspects and merged them into
&gt; o.a.c.servlet.collector.ResponseHeaderCollector. This collector uses
&gt; data store that implements o.a.c.servlet.collector.CollectorDataStore
&gt; and provided two implementations: one uses a thread local the other the
&gt; CallStack of the ServletService framework.
&gt;   

That sounds good.

&gt; This means that the ResponseHeaderCollector doesn't have a dependency on
&gt; the SSF or the Servlet API any longer.
&gt;   

That sounds even better.

&gt; The last step would be moving it into cocoon-sitemap but I have to find
&gt; a way to ensure that there is no other class in cocoon-sitemap that
&gt; depends on it. Alternatively I could create an own module but it seems
&gt; odd to me doing this for a single class.
&gt;   

Sitemap should be the right place for this.
Pipeline is definitely too low, iow. the infrastructure is missing to 
ensure that those things are actually happening.


The purpose of the pipeline module is to allow direct programmatic 
creation and execution of Cocoon pipelines - wherever you want and no 
matter which other frameworks you might use.
(Just like you would use commons-lang or commons-logging).

The sitemap is the first layer that actually creates some kind of 
predictable environment for the Cocoon pipelines and thus is the first 
layer where we can actually rely on assumptions like
having AOP or access to certain information.


Steven


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Problem with &lt;i:include&gt;</title>
<author><name>&quot;Robby Pelssers&quot; &lt;robby.pelssers@ciber.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c7C655C04B6F59643A1EF66056C0E095E031D1BD7@eusex01.sweden.ecsoft%3e"/>
<id>urn:uuid:%3c7C655C04B6F59643A1EF66056C0E095E031D1BD7@eusex01-sweden-ecsoft%3e</id>
<updated>2009-12-08T15:28:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Anish,

 

Let's examine this more closely.

 

You specify a serializer of type 'xml'.  However... your xslt does not
contain a root tag when it matches "/".  So basically you should get an
invalid xml result.  So either the sample code you sent is wrong or your
xslt is no good.

 

Robby

 

From: Anish [mailto:anish.sneh@techblue.co.uk] 
Sent: Tuesday, December 08, 2009 3:27 PM
To: users@cocoon.apache.org
Subject: Re: Problem with &lt;i:include&gt;

 

	Can you elaborate your use case by attaching small xml snippets?
From
	what I understand you have some 
	Xml snippet containing an include tag.

Robby my pipeline and XSLT are like:
(Please correct if I 'm wrong)

My sitemap/pipeline:
&lt;map:match pattern="root/sub/mypattern.html"&gt;
  &lt;map:generate src="somefile.xml"/&gt;
  &lt;map:transform src="myxslt.xsl"&gt;
  &lt;map:transform type="include"&gt;      
        &lt;map:parameter name="recursive" value="false"/&gt;
  &lt;/map:transform&gt;
  &lt;map:serialize type="xml"/&gt;  
&lt;/map:match&gt;
 
 
My XSLT (myxslt.xsl):
 
&lt;xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
&lt;http://www.w3.org/1999/XSL/Transform&gt; 
  xmlns="http://www.w3.org/1999/xhtml" &lt;http://www.w3.org/1999/xhtml&gt; 
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
&lt;http://www.w3.org/1999/xhtml&gt; 
  xmlns:i="http://apache.org/cocoon/include/1.0"
&lt;http://apache.org/cocoon/include/1.0&gt; 
&gt; 
        &lt;xsl:template match="/"&gt;
               Some test data
               &lt;i:include src="cocoon://root/sub/mypattern.html"/&gt;

        &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;
 
The output I want is:
 
###############
Some test data
Some test data
###############


String "Some test data" for two times. One is from XSLT (first  call)
and another one is from first include. I agree that I can use different
pipeline but I need to use it with:



&lt;map:parameter name="recursive" value="false"/&gt;

Please suggest.

TIA



Robby Pelssers wrote: 

By the way.. I think the design of your pipelines is bad after giving it
some more thought.
 
If you don't want recursive inclusion... you might consider configuring
a new pipeline which does not contain the &lt;i:include&gt; tag at all... you
could filter them out of the result by adding a filter.xslt instead of
rewriting them to another namespace.
 
And if you did want recursive inclusion... then you should add the
include transformer as last step in the 2nd pipeline.
 
&lt;map:match pattern="root/sub/mypattern.html"&gt;
  &lt;map:generate src="somefile.xml"/&gt;
  &lt;map:transform type="include"/&gt;   --&gt; by adding the include on
sub-level you prevent recursive inclusion
  &lt;map:serialize type="xml"/&gt;  
&lt;/map:match&gt;
 
Cheers,
Robby
 
 
 
-----Original Message-----
From: Robby Pelssers [mailto:robby.pelssers@ciber.com] 
Sent: Tuesday, December 08, 2009 2:15 PM
To: users@cocoon.apache.org
Subject: RE: Problem with &lt;i:include&gt;
 
Can you elaborate your use case by attaching small xml snippets?  From
what I understand you have some 
Xml snippet containing an include tag.
 
 
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;main&gt;
  &lt;i:include src="cocoon://root/sub/mypattern.html"
xmlns:i="http://apache.org/cocoon/include/1.0"
&lt;http://apache.org/cocoon/include/1.0&gt; /&gt;  
&lt;/main&gt;
 
 
And the result of calling pattern "root/sub/mypattern.html" results in
another snippet containing an include tag.
 
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;mypattern&gt;
  &lt;i:include src="cocoon://someOtherPipeline"
xmlns:i="http://apache.org/cocoon/include/1.0"
&lt;http://apache.org/cocoon/include/1.0&gt; /&gt;  
&lt;/mypattern&gt;
 
 
So what you want is only first level inclusion so the result becomes:
 
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;main&gt;
  &lt;mypattern&gt;
    &lt;i:include src="cocoon://someOtherPipeline"
xmlns:i="http://apache.org/cocoon/include/1.0"
&lt;http://apache.org/cocoon/include/1.0&gt; /&gt;    --&gt; this is the
problem since it's recursive
  &lt;/mypattern&gt;
&lt;/main&gt;
 
 
Now... if you were to add a extra transformation step to the pipeline
"root/sub/mypattern.html" which transforms the &lt;i:include&gt; into a
different namespace...you will be sure that the includeTransformer will
not run into recursion.
 
So the result would become for instance
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;main&gt;
  &lt;mypattern&gt;
    &lt;ignoreInclude:include src="cocoon://someOtherPipeline"
xmlns:ignoreInclude="http://apache.org/cocoon/ignoreInclude/1.0"
&lt;http://apache.org/cocoon/ignoreInclude/1.0&gt; /&gt;
  &lt;/mypattern&gt;
&lt;/main&gt;
 
Does that approach a solution to your problem?
 
Robby
 
-----Original Message-----
From: Anish [mailto:anish.sneh@techblue.co.uk] 
Sent: Tuesday, December 08, 2009 1:53 PM
To: users@cocoon.apache.org
Subject: Re: Problem with &lt;i:include&gt;
 
Robby Pelssers wrote:
  

	I actually do the same but not 1 one go... I split my
transformations
	    

in
  

	multiple sequential includes and that gives me no problem:
	 
	      &lt;map:match pattern="datasheet_mockup"&gt;
	        &lt;map:generate src="data/datasheet_mockup.xml"
label="step-1"/&gt;
	    

 
  

	        &lt;map:transform type="cinclude" label="step-2"/&gt; &lt;!--
Include
	&lt;PackageID&gt; --&gt;
	        &lt;map:transform
src="xslt/includePackageAndProductXml.xslt"
	label="step-3"/&gt;
	        &lt;map:transform type="cinclude" label="step-4"/&gt;  &lt;!--
Include
	actual Package and Product xml --&gt;
	        &lt;map:transform src="xslt/addGroupId.xslt" type="saxon"
	label="step-5"/&gt;           
	        &lt;map:transform src="xslt/createMapAndTopics.xslt"
type="saxon"
	label="step-6"/&gt;    
	        &lt;map:transform type="cinclude" label="step-7"/&gt;  &lt;!--
include
	BoxDimensions --&gt;
	        &lt;map:transform src="xslt/replaceBoxDimensions.xslt"
	    

type="saxon"
  

	label="step-8"/&gt;
	        &lt;map:transform src="xslt/cleanup.xslt" type="saxon"/&gt;
	 
	        &lt;map:serialize type="xml"/&gt;              
	      &lt;/map:match&gt;
	 
	Maybe this won't work for your usecase but it's worthwile
considering.
	 
	Robby 
	 
	-----Original Message-----
	From: Anish [mailto:anish.sneh@techblue.co.uk] 
	Sent: Tuesday, December 08, 2009 1:10 PM
	To: users@cocoon.apache.org
	Subject: Problem with &lt;i:include&gt;
	 
	Hi All
	 
	I'm trying to include content from a pipeline into an XSLT
using:
	 
	&lt;i:include src="cocoon://root/sub/mypattern.html"
	xmlns:i="http://apache.org/cocoon/include/1.0"
&lt;http://apache.org/cocoon/include/1.0&gt; &gt;
	 
	 
	while executing it gives:
	 
	java.lang.StackOverflowError
	  java.util.HashMap.get(HashMap.java:343)
	  
	 
	    

org.apache.cocoon.environment.AbstractEnvironment.getAttribute(AbstractE
  

	nvironment.java:444)
	  
	 
	    

org.apache.cocoon.environment.wrapper.EnvironmentWrapper.getAttribute(En
  

	vironmentWrapper.java:415)
	  
	 
	    

org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.getAttrib
  

	ute(MutableEnvironmentFacade.java:227)
	 
	There is a recursive call in the XSLT which again calls same
pipeline
	    

to
  

	include, to avoid that I have set (in the pipeline):
	 
	&lt;map:parameter name="recursive" value="false"/&gt;
	 
	 
	Still it's causing the stack to overflow. I'm using Cocoon
2.1.10 on 
	Tomcat 5.5.17.
	Please suggest.
	 
	  
	    

Thanks Robby,
 
Actually I was using "include" 
(org.apache.cocoon.transformation.IncludeTransformer) transformer. I'm 
not very much clear about the difference between "include" and 
"cinclude" (org.apache.cocoon.transformation.CIncludeTransformer).
 
Also I don't need recursive call. At the time of include I just want to 
include it once (the first level only).
 
 
Please suggest.
 
  






-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk
 
 


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Problem with &lt;i:include&gt;</title>
<author><name>Anish &lt;anish.sneh@techblue.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B1E622D.8090900@techblue.co.uk%3e"/>
<id>urn:uuid:%3c4B1E622D-8090900@techblue-co-uk%3e</id>
<updated>2009-12-08T14:26:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt;
&gt; Can you elaborate your use case by attaching small xml snippets?  From
&gt; what I understand you have some 
&gt; Xml snippet containing an include tag.
Robby my pipeline and XSLT are like:
(Please correct if I 'm wrong)

_My sitemap/pipeline:_

&lt;map:match pattern="root/sub/mypattern.html"&gt;
  &lt;map:generate src="somefile.xml"/&gt;
  &lt;map:transform src="myxslt.xsl"&gt;
  &lt;map:transform type="include"&gt;	
	&lt;map:parameter name="recursive" value="false"/&gt;
  &lt;/map:transform&gt;
  &lt;map:serialize type="xml"/&gt;  
&lt;/map:match&gt;


_My XSLT (myxslt.xsl):
_
&lt;xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:i="http://apache.org/cocoon/include/1.0"
&gt;
	&lt;xsl:template match="/"&gt;
		Some test data
		&lt;i:include src="cocoon://root/sub/mypattern.html"/&gt;				
	&lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;

_The output I want is:_

###############
Some test data
Some test data
###############


String "Some test data" for two times. One is from XSLT (first  call) 
and another one is from first include. I agree that I can use different 
pipeline but I need to use it with:

&lt;map:parameter name="recursive" value="false"/&gt;

Please suggest.

TIA



Robby Pelssers wrote:
&gt; By the way.. I think the design of your pipelines is bad after giving it
&gt; some more thought.
&gt;
&gt; If you don't want recursive inclusion... you might consider configuring
&gt; a new pipeline which does not contain the &lt;i:include&gt; tag at all... you
&gt; could filter them out of the result by adding a filter.xslt instead of
&gt; rewriting them to another namespace.
&gt;
&gt; And if you did want recursive inclusion... then you should add the
&gt; include transformer as last step in the 2nd pipeline.
&gt;
&gt; &lt;map:match pattern="root/sub/mypattern.html"&gt;
&gt;   &lt;map:generate src="somefile.xml"/&gt;
&gt;   &lt;map:transform type="include"/&gt;   --&gt; by adding the include on
&gt; sub-level you prevent recursive inclusion
&gt;   &lt;map:serialize type="xml"/&gt;  
&gt; &lt;/map:match&gt;
&gt;
&gt; Cheers,
&gt; Robby
&gt;
&gt;
&gt;
&gt; -----Original Message-----
&gt; From: Robby Pelssers [mailto:robby.pelssers@ciber.com] 
&gt; Sent: Tuesday, December 08, 2009 2:15 PM
&gt; To: users@cocoon.apache.org
&gt; Subject: RE: Problem with &lt;i:include&gt;
&gt;
&gt; Can you elaborate your use case by attaching small xml snippets?  From
&gt; what I understand you have some 
&gt; Xml snippet containing an include tag.
&gt;
&gt;
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;main&gt;
&gt;   &lt;i:include src="cocoon://root/sub/mypattern.html"
&gt; xmlns:i="http://apache.org/cocoon/include/1.0"/&gt;  
&gt; &lt;/main&gt;
&gt;
&gt;
&gt; And the result of calling pattern "root/sub/mypattern.html" results in
&gt; another snippet containing an include tag.
&gt;
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;mypattern&gt;
&gt;   &lt;i:include src="cocoon://someOtherPipeline"
&gt; xmlns:i="http://apache.org/cocoon/include/1.0"/&gt;  
&gt; &lt;/mypattern&gt;
&gt;
&gt;
&gt; So what you want is only first level inclusion so the result becomes:
&gt;
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;main&gt;
&gt;   &lt;mypattern&gt;
&gt;     &lt;i:include src="cocoon://someOtherPipeline"
&gt; xmlns:i="http://apache.org/cocoon/include/1.0"/&gt;    --&gt; this is the
&gt; problem since it's recursive
&gt;   &lt;/mypattern&gt;
&gt; &lt;/main&gt;
&gt;
&gt;
&gt; Now... if you were to add a extra transformation step to the pipeline
&gt; "root/sub/mypattern.html" which transforms the &lt;i:include&gt; into a
&gt; different namespace...you will be sure that the includeTransformer will
&gt; not run into recursion.
&gt;
&gt; So the result would become for instance
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;main&gt;
&gt;   &lt;mypattern&gt;
&gt;     &lt;ignoreInclude:include src="cocoon://someOtherPipeline"
&gt; xmlns:ignoreInclude="http://apache.org/cocoon/ignoreInclude/1.0"/&gt;
&gt;   &lt;/mypattern&gt;
&gt; &lt;/main&gt;
&gt;
&gt; Does that approach a solution to your problem?
&gt;
&gt; Robby
&gt;
&gt; -----Original Message-----
&gt; From: Anish [mailto:anish.sneh@techblue.co.uk] 
&gt; Sent: Tuesday, December 08, 2009 1:53 PM
&gt; To: users@cocoon.apache.org
&gt; Subject: Re: Problem with &lt;i:include&gt;
&gt;
&gt; Robby Pelssers wrote:
&gt;   
&gt;&gt; I actually do the same but not 1 one go... I split my transformations
&gt;&gt;     
&gt; in
&gt;   
&gt;&gt; multiple sequential includes and that gives me no problem:
&gt;&gt;
&gt;&gt;       &lt;map:match pattern="datasheet_mockup"&gt;
&gt;&gt;         &lt;map:generate src="data/datasheet_mockup.xml" label="step-1"/&gt;
&gt;&gt;     
&gt;
&gt;   
&gt;&gt;         &lt;map:transform type="cinclude" label="step-2"/&gt; &lt;!-- Include
&gt;&gt; &lt;PackageID&gt; --&gt;
&gt;&gt;         &lt;map:transform src="xslt/includePackageAndProductXml.xslt"
&gt;&gt; label="step-3"/&gt;
&gt;&gt;         &lt;map:transform type="cinclude" label="step-4"/&gt;  &lt;!-- Include
&gt;&gt; actual Package and Product xml --&gt;
&gt;&gt;         &lt;map:transform src="xslt/addGroupId.xslt" type="saxon"
&gt;&gt; label="step-5"/&gt;           
&gt;&gt;         &lt;map:transform src="xslt/createMapAndTopics.xslt" type="saxon"
&gt;&gt; label="step-6"/&gt;    
&gt;&gt;         &lt;map:transform type="cinclude" label="step-7"/&gt;  &lt;!--  include
&gt;&gt; BoxDimensions --&gt;
&gt;&gt;         &lt;map:transform src="xslt/replaceBoxDimensions.xslt"
&gt;&gt;     
&gt; type="saxon"
&gt;   
&gt;&gt; label="step-8"/&gt;
&gt;&gt;         &lt;map:transform src="xslt/cleanup.xslt" type="saxon"/&gt;
&gt;&gt;
&gt;&gt;         &lt;map:serialize type="xml"/&gt;              
&gt;&gt;       &lt;/map:match&gt;
&gt;&gt;
&gt;&gt; Maybe this won't work for your usecase but it's worthwile considering.
&gt;&gt;
&gt;&gt; Robby 
&gt;&gt;
&gt;&gt; -----Original Message-----
&gt;&gt; From: Anish [mailto:anish.sneh@techblue.co.uk] 
&gt;&gt; Sent: Tuesday, December 08, 2009 1:10 PM
&gt;&gt; To: users@cocoon.apache.org
&gt;&gt; Subject: Problem with &lt;i:include&gt;
&gt;&gt;
&gt;&gt; Hi All
&gt;&gt;
&gt;&gt; I'm trying to include content from a pipeline into an XSLT using:
&gt;&gt;
&gt;&gt; &lt;i:include src="cocoon://root/sub/mypattern.html"
&gt;&gt; xmlns:i="http://apache.org/cocoon/include/1.0"&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; while executing it gives:
&gt;&gt;
&gt;&gt; java.lang.StackOverflowError
&gt;&gt; 	java.util.HashMap.get(HashMap.java:343)
&gt;&gt; 	
&gt;&gt;
&gt;&gt;     
&gt; org.apache.cocoon.environment.AbstractEnvironment.getAttribute(AbstractE
&gt;   
&gt;&gt; nvironment.java:444)
&gt;&gt; 	
&gt;&gt;
&gt;&gt;     
&gt; org.apache.cocoon.environment.wrapper.EnvironmentWrapper.getAttribute(En
&gt;   
&gt;&gt; vironmentWrapper.java:415)
&gt;&gt; 	
&gt;&gt;
&gt;&gt;     
&gt; org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.getAttrib
&gt;   
&gt;&gt; ute(MutableEnvironmentFacade.java:227)
&gt;&gt;
&gt;&gt; There is a recursive call in the XSLT which again calls same pipeline
&gt;&gt;     
&gt; to
&gt;   
&gt;&gt; include, to avoid that I have set (in the pipeline):
&gt;&gt;
&gt;&gt; &lt;map:parameter name="recursive" value="false"/&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; Still it's causing the stack to overflow. I'm using Cocoon 2.1.10 on 
&gt;&gt; Tomcat 5.5.17.
&gt;&gt; Please suggest.
&gt;&gt;
&gt;&gt;   
&gt;&gt;     
&gt; Thanks Robby,
&gt;
&gt; Actually I was using "include" 
&gt; (org.apache.cocoon.transformation.IncludeTransformer) transformer. I'm 
&gt; not very much clear about the difference between "include" and 
&gt; "cinclude" (org.apache.cocoon.transformation.CIncludeTransformer).
&gt;
&gt; Also I don't need recursive call. At the time of include I just want to 
&gt; include it once (the first level only).
&gt;
&gt;
&gt; Please suggest.
&gt;
&gt;   


-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk





</pre>
</div>
</content>
</entry>
<entry>
<title>Re: cocoon3 sitemap call</title>
<author><name>=?ISO-8859-15?Q?Reinhard_P=F6tz?= &lt;reinhard@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B1E564F.2040001@apache.org%3e"/>
<id>urn:uuid:%3c4B1E564F-2040001@apache-org%3e</id>
<updated>2009-12-08T13:36:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thomas Markus wrote:
&gt; i missed the aop part
&gt; 
&gt; it would be great to move all servlet independent parts outside of
&gt; cocoon-servlet (CallStack ...), maybe to cocoon-pipeline
&gt; 
&gt; currently i cant use cocoon-servlet as dependency (and dont want).
&gt; 
&gt; org.springframework.beans.factory.BeanCreationException: Error creating
&gt; bean with name
&gt; 'org.apache.cocoon.blockdeployment.BlockContextURLStreamHandlerFactory'
&gt; defined in class path resource
&gt; [META-INF/cocoon/spring/cocoon-blockdeployment-protocol.xml]:
&gt; Initialization of bean failed; nested exception is
&gt; java.lang.ClassCastException:
&gt; org.springframework.context.support.ClassPathXmlApplicationContext
&gt; cannot be cast to org.springframework.web.context.WebApplicationContext
&gt; 
&gt; i try to run a sitemap inside a junit test without any servlet specific
&gt; parts. this works fine without coocon-servlet. after copying CallFrame,
&gt; CallStack, MimeTypeCollector and spring config (ugly i know) mimetype is ok.

I refactored all *Collector aspects and merged them into
o.a.c.servlet.collector.ResponseHeaderCollector. This collector uses
data store that implements o.a.c.servlet.collector.CollectorDataStore
and provided two implementations: one uses a thread local the other the
CallStack of the ServletService framework.

This means that the ResponseHeaderCollector doesn't have a dependency on
the SSF or the Servlet API any longer.

The last step would be moving it into cocoon-sitemap but I have to find
a way to ensure that there is no other class in cocoon-sitemap that
depends on it. Alternatively I could create an own module but it seems
odd to me doing this for a single class.

-- 
Reinhard Pötz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Problem with &lt;i:include&gt;</title>
<author><name>&quot;Robby Pelssers&quot; &lt;robby.pelssers@ciber.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c7C655C04B6F59643A1EF66056C0E095E031D1A8D@eusex01.sweden.ecsoft%3e"/>
<id>urn:uuid:%3c7C655C04B6F59643A1EF66056C0E095E031D1A8D@eusex01-sweden-ecsoft%3e</id>
<updated>2009-12-08T13:31:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
By the way.. I think the design of your pipelines is bad after giving it
some more thought.

If you don't want recursive inclusion... you might consider configuring
a new pipeline which does not contain the &lt;i:include&gt; tag at all... you
could filter them out of the result by adding a filter.xslt instead of
rewriting them to another namespace.

And if you did want recursive inclusion... then you should add the
include transformer as last step in the 2nd pipeline.

&lt;map:match pattern="root/sub/mypattern.html"&gt;
  &lt;map:generate src="somefile.xml"/&gt;
  &lt;map:transform type="include"/&gt;   --&gt; by adding the include on
sub-level you prevent recursive inclusion
  &lt;map:serialize type="xml"/&gt;  
&lt;/map:match&gt;

Cheers,
Robby



-----Original Message-----
From: Robby Pelssers [mailto:robby.pelssers@ciber.com] 
Sent: Tuesday, December 08, 2009 2:15 PM
To: users@cocoon.apache.org
Subject: RE: Problem with &lt;i:include&gt;

Can you elaborate your use case by attaching small xml snippets?  From
what I understand you have some 
Xml snippet containing an include tag.


&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;main&gt;
  &lt;i:include src="cocoon://root/sub/mypattern.html"
xmlns:i="http://apache.org/cocoon/include/1.0"/&gt;  
&lt;/main&gt;


And the result of calling pattern "root/sub/mypattern.html" results in
another snippet containing an include tag.

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;mypattern&gt;
  &lt;i:include src="cocoon://someOtherPipeline"
xmlns:i="http://apache.org/cocoon/include/1.0"/&gt;  
&lt;/mypattern&gt;


So what you want is only first level inclusion so the result becomes:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;main&gt;
  &lt;mypattern&gt;
    &lt;i:include src="cocoon://someOtherPipeline"
xmlns:i="http://apache.org/cocoon/include/1.0"/&gt;    --&gt; this is the
problem since it's recursive
  &lt;/mypattern&gt;
&lt;/main&gt;


Now... if you were to add a extra transformation step to the pipeline
"root/sub/mypattern.html" which transforms the &lt;i:include&gt; into a
different namespace...you will be sure that the includeTransformer will
not run into recursion.

So the result would become for instance
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;main&gt;
  &lt;mypattern&gt;
    &lt;ignoreInclude:include src="cocoon://someOtherPipeline"
xmlns:ignoreInclude="http://apache.org/cocoon/ignoreInclude/1.0"/&gt;
  &lt;/mypattern&gt;
&lt;/main&gt;

Does that approach a solution to your problem?

Robby

-----Original Message-----
From: Anish [mailto:anish.sneh@techblue.co.uk] 
Sent: Tuesday, December 08, 2009 1:53 PM
To: users@cocoon.apache.org
Subject: Re: Problem with &lt;i:include&gt;

Robby Pelssers wrote:
&gt; I actually do the same but not 1 one go... I split my transformations
in
&gt; multiple sequential includes and that gives me no problem:
&gt;
&gt;       &lt;map:match pattern="datasheet_mockup"&gt;
&gt;         &lt;map:generate src="data/datasheet_mockup.xml" label="step-1"/&gt;

&gt;         &lt;map:transform type="cinclude" label="step-2"/&gt; &lt;!-- Include
&gt; &lt;PackageID&gt; --&gt;
&gt;         &lt;map:transform src="xslt/includePackageAndProductXml.xslt"
&gt; label="step-3"/&gt;
&gt;         &lt;map:transform type="cinclude" label="step-4"/&gt;  &lt;!-- Include
&gt; actual Package and Product xml --&gt;
&gt;         &lt;map:transform src="xslt/addGroupId.xslt" type="saxon"
&gt; label="step-5"/&gt;           
&gt;         &lt;map:transform src="xslt/createMapAndTopics.xslt" type="saxon"
&gt; label="step-6"/&gt;    
&gt;         &lt;map:transform type="cinclude" label="step-7"/&gt;  &lt;!--  include
&gt; BoxDimensions --&gt;
&gt;         &lt;map:transform src="xslt/replaceBoxDimensions.xslt"
type="saxon"
&gt; label="step-8"/&gt;
&gt;         &lt;map:transform src="xslt/cleanup.xslt" type="saxon"/&gt;
&gt;
&gt;         &lt;map:serialize type="xml"/&gt;              
&gt;       &lt;/map:match&gt;
&gt;
&gt; Maybe this won't work for your usecase but it's worthwile considering.
&gt;
&gt; Robby 
&gt;
&gt; -----Original Message-----
&gt; From: Anish [mailto:anish.sneh@techblue.co.uk] 
&gt; Sent: Tuesday, December 08, 2009 1:10 PM
&gt; To: users@cocoon.apache.org
&gt; Subject: Problem with &lt;i:include&gt;
&gt;
&gt; Hi All
&gt;
&gt; I'm trying to include content from a pipeline into an XSLT using:
&gt;
&gt; &lt;i:include src="cocoon://root/sub/mypattern.html"
&gt; xmlns:i="http://apache.org/cocoon/include/1.0"&gt;
&gt;
&gt;
&gt; while executing it gives:
&gt;
&gt; java.lang.StackOverflowError
&gt; 	java.util.HashMap.get(HashMap.java:343)
&gt; 	
&gt;
org.apache.cocoon.environment.AbstractEnvironment.getAttribute(AbstractE
&gt; nvironment.java:444)
&gt; 	
&gt;
org.apache.cocoon.environment.wrapper.EnvironmentWrapper.getAttribute(En
&gt; vironmentWrapper.java:415)
&gt; 	
&gt;
org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.getAttrib
&gt; ute(MutableEnvironmentFacade.java:227)
&gt;
&gt; There is a recursive call in the XSLT which again calls same pipeline
to
&gt;
&gt; include, to avoid that I have set (in the pipeline):
&gt;
&gt; &lt;map:parameter name="recursive" value="false"/&gt;
&gt;
&gt;
&gt; Still it's causing the stack to overflow. I'm using Cocoon 2.1.10 on 
&gt; Tomcat 5.5.17.
&gt; Please suggest.
&gt;
&gt;   
Thanks Robby,

Actually I was using "include" 
(org.apache.cocoon.transformation.IncludeTransformer) transformer. I'm 
not very much clear about the difference between "include" and 
"cinclude" (org.apache.cocoon.transformation.CIncludeTransformer).

Also I don't need recursive call. At the time of include I just want to 
include it once (the first level only).


Please suggest.

-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Problem with &lt;i:include&gt;</title>
<author><name>&quot;Robby Pelssers&quot; &lt;robby.pelssers@ciber.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c7C655C04B6F59643A1EF66056C0E095E031D1A6B@eusex01.sweden.ecsoft%3e"/>
<id>urn:uuid:%3c7C655C04B6F59643A1EF66056C0E095E031D1A6B@eusex01-sweden-ecsoft%3e</id>
<updated>2009-12-08T13:14:34Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Can you elaborate your use case by attaching small xml snippets?  From
what I understand you have some 
Xml snippet containing an include tag.


&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;main&gt;
  &lt;i:include src="cocoon://root/sub/mypattern.html"
xmlns:i="http://apache.org/cocoon/include/1.0"/&gt;  
&lt;/main&gt;


And the result of calling pattern "root/sub/mypattern.html" results in
another snippet containing an include tag.

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;mypattern&gt;
  &lt;i:include src="cocoon://someOtherPipeline"
xmlns:i="http://apache.org/cocoon/include/1.0"/&gt;  
&lt;/mypattern&gt;


So what you want is only first level inclusion so the result becomes:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;main&gt;
  &lt;mypattern&gt;
    &lt;i:include src="cocoon://someOtherPipeline"
xmlns:i="http://apache.org/cocoon/include/1.0"/&gt;    --&gt; this is the
problem since it's recursive
  &lt;/mypattern&gt;
&lt;/main&gt;


Now... if you were to add a extra transformation step to the pipeline
"root/sub/mypattern.html" which transforms the &lt;i:include&gt; into a
different namespace...you will be sure that the includeTransformer will
not run into recursion.

So the result would become for instance
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;main&gt;
  &lt;mypattern&gt;
    &lt;ignoreInclude:include src="cocoon://someOtherPipeline"
xmlns:ignoreInclude="http://apache.org/cocoon/ignoreInclude/1.0"/&gt;
  &lt;/mypattern&gt;
&lt;/main&gt;

Does that approach a solution to your problem?

Robby

-----Original Message-----
From: Anish [mailto:anish.sneh@techblue.co.uk] 
Sent: Tuesday, December 08, 2009 1:53 PM
To: users@cocoon.apache.org
Subject: Re: Problem with &lt;i:include&gt;

Robby Pelssers wrote:
&gt; I actually do the same but not 1 one go... I split my transformations
in
&gt; multiple sequential includes and that gives me no problem:
&gt;
&gt;       &lt;map:match pattern="datasheet_mockup"&gt;
&gt;         &lt;map:generate src="data/datasheet_mockup.xml" label="step-1"/&gt;

&gt;         &lt;map:transform type="cinclude" label="step-2"/&gt; &lt;!-- Include
&gt; &lt;PackageID&gt; --&gt;
&gt;         &lt;map:transform src="xslt/includePackageAndProductXml.xslt"
&gt; label="step-3"/&gt;
&gt;         &lt;map:transform type="cinclude" label="step-4"/&gt;  &lt;!-- Include
&gt; actual Package and Product xml --&gt;
&gt;         &lt;map:transform src="xslt/addGroupId.xslt" type="saxon"
&gt; label="step-5"/&gt;           
&gt;         &lt;map:transform src="xslt/createMapAndTopics.xslt" type="saxon"
&gt; label="step-6"/&gt;    
&gt;         &lt;map:transform type="cinclude" label="step-7"/&gt;  &lt;!--  include
&gt; BoxDimensions --&gt;
&gt;         &lt;map:transform src="xslt/replaceBoxDimensions.xslt"
type="saxon"
&gt; label="step-8"/&gt;
&gt;         &lt;map:transform src="xslt/cleanup.xslt" type="saxon"/&gt;
&gt;
&gt;         &lt;map:serialize type="xml"/&gt;              
&gt;       &lt;/map:match&gt;
&gt;
&gt; Maybe this won't work for your usecase but it's worthwile considering.
&gt;
&gt; Robby 
&gt;
&gt; -----Original Message-----
&gt; From: Anish [mailto:anish.sneh@techblue.co.uk] 
&gt; Sent: Tuesday, December 08, 2009 1:10 PM
&gt; To: users@cocoon.apache.org
&gt; Subject: Problem with &lt;i:include&gt;
&gt;
&gt; Hi All
&gt;
&gt; I'm trying to include content from a pipeline into an XSLT using:
&gt;
&gt; &lt;i:include src="cocoon://root/sub/mypattern.html"
&gt; xmlns:i="http://apache.org/cocoon/include/1.0"&gt;
&gt;
&gt;
&gt; while executing it gives:
&gt;
&gt; java.lang.StackOverflowError
&gt; 	java.util.HashMap.get(HashMap.java:343)
&gt; 	
&gt;
org.apache.cocoon.environment.AbstractEnvironment.getAttribute(AbstractE
&gt; nvironment.java:444)
&gt; 	
&gt;
org.apache.cocoon.environment.wrapper.EnvironmentWrapper.getAttribute(En
&gt; vironmentWrapper.java:415)
&gt; 	
&gt;
org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.getAttrib
&gt; ute(MutableEnvironmentFacade.java:227)
&gt;
&gt; There is a recursive call in the XSLT which again calls same pipeline
to
&gt;
&gt; include, to avoid that I have set (in the pipeline):
&gt;
&gt; &lt;map:parameter name="recursive" value="false"/&gt;
&gt;
&gt;
&gt; Still it's causing the stack to overflow. I'm using Cocoon 2.1.10 on 
&gt; Tomcat 5.5.17.
&gt; Please suggest.
&gt;
&gt;   
Thanks Robby,

Actually I was using "include" 
(org.apache.cocoon.transformation.IncludeTransformer) transformer. I'm 
not very much clear about the difference between "include" and 
"cinclude" (org.apache.cocoon.transformation.CIncludeTransformer).

Also I don't need recursive call. At the time of include I just want to 
include it once (the first level only).


Please suggest.

-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Problem with &lt;i:include&gt;</title>
<author><name>Anish &lt;anish.sneh@techblue.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B1E4C38.5040500@techblue.co.uk%3e"/>
<id>urn:uuid:%3c4B1E4C38-5040500@techblue-co-uk%3e</id>
<updated>2009-12-08T12:53:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Robby Pelssers wrote:
&gt; I actually do the same but not 1 one go... I split my transformations in
&gt; multiple sequential includes and that gives me no problem:
&gt;
&gt;       &lt;map:match pattern="datasheet_mockup"&gt;
&gt;         &lt;map:generate src="data/datasheet_mockup.xml" label="step-1"/&gt;  
&gt;         &lt;map:transform type="cinclude" label="step-2"/&gt; &lt;!-- Include
&gt; &lt;PackageID&gt; --&gt;
&gt;         &lt;map:transform src="xslt/includePackageAndProductXml.xslt"
&gt; label="step-3"/&gt;
&gt;         &lt;map:transform type="cinclude" label="step-4"/&gt;  &lt;!-- Include
&gt; actual Package and Product xml --&gt;
&gt;         &lt;map:transform src="xslt/addGroupId.xslt" type="saxon"
&gt; label="step-5"/&gt;           
&gt;         &lt;map:transform src="xslt/createMapAndTopics.xslt" type="saxon"
&gt; label="step-6"/&gt;    
&gt;         &lt;map:transform type="cinclude" label="step-7"/&gt;  &lt;!--  include
&gt; BoxDimensions --&gt;
&gt;         &lt;map:transform src="xslt/replaceBoxDimensions.xslt" type="saxon"
&gt; label="step-8"/&gt;
&gt;         &lt;map:transform src="xslt/cleanup.xslt" type="saxon"/&gt;
&gt;
&gt;         &lt;map:serialize type="xml"/&gt;              
&gt;       &lt;/map:match&gt;
&gt;
&gt; Maybe this won't work for your usecase but it's worthwile considering.
&gt;
&gt; Robby 
&gt;
&gt; -----Original Message-----
&gt; From: Anish [mailto:anish.sneh@techblue.co.uk] 
&gt; Sent: Tuesday, December 08, 2009 1:10 PM
&gt; To: users@cocoon.apache.org
&gt; Subject: Problem with &lt;i:include&gt;
&gt;
&gt; Hi All
&gt;
&gt; I'm trying to include content from a pipeline into an XSLT using:
&gt;
&gt; &lt;i:include src="cocoon://root/sub/mypattern.html"
&gt; xmlns:i="http://apache.org/cocoon/include/1.0"&gt;
&gt;
&gt;
&gt; while executing it gives:
&gt;
&gt; java.lang.StackOverflowError
&gt; 	java.util.HashMap.get(HashMap.java:343)
&gt; 	
&gt; org.apache.cocoon.environment.AbstractEnvironment.getAttribute(AbstractE
&gt; nvironment.java:444)
&gt; 	
&gt; org.apache.cocoon.environment.wrapper.EnvironmentWrapper.getAttribute(En
&gt; vironmentWrapper.java:415)
&gt; 	
&gt; org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.getAttrib
&gt; ute(MutableEnvironmentFacade.java:227)
&gt;
&gt; There is a recursive call in the XSLT which again calls same pipeline to
&gt;
&gt; include, to avoid that I have set (in the pipeline):
&gt;
&gt; &lt;map:parameter name="recursive" value="false"/&gt;
&gt;
&gt;
&gt; Still it's causing the stack to overflow. I'm using Cocoon 2.1.10 on 
&gt; Tomcat 5.5.17.
&gt; Please suggest.
&gt;
&gt;   
Thanks Robby,

Actually I was using "include" 
(org.apache.cocoon.transformation.IncludeTransformer) transformer. I'm 
not very much clear about the difference between "include" and 
"cinclude" (org.apache.cocoon.transformation.CIncludeTransformer).

Also I don't need recursive call. At the time of include I just want to 
include it once (the first level only).


Please suggest.

-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Problem with &lt;i:include&gt;</title>
<author><name>&quot;Robby Pelssers&quot; &lt;robby.pelssers@ciber.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c7C655C04B6F59643A1EF66056C0E095E031D1A06@eusex01.sweden.ecsoft%3e"/>
<id>urn:uuid:%3c7C655C04B6F59643A1EF66056C0E095E031D1A06@eusex01-sweden-ecsoft%3e</id>
<updated>2009-12-08T12:21:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I actually do the same but not 1 one go... I split my transformations in
multiple sequential includes and that gives me no problem:

      &lt;map:match pattern="datasheet_mockup"&gt;
        &lt;map:generate src="data/datasheet_mockup.xml" label="step-1"/&gt;  
        &lt;map:transform type="cinclude" label="step-2"/&gt; &lt;!-- Include
&lt;PackageID&gt; --&gt;
        &lt;map:transform src="xslt/includePackageAndProductXml.xslt"
label="step-3"/&gt;
        &lt;map:transform type="cinclude" label="step-4"/&gt;  &lt;!-- Include
actual Package and Product xml --&gt;
        &lt;map:transform src="xslt/addGroupId.xslt" type="saxon"
label="step-5"/&gt;           
        &lt;map:transform src="xslt/createMapAndTopics.xslt" type="saxon"
label="step-6"/&gt;    
        &lt;map:transform type="cinclude" label="step-7"/&gt;  &lt;!--  include
BoxDimensions --&gt;
        &lt;map:transform src="xslt/replaceBoxDimensions.xslt" type="saxon"
label="step-8"/&gt;
        &lt;map:transform src="xslt/cleanup.xslt" type="saxon"/&gt;

        &lt;map:serialize type="xml"/&gt;              
      &lt;/map:match&gt;

Maybe this won't work for your usecase but it's worthwile considering.

Robby 

-----Original Message-----
From: Anish [mailto:anish.sneh@techblue.co.uk] 
Sent: Tuesday, December 08, 2009 1:10 PM
To: users@cocoon.apache.org
Subject: Problem with &lt;i:include&gt;

Hi All

I'm trying to include content from a pipeline into an XSLT using:

&lt;i:include src="cocoon://root/sub/mypattern.html"
xmlns:i="http://apache.org/cocoon/include/1.0"&gt;


while executing it gives:

java.lang.StackOverflowError
	java.util.HashMap.get(HashMap.java:343)
	
org.apache.cocoon.environment.AbstractEnvironment.getAttribute(AbstractE
nvironment.java:444)
	
org.apache.cocoon.environment.wrapper.EnvironmentWrapper.getAttribute(En
vironmentWrapper.java:415)
	
org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.getAttrib
ute(MutableEnvironmentFacade.java:227)

There is a recursive call in the XSLT which again calls same pipeline to

include, to avoid that I have set (in the pipeline):

&lt;map:parameter name="recursive" value="false"/&gt;


Still it's causing the stack to overflow. I'm using Cocoon 2.1.10 on 
Tomcat 5.5.17.
Please suggest.

-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Problem with &lt;i:include&gt;</title>
<author><name>&quot;Robby Pelssers&quot; &lt;robby.pelssers@ciber.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c7C655C04B6F59643A1EF66056C0E095E031D19FF@eusex01.sweden.ecsoft%3e"/>
<id>urn:uuid:%3c7C655C04B6F59643A1EF66056C0E095E031D19FF@eusex01-sweden-ecsoft%3e</id>
<updated>2009-12-08T12:18:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
If you know upfront how many times these recursive calls occur you could
solve it by using a different namespace. Eg.

&lt;recursiveinclude:include src="cocoon://root/sub/mypattern.html"
xmlns:recursiveinclude="http://www.mycompany.com"&gt;

And you transform the result with xslt into an &lt;i:include&gt; and call the
include transformer again after each step.

Cheers,
Robby


-----Original Message-----
From: Anish [mailto:anish.sneh@techblue.co.uk] 
Sent: Tuesday, December 08, 2009 1:10 PM
To: users@cocoon.apache.org
Subject: Problem with &lt;i:include&gt;

Hi All

I'm trying to include content from a pipeline into an XSLT using:

&lt;i:include src="cocoon://root/sub/mypattern.html"
xmlns:i="http://apache.org/cocoon/include/1.0"&gt;


while executing it gives:

java.lang.StackOverflowError
	java.util.HashMap.get(HashMap.java:343)
	
org.apache.cocoon.environment.AbstractEnvironment.getAttribute(AbstractE
nvironment.java:444)
	
org.apache.cocoon.environment.wrapper.EnvironmentWrapper.getAttribute(En
vironmentWrapper.java:415)
	
org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.getAttrib
ute(MutableEnvironmentFacade.java:227)

There is a recursive call in the XSLT which again calls same pipeline to

include, to avoid that I have set (in the pipeline):

&lt;map:parameter name="recursive" value="false"/&gt;


Still it's causing the stack to overflow. I'm using Cocoon 2.1.10 on 
Tomcat 5.5.17.
Please suggest.

-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Problem with &lt;i:include&gt;</title>
<author><name>Anish &lt;anish.sneh@techblue.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B1E4220.8070809@techblue.co.uk%3e"/>
<id>urn:uuid:%3c4B1E4220-8070809@techblue-co-uk%3e</id>
<updated>2009-12-08T12:10:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi All

I'm trying to include content from a pipeline into an XSLT using:

&lt;i:include src="cocoon://root/sub/mypattern.html" xmlns:i="http://apache.org/cocoon/include/1.0"&gt;


while executing it gives:

java.lang.StackOverflowError
	java.util.HashMap.get(HashMap.java:343)
	org.apache.cocoon.environment.AbstractEnvironment.getAttribute(AbstractEnvironment.java:444)
	org.apache.cocoon.environment.wrapper.EnvironmentWrapper.getAttribute(EnvironmentWrapper.java:415)
	org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.getAttribute(MutableEnvironmentFacade.java:227)

There is a recursive call in the XSLT which again calls same pipeline to 
include, to avoid that I have set (in the pipeline):

&lt;map:parameter name="recursive" value="false"/&gt;


Still it's causing the stack to overflow. I'm using Cocoon 2.1.10 on 
Tomcat 5.5.17.
Please suggest.

-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: configuring Jetty to log into a file</title>
<author><name>Johannes Lichtenberger &lt;Johannes.Lichtenberger@uni-konstanz.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1260219355.3475.71.camel@luna%3e"/>
<id>urn:uuid:%3c1260219355-3475-71-camel@luna%3e</id>
<updated>2009-12-07T20:55:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Mon, 2009-12-07 at 06:52 +0100, Jos Snellings wrote:
&gt; Look for any log4j.xml or log4j.properties in the classpath.
&gt; There is a log4j.xml in the cocoon samples
&gt; in ./rcl-config/WEB-INF/log4j.xml. A log file is created in  &lt;param
&gt; name="File" value="./target/work/log/cocoon.log"/&gt;
&gt; Jos

Hello Jos,

I've seen the file before but it's somehow strange, the errors are still
shown on STDOUT but not in the logfile:

	at
org.treetank.cocoon.generating.GoogleEarthGenerator.skip(GoogleEarthGenerator.java:174)
	at
org.treetank.cocoon.generating.GoogleEarthGenerator.skip(GoogleEarthGenerator.java:174)
	at
org.treetank.cocoon.generating.GoogleEarthGenerator.skip(GoogleEarthGenerator.java:174)
	at
org.treetank.cocoon.generating.GoogleEarthGenerator.skip(GoogleEarthGenerator.java:174)

...

so many of those that I don't get the source of the exception (the line
mentioned - 174 - is a recursive call of skip(...). It can't be a loop
which doesn't terminate (at least I honestly think so, because the
cursor moves forward in the xml file).

greetings,
Johannes



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re:  escaping special characters in an XSP String</title>
<author><name>&quot;Paul Adriaenssens&quot; &lt;paul.adriaenssens1@telenet.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3cW9623418477247551260197089@nocme1bl6.telenet-ops.be%3e"/>
<id>urn:uuid:%3cW9623418477247551260197089@nocme1bl6-telenet-ops-be%3e</id>
<updated>2009-12-07T14:44:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Indeed Jos,

That's what we are trying to do.
E.g. avoiding that &lt;hello/&gt; becomes &amp;lt;hello/&amp;gt;

Actually we have data from a varchar database field containing a String with HTML tagged data,
e.g. tags for bold (&lt;strong&gt;This text is bold&lt;/strong&gt;), for italic (&lt;em&gt;This
text is italicized&lt;/em&gt;), etc ... and we want this formatting finally to be represented
by the browser.

Thank you,

Paul

&gt;----- Oorspronkelijk bericht -----
&gt;Van
: Jos Snellings [mailto:Jos.Snellings@pandora.be]
&gt;Verzonden
: maandag
, december
 7, 2009 02:27 PM
&gt;Aan
: users@cocoon.apache.org
&gt;Onderwerp
: Re: escaping special characters in an XSP String
&gt;
&gt;Hi Paul,
&gt;
&gt;Can you please explain the purpose of not escaping?
&gt;Do you want for instance to prevent ampersand from being converted to
&gt;"&amp;amp;" ?
&gt;
&gt;Best,
&gt;Jos
&gt;
&gt;
&gt;
&gt;On Mon, 2009-12-07 at 13:21 +0000, Paul Adriaenssens wrote:
&gt;&gt; Hi,
&gt;&gt; 
&gt;&gt; I want to avoid escaping special characters in an xsp String retrieved
&gt;&gt; through &lt;xsp:expr&gt;.
&gt;&gt; 
&gt;&gt; In the archives
&gt;&gt; 
&gt;&gt; http://www.mail-archive.com/cocoon-users@xml.apache.org/msg20263.html
&gt;&gt; &lt;https://webmail.ua.ac.be/exchweb/bin/redir.asp?URL=http://www.mail-archive.com/cocoon-users@xml.apache.org/msg20263.html&gt;
&gt;&gt; 
&gt;&gt; http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16145.html
&gt;&gt; &lt;https://webmail.ua.ac.be/exchweb/bin/redir.asp?URL=http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16145.html&gt;
&gt;&gt; 
&gt;&gt; I found this as a solution:
&gt;&gt; 
&gt;&gt; &lt;util:include-expr&gt;
&gt;&gt; &lt;util:expr&gt;&lt;xsp:expr&gt;
&gt;&gt; data
&gt;&gt; &lt;/xsp:expr&gt;&lt;/util:expr&gt;
&gt;&gt; &lt;/util:include-expr&gt;
&gt;&gt; 
&gt;&gt; However it does not work, I see nothing in the output!
&gt;&gt; 
&gt;&gt; Any ideas?
&gt;&gt; 
&gt;&gt; We are using cocoon 2.1.11 ...
&gt;&gt; 
&gt;&gt; Regards,
&gt;&gt; 
&gt;&gt; Paul Adriaenssens
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
&gt;&gt; For additional commands, e-mail: users-help@cocoon.apache.org
&gt;&gt; 
&gt;&gt; 
&gt;
&gt;
&gt;
&gt;---------------------------------------------------------------------
&gt;To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
&gt;For additional commands, e-mail: users-help@cocoon.apache.org
&gt;
&gt;
&gt;



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: escaping special characters in an XSP String</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1260192449.2620.1.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1260192449-2620-1-camel@joske-laptop%3e</id>
<updated>2009-12-07T13:27:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Paul,

Can you please explain the purpose of not escaping?
Do you want for instance to prevent ampersand from being converted to
"&amp;amp;" ?

Best,
Jos



On Mon, 2009-12-07 at 13:21 +0000, Paul Adriaenssens wrote:
&gt; Hi,
&gt; 
&gt; I want to avoid escaping special characters in an xsp String retrieved
&gt; through &lt;xsp:expr&gt;.
&gt; 
&gt; In the archives
&gt; 
&gt; http://www.mail-archive.com/cocoon-users@xml.apache.org/msg20263.html
&gt; &lt;https://webmail.ua.ac.be/exchweb/bin/redir.asp?URL=http://www.mail-archive.com/cocoon-users@xml.apache.org/msg20263.html&gt;
&gt; 
&gt; http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16145.html
&gt; &lt;https://webmail.ua.ac.be/exchweb/bin/redir.asp?URL=http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16145.html&gt;
&gt; 
&gt; I found this as a solution:
&gt; 
&gt; &lt;util:include-expr&gt;
&gt; &lt;util:expr&gt;&lt;xsp:expr&gt;
&gt; data
&gt; &lt;/xsp:expr&gt;&lt;/util:expr&gt;
&gt; &lt;/util:include-expr&gt;
&gt; 
&gt; However it does not work, I see nothing in the output!
&gt; 
&gt; Any ideas?
&gt; 
&gt; We are using cocoon 2.1.11 ...
&gt; 
&gt; Regards,
&gt; 
&gt; Paul Adriaenssens
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
&gt; For additional commands, e-mail: users-help@cocoon.apache.org
&gt; 
&gt; 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>escaping special characters in an XSP String</title>
<author><name>&quot;Paul Adriaenssens&quot; &lt;paul.adriaenssens1@telenet.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3cW918432443192381260192104@nocme1bl6.telenet-ops.be%3e"/>
<id>urn:uuid:%3cW918432443192381260192104@nocme1bl6-telenet-ops-be%3e</id>
<updated>2009-12-07T13:21:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I want to avoid escaping special characters in an xsp String retrieved
through &lt;xsp:expr&gt;.

In the archives

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg20263.html
&lt;https://webmail.ua.ac.be/exchweb/bin/redir.asp?URL=http://www.mail-archive.com/cocoon-users@xml.apache.org/msg20263.html&gt;

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16145.html
&lt;https://webmail.ua.ac.be/exchweb/bin/redir.asp?URL=http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16145.html&gt;

I found this as a solution:

&lt;util:include-expr&gt;
&lt;util:expr&gt;&lt;xsp:expr&gt;
data
&lt;/xsp:expr&gt;&lt;/util:expr&gt;
&lt;/util:include-expr&gt;

However it does not work, I see nothing in the output!

Any ideas?

We are using cocoon 2.1.11 ...

Regards,

Paul Adriaenssens






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: [SOLVED]: problem with zip serializer Cocoon 2.2: Component with role 'org.apache.cocoon.serialization.Serializer/' and key 'map' is not defined in this service selector</title>
<author><name>&quot;Robby Pelssers&quot; &lt;robby.pelssers@ciber.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c7C655C04B6F59643A1EF66056C0E095E0317F7CF@eusex01.sweden.ecsoft%3e"/>
<id>urn:uuid:%3c7C655C04B6F59643A1EF66056C0E095E0317F7CF@eusex01-sweden-ecsoft%3e</id>
<updated>2009-12-07T11:28:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Ok.... The mistake I made was copying configuration from a previous cocoon 2.1.11 application.
 Since I'm using Cocoon2.2 now I needed to configure the 2 serializers as beans.  

 

So here follows the solution:

 

applicationContext.xml:

  &lt;bean name="org.apache.cocoon.serialization.Serializer/map" 

    class="org.apache.cocoon.serialization.XMLSerializer"

    scope="prototype" 

    parent="org.apache.cocoon.serialization.AbstractTextSerializer"&gt;

    &lt;pipeline:component mime-type="text/xml;charset=utf-8"/&gt;

    &lt;property name="format"&gt;

      &lt;props&gt;

        &lt;prop key="encoding"&gt;UTF-8&lt;/prop&gt;

        &lt;prop key="doctype-system"&gt;datasheet.map-dtd&lt;/prop&gt;

      &lt;/props&gt;

    &lt;/property&gt;

  &lt;/bean&gt; 

  

  &lt;bean name="org.apache.cocoon.serialization.Serializer/p-topic" 

    class="org.apache.cocoon.serialization.XMLSerializer"

    scope="prototype" 

    parent="org.apache.cocoon.serialization.AbstractTextSerializer"&gt;

    &lt;pipeline:component mime-type="text/xml;charset=utf-8"/&gt;

    &lt;property name="format"&gt;

      &lt;props&gt;

        &lt;prop key="encoding"&gt;UTF-8&lt;/prop&gt;

        &lt;prop key="doctype-system"&gt;${datasheet.p-topic-dtd}&lt;/prop&gt;

      &lt;/props&gt;

    &lt;/property&gt;

  &lt;/bean&gt;

 

 

Sitemap.xmap:

      &lt;map:match pattern="test.zip"&gt;

        &lt;map:generate src="cocoon:/datasheet_mockup"/&gt;

        &lt;map:transform src="xslt/datasheet2zip.xslt" type="saxon" label="zip"/&gt; - -
&gt; results in (1)

        &lt;map:serialize type="zip"/&gt;

      &lt;/map:match&gt;

 

 

(1): Dynamically generated ziparchive xml

 

&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;

            &lt;zip:entry name="PH3330L.xml" serializer="map"&gt;

                        &lt;map id="emptymap" rev="000.000" title="PH3330L"&gt;

                                    &lt;topicmeta&gt;

                                                &lt;critdates&gt;

                                                            &lt;revised modified="20091204"/&gt;

                                                &lt;/critdates&gt;

                                                &lt;releasestate content="released"/&gt;

                                                &lt;owner content="NXP"/&gt;

                                    &lt;/topicmeta&gt;

                                    &lt;topicgroup&gt;

                                                &lt;topichead navtitle="PH3330L"/&gt;

                                                &lt;topicref href="product_profile" navtitle="product_profile"/&gt;

                                                &lt;topicref href="pinning_information" navtitle="pinning_information"/&gt;

                                                &lt;topicref href="ordering_information" navtitle="ordering_information"/&gt;

                                                &lt;topicref href="marking" navtitle="marking"/&gt;

                                    &lt;/topicgroup&gt;

                        &lt;/map&gt;

            &lt;/zip:entry&gt;

&lt;/zip:archive&gt;

 

In the snippet above I reference the serializers by name.

 

Kind regards,

Robby Pelssers

 

 

 

 

From: Robby Pelssers [mailto:robby.pelssers@ciber.com] 
Sent: Friday, December 04, 2009 4:24 PM
To: users@cocoon.apache.org
Subject: RE: problem with zip serializer Cocoon 2.2: Component with role 'org.apache.cocoon.serialization.Serializer/'
and key 'map' is not defined in this service selector

 

One thing which I'm wondering about is that it searches for the ROLE  'org.apache.cocoon.serialization.Serializer/'
. Should the ROLE be equal to the @src attribute of the serializer?  In that case my custom
serializer might get the ROLE 'org.apache.cocoon.serialization.XMLSerializer/' with key='map'
which might explain why the service selector can't find this serializer.

 

But that's just guessing on my part.

 

Robby

 

From: Robby Pelssers [mailto:robby.pelssers@ciber.com] 
Sent: Friday, December 04, 2009 4:07 PM
To: users@cocoon.apache.org
Subject: problem with zip serializer Cocoon 2.2: Component with role 'org.apache.cocoon.serialization.Serializer/'
and key 'map' is not defined in this service selector

 

Hi guys,

 

I defined a custom serializer to add a specific doctype declaration:

 

      &lt;map:serializer 

        logger="sitemap.serializer.xml" mime-type="text/xml" name="map"

        src="org.apache.cocoon.serialization.XMLSerializer"&gt;

        &lt;doctype-system&gt;http://nww.qa.spider.nxp.com:8310/xmetal/schemas/map.dtd&lt;/doctype-system&gt;

      &lt;/map:serializer&gt;

 

 

I dynamically generate the zip archive using inline xml content.

 

Ziparchive xml snippet (1)

&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;

            &lt;zip:entry name="PH3330L.xml" serializer="map"&gt;

                        &lt;map id="emptymap" rev="000.000" title="PH3330L"&gt;

                                    &lt;topicmeta&gt;

                                                &lt;critdates&gt;

                                                            &lt;revised modified="20091204"/&gt;

                                                &lt;/critdates&gt;

                                                &lt;releasestate content="released"/&gt;

                                                &lt;owner content="NXP"/&gt;

                                    &lt;/topicmeta&gt;

                                    &lt;topicgroup&gt;

                                                &lt;topichead navtitle="PH3330L"/&gt;

                                                &lt;topicref href="product_profile" navtitle="product_profile"/&gt;

                                                &lt;topicref href="pinning_information" navtitle="pinning_information"/&gt;

                                                &lt;topicref href="ordering_information" navtitle="ordering_information"/&gt;

                                                &lt;topicref href="marking" navtitle="marking"/&gt;

                                    &lt;/topicgroup&gt;

                        &lt;/map&gt;

            &lt;/zip:entry&gt;

&lt;/zip:archive&gt;

 

 

My sitemap snippet looks like this:

 

      &lt;map:match pattern="zip"&gt;

        &lt;map:generate src="cocoon:/datasheet_mockup"/&gt;

        &lt;map:transform src="xslt/datasheet2zip.xslt" type="saxon" label="zip"/&gt;  àresults
in (1) 

        &lt;map:serialize type="zip"/&gt;

      &lt;/map:match&gt;

 

I can process this pipeline up until transformation.  But the zip serializer gives me following
exception:

 

Caused by: org.apache.avalon.framework.service.ServiceException: Component with role 'org.apache.cocoon.serialization.Serializer/'
and key 'map' is not defined in this service selector. (Key='AvalonServiceSelector')

      at org.apache.cocoon.serialization.ZipArchiveSerializer.addEntry(ZipArchiveSerializer.java:333)

      at org.apache.cocoon.serialization.ZipArchiveSerializer.startElement(ZipArchiveSerializer.java:211)

      at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:585)

      at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)

      at $Proxy12.startElement(Unknown Source)

      at net.sf.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.java:253)

 

 

I would expect that the name of the serializer is used as key... or is my assumption wrong
and do I need to add some extra configuration to the custom serializer?

 

May thx in advance,

Robby Pelssers



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: cocoon3 sitemap call</title>
<author><name>Thomas Markus &lt;t.markus@proventis.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B1CBD79.80504@proventis.net%3e"/>
<id>urn:uuid:%3c4B1CBD79-80504@proventis-net%3e</id>
<updated>2009-12-07T08:31:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
i missed the aop part

it would be great to move all servlet independent parts outside of
cocoon-servlet (CallStack ...), maybe to cocoon-pipeline

currently i cant use cocoon-servlet as dependency (and dont want).

org.springframework.beans.factory.BeanCreationException: Error creating
bean with name
'org.apache.cocoon.blockdeployment.BlockContextURLStreamHandlerFactory'
defined in class path resource
[META-INF/cocoon/spring/cocoon-blockdeployment-protocol.xml]:
Initialization of bean failed; nested exception is
java.lang.ClassCastException:
org.springframework.context.support.ClassPathXmlApplicationContext
cannot be cast to org.springframework.web.context.WebApplicationContext

i try to run a sitemap inside a junit test without any servlet specific
parts. this works fine without coocon-servlet. after copying CallFrame,
CallStack, MimeTypeCollector and spring config (ugly i know) mimetype is ok.

regards
Thomas


Reinhard Pötz schrieb:
&gt; Thomas Markus wrote:
&gt;   
&gt;&gt; hi,
&gt;&gt;
&gt;&gt; i tried to manually load and invoke a sitemap and it works fine now. but
&gt;&gt; how can i access resulting content type? i cant find something.
&gt;&gt;     
&gt;
&gt; Have a look at the RequestProcessor in the cocoon-servlet module. It's
&gt; an example of how to invoke a sitemap in a servlet environment.
&gt;
&gt; That's also my advice for your "cocoon3 inside portlets" question - and
&gt; maybe you can even use the RequestProcessor directly but I'm not sure if
&gt; you have access to everything that it needs (see the RequestProcessor's
&gt; constructor).
&gt;
&gt;   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>escaping special characters in an xsp String</title>
<author><name>Paul Adriaenssens &lt;paul.adriaenssens@democritus.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B1CB87E.8060804@democritus.net%3e"/>
<id>urn:uuid:%3c4B1CB87E-8060804@democritus-net%3e</id>
<updated>2009-12-07T08:10:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I want to avoid escaping special characters in an xsp String  retrieved 
through &lt;xsp:expr&gt;

In the archives
p://www.mail-archive.com/cocoon-users@xml.apache.org/msg20263.html 
&lt;https://webmail.ua.ac.be/exchweb/bin/redir.asp?URL=http://www.mail-archive.com/cocoon-users@xml.apache.org/msg20263.html&gt;


http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16145.html 
&lt;https://webmail.ua.ac.be/exchweb/bin/redir.asp?URL=http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16145.html&gt;


I found this as a solution

&lt;util:include-expr&gt;
&lt;util:expr&gt;&lt;xsp:expr&gt;
data
&lt;/xsp:expr&gt;&lt;/util:expr&gt;
&lt;/util:include-expr&gt;

However it does not work, I see nothing in the output ...

Any ideas?

I am using cocoon 2.1.11

Regards,

Paul Adriaenssens


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: configuring Jetty to log into a file</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1260165139.2590.3.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1260165139-2590-3-camel@joske-laptop%3e</id>
<updated>2009-12-07T05:52:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Look for any log4j.xml or log4j.properties in the classpath.
There is a log4j.xml in the cocoon samples
in ./rcl-config/WEB-INF/log4j.xml. A log file is created in  &lt;param
name="File" value="./target/work/log/cocoon.log"/&gt;
Jos

On Sun, 2009-12-06 at 22:39 +0100, Johannes Lichtenberger wrote:
&gt; Well, it's maybe not really cocoon specific, but I use mvn jetty:run to
&gt; run jetty and I'm getting an Error in a recursive function so the stack
&gt; trace is too long to follow in my shell. Does perhaps someone know how
&gt; to configure jetty to log stacktraces in a file?
&gt; 
&gt; greetings,
&gt; Johannes
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
&gt; For additional commands, e-mail: users-help@cocoon.apache.org
&gt; 
&gt; 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>configuring Jetty to log into a file</title>
<author><name>Johannes Lichtenberger &lt;Johannes.Lichtenberger@uni-konstanz.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1260135577.3475.43.camel@luna%3e"/>
<id>urn:uuid:%3c1260135577-3475-43-camel@luna%3e</id>
<updated>2009-12-06T21:39:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Well, it's maybe not really cocoon specific, but I use mvn jetty:run to
run jetty and I'm getting an Error in a recursive function so the stack
trace is too long to follow in my shell. Does perhaps someone know how
to configure jetty to log stacktraces in a file?

greetings,
Johannes


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: run jetty / error / custom webapp</title>
<author><name>=?UTF-8?B?UmVpbmhhcmQgUMO2dHo=?= &lt;reinhard@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B1C0F37.9050707@apache.org%3e"/>
<id>urn:uuid:%3c4B1C0F37-9050707@apache-org%3e</id>
<updated>2009-12-06T20:08:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Johannes Lichtenberger wrote:
&gt; On Sat, 2009-12-05 at 23:50 +0100, Reinhard PÃ¶tz wrote:
&gt;&gt; Johannes Lichtenberger wrote:
&gt;&gt;&gt; Hi,
&gt;&gt;&gt;
&gt;&gt;&gt; I have shared a project in a subversion repository, but when I checkout
&gt;&gt;&gt; the project on another place and try to start jetty (mvn jetty:run) I
&gt;&gt;&gt; get the following error:
&gt;&gt;&gt;
&gt;&gt;&gt; [INFO] Can't copy custom webapp files (directory:
&gt;&gt;&gt; '/home/johannes/workspace/mysite/rcl-config) to the web application in
&gt;&gt;&gt; preparation.
&gt;&gt;&gt;
&gt;&gt;&gt; The permissions are ok (755), so I'm really not sure what this means
&gt;&gt;&gt; (seems to have something to do with the rcl-config directory) :-/
&gt;&gt; It's a file operation problem. The statement where the exception is
&gt;&gt; thrown, uses the Apache Commons IO FileUtils:
&gt;&gt;
&gt;&gt; ------------------------------------------------------------------------
&gt;&gt; void org.apache.commons.io.FileUtils.copyDirectory(File srcDir, File
&gt;&gt; destDir) throws IOException
&gt;&gt;
&gt;&gt; Copies a whole directory to a new location preserving the file dates.
&gt;&gt;
&gt;&gt; This method copies the specified directory and all its child directories
&gt;&gt; and files to the specified destination. The destination is the new
&gt;&gt; location and name of the directory.
&gt;&gt;
&gt;&gt; The destination directory is created if it does not exist. If the
&gt;&gt; destination directory did exist, then this method merges the source with
&gt;&gt; the destination, with the source taking precedence.
&gt;&gt;
&gt;&gt; Parameters:
&gt;&gt; srcDir an existing directory to copy, must not be null
&gt;&gt; destDir the new directory, must not be null
&gt;&gt; Throws:
&gt;&gt; NullPointerException - if source or destination is null
&gt;&gt; IOException - if source or destination is invalid
&gt;&gt; IOException - if an IO error occurs during copying
&gt;&gt; ------------------------------------------------------------------------
&gt;&gt;
&gt;&gt; Maybe this gives you an idea what could be wrong with your setup.
&gt; 
&gt; Damn it, I knew it could only be some issues with permissions, but
&gt; strange enough that svn --checkout and Subclipse "produced" some strange
&gt; permissions. I think I had forgotten the "-R" switch to change all
&gt; permissions or have done it only at the rc-config directory. Well, chmod
&gt; -R 755 mysite did the "trick". Thanks.

You're welcome.

BTW, I changed the code in SVN so that the real exception isn't
swallowed anymore by passing it to the MojoException.

-- 
Reinhard PÃ¶tz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: run jetty / error / custom webapp</title>
<author><name>Johannes Lichtenberger &lt;Johannes.Lichtenberger@uni-konstanz.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1260054045.3475.31.camel@luna%3e"/>
<id>urn:uuid:%3c1260054045-3475-31-camel@luna%3e</id>
<updated>2009-12-05T23:00:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sat, 2009-12-05 at 23:50 +0100, Reinhard PÃ¶tz wrote:
&gt; Johannes Lichtenberger wrote:
&gt; &gt; Hi,
&gt; &gt; 
&gt; &gt; I have shared a project in a subversion repository, but when I checkout
&gt; &gt; the project on another place and try to start jetty (mvn jetty:run) I
&gt; &gt; get the following error:
&gt; &gt; 
&gt; &gt; [INFO] Can't copy custom webapp files (directory:
&gt; &gt; '/home/johannes/workspace/mysite/rcl-config) to the web application in
&gt; &gt; preparation.
&gt; &gt; 
&gt; &gt; The permissions are ok (755), so I'm really not sure what this means
&gt; &gt; (seems to have something to do with the rcl-config directory) :-/
&gt; 
&gt; It's a file operation problem. The statement where the exception is
&gt; thrown, uses the Apache Commons IO FileUtils:
&gt; 
&gt; ------------------------------------------------------------------------
&gt; void org.apache.commons.io.FileUtils.copyDirectory(File srcDir, File
&gt; destDir) throws IOException
&gt; 
&gt; Copies a whole directory to a new location preserving the file dates.
&gt; 
&gt; This method copies the specified directory and all its child directories
&gt; and files to the specified destination. The destination is the new
&gt; location and name of the directory.
&gt; 
&gt; The destination directory is created if it does not exist. If the
&gt; destination directory did exist, then this method merges the source with
&gt; the destination, with the source taking precedence.
&gt; 
&gt; Parameters:
&gt; srcDir an existing directory to copy, must not be null
&gt; destDir the new directory, must not be null
&gt; Throws:
&gt; NullPointerException - if source or destination is null
&gt; IOException - if source or destination is invalid
&gt; IOException - if an IO error occurs during copying
&gt; ------------------------------------------------------------------------
&gt; 
&gt; Maybe this gives you an idea what could be wrong with your setup.

Damn it, I knew it could only be some issues with permissions, but
strange enough that svn --checkout and Subclipse "produced" some strange
permissions. I think I had forgotten the "-R" switch to change all
permissions or have done it only at the rc-config directory. Well, chmod
-R 755 mysite did the "trick". Thanks.

greetings,
Johannes



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: debug</title>
<author><name>Johannes Lichtenberger &lt;Johannes.Lichtenberger@uni-konstanz.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1260053537.3475.28.camel@luna%3e"/>
<id>urn:uuid:%3c1260053537-3475-28-camel@luna%3e</id>
<updated>2009-12-05T22:52:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sat, 2009-12-05 at 23:32 +0100, Reinhard PÃ¶tz wrote:
&gt; Johannes Lichtenberger wrote:
&gt; &gt; On Sat, 2009-12-05 at 23:10 +0100, Reinhard PÃ¶tz wrote:
&gt; &gt;&gt; Johannes Lichtenberger wrote:
&gt; &gt;&gt;&gt; Hello,
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; how do I debug pipeline components efficiently? I mean I don't have the
&gt; &gt;&gt;&gt; Eclipse IDE Debugger, so I'm currently writing logger or simply sysouts
&gt; &gt;&gt;&gt; which isn't very helpful when debugging :-/
&gt; &gt;&gt; Do I understand correctly that the Eclipse IDE debugger is no option for
&gt; &gt;&gt; you?
&gt; &gt; 
&gt; &gt; No, I haven't worked with Servlets... before, so I didn't know that I
&gt; &gt; can debug remotely within Eclipse. So it's working.
&gt; 
&gt; You can also use the RunJettyRun Eclipse plugin.

Do you perhaps know something about my other issue with starting jetty?
I think you comitted the code which throws the exception? ;-)

greetings,
Johannes



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: run jetty / error / custom webapp</title>
<author><name>=?UTF-8?B?UmVpbmhhcmQgUMO2dHo=?= &lt;reinhard@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B1AE3D3.9080008@apache.org%3e"/>
<id>urn:uuid:%3c4B1AE3D3-9080008@apache-org%3e</id>
<updated>2009-12-05T22:50:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Johannes Lichtenberger wrote:
&gt; Hi,
&gt; 
&gt; I have shared a project in a subversion repository, but when I checkout
&gt; the project on another place and try to start jetty (mvn jetty:run) I
&gt; get the following error:
&gt; 
&gt; [INFO] Can't copy custom webapp files (directory:
&gt; '/home/johannes/workspace/mysite/rcl-config) to the web application in
&gt; preparation.
&gt; 
&gt; The permissions are ok (755), so I'm really not sure what this means
&gt; (seems to have something to do with the rcl-config directory) :-/

It's a file operation problem. The statement where the exception is
thrown, uses the Apache Commons IO FileUtils:

------------------------------------------------------------------------
void org.apache.commons.io.FileUtils.copyDirectory(File srcDir, File
destDir) throws IOException

Copies a whole directory to a new location preserving the file dates.

This method copies the specified directory and all its child directories
and files to the specified destination. The destination is the new
location and name of the directory.

The destination directory is created if it does not exist. If the
destination directory did exist, then this method merges the source with
the destination, with the source taking precedence.

Parameters:
srcDir an existing directory to copy, must not be null
destDir the new directory, must not be null
Throws:
NullPointerException - if source or destination is null
IOException - if source or destination is invalid
IOException - if an IO error occurs during copying
------------------------------------------------------------------------

Maybe this gives you an idea what could be wrong with your setup.

-- 
Reinhard PÃ¶tz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: debug</title>
<author><name>=?UTF-8?B?UmVpbmhhcmQgUMO2dHo=?= &lt;reinhard@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B1ADF69.4060508@apache.org%3e"/>
<id>urn:uuid:%3c4B1ADF69-4060508@apache-org%3e</id>
<updated>2009-12-05T22:32:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Johannes Lichtenberger wrote:
&gt; On Sat, 2009-12-05 at 23:10 +0100, Reinhard PÃ¶tz wrote:
&gt;&gt; Johannes Lichtenberger wrote:
&gt;&gt;&gt; Hello,
&gt;&gt;&gt;
&gt;&gt;&gt; how do I debug pipeline components efficiently? I mean I don't have the
&gt;&gt;&gt; Eclipse IDE Debugger, so I'm currently writing logger or simply sysouts
&gt;&gt;&gt; which isn't very helpful when debugging :-/
&gt;&gt; Do I understand correctly that the Eclipse IDE debugger is no option for
&gt;&gt; you?
&gt; 
&gt; No, I haven't worked with Servlets... before, so I didn't know that I
&gt; can debug remotely within Eclipse. So it's working.

You can also use the RunJettyRun Eclipse plugin.

-- 
Reinhard PÃ¶tz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: run jetty / error / custom webapp</title>
<author><name>Johannes Lichtenberger &lt;Johannes.Lichtenberger@uni-konstanz.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1260051769.3475.26.camel@luna%3e"/>
<id>urn:uuid:%3c1260051769-3475-26-camel@luna%3e</id>
<updated>2009-12-05T22:22:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I think the essential snippet from the POM file is:

      &lt;plugin&gt;
        &lt;groupId&gt;org.apache.cocoon&lt;/groupId&gt;
        &lt;artifactId&gt;cocoon-maven-plugin&lt;/artifactId&gt;
        &lt;version&gt;1.0.0-M3&lt;/version&gt;        
        &lt;configuration&gt;
          &lt;webappProfile&gt;ssf&lt;/webappProfile&gt;
          &lt;customWebappDirectory&gt;rcl-config&lt;/customWebappDirectory&gt;
        &lt;/configuration&gt;
        &lt;executions&gt;
          &lt;execution&gt;
            &lt;phase&gt;compile&lt;/phase&gt;
            &lt;goals&gt;
              &lt;goal&gt;prepare&lt;/goal&gt;
            &lt;/goals&gt;
          &lt;/execution&gt;
        &lt;/executions&gt;
      &lt;/plugin&gt;


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: debug</title>
<author><name>Johannes Lichtenberger &lt;Johannes.Lichtenberger@uni-konstanz.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1260051593.3475.25.camel@luna%3e"/>
<id>urn:uuid:%3c1260051593-3475-25-camel@luna%3e</id>
<updated>2009-12-05T22:19:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sat, 2009-12-05 at 23:10 +0100, Reinhard PÃ¶tz wrote:
&gt; Johannes Lichtenberger wrote:
&gt; &gt; Hello,
&gt; &gt; 
&gt; &gt; how do I debug pipeline components efficiently? I mean I don't have the
&gt; &gt; Eclipse IDE Debugger, so I'm currently writing logger or simply sysouts
&gt; &gt; which isn't very helpful when debugging :-/
&gt; 
&gt; Do I understand correctly that the Eclipse IDE debugger is no option for
&gt; you?

No, I haven't worked with Servlets... before, so I didn't know that I
can debug remotely within Eclipse. So it's working.

greetings,
Johannes


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>run jetty / error / custom webapp</title>
<author><name>Johannes Lichtenberger &lt;Johannes.Lichtenberger@uni-konstanz.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1260051490.3475.23.camel@luna%3e"/>
<id>urn:uuid:%3c1260051490-3475-23-camel@luna%3e</id>
<updated>2009-12-05T22:18:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I have shared a project in a subversion repository, but when I checkout
the project on another place and try to start jetty (mvn jetty:run) I
get the following error:

[INFO] Can't copy custom webapp files (directory:
'/home/johannes/workspace/mysite/rcl-config) to the web application in
preparation.

The permissions are ok (755), so I'm really not sure what this means
(seems to have something to do with the rcl-config directory) :-/

greetings,
Johannes


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: debug</title>
<author><name>=?UTF-8?B?UmVpbmhhcmQgUMO2dHo=?= &lt;reinhard@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B1ADA4D.30901@apache.org%3e"/>
<id>urn:uuid:%3c4B1ADA4D-30901@apache-org%3e</id>
<updated>2009-12-05T22:10:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Johannes Lichtenberger wrote:
&gt; Hello,
&gt; 
&gt; how do I debug pipeline components efficiently? I mean I don't have the
&gt; Eclipse IDE Debugger, so I'm currently writing logger or simply sysouts
&gt; which isn't very helpful when debugging :-/

Do I understand correctly that the Eclipse IDE debugger is no option for
you?

-- 
Reinhard PÃ¶tz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: cocoon3 sitemap call</title>
<author><name>=?ISO-8859-15?Q?Reinhard_P=F6tz?= &lt;reinhard@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B1AD9E8.9010509@apache.org%3e"/>
<id>urn:uuid:%3c4B1AD9E8-9010509@apache-org%3e</id>
<updated>2009-12-05T22:08:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thomas Markus wrote:
&gt; hi,
&gt; 
&gt; i tried to manually load and invoke a sitemap and it works fine now. but
&gt; how can i access resulting content type? i cant find something.

Have a look at the RequestProcessor in the cocoon-servlet module. It's
an example of how to invoke a sitemap in a servlet environment.

That's also my advice for your "cocoon3 inside portlets" question - and
maybe you can even use the RequestProcessor directly but I'm not sure if
you have access to everything that it needs (see the RequestProcessor's
constructor).

-- 
Reinhard Pötz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: URLConnectionUtils.closeLoudly()</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1259996168.2597.5.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1259996168-2597-5-camel@joske-laptop%3e</id>
<updated>2009-12-05T06:56:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
This is one for documentation:
from the examples:
URLResponse("servlet:/somewherehere",data)

does not work if you specify the root url.
Notation is absolute (with "servlet:")

if /somewherehere is in the same pipeline it works!

However, closeQuietly does not close quietly if the urlconnection is
null. The exception is thrown by the method and caught in the caller.
That is the silent part.

Jos


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: URLConnectionUtils.closeLoudly()</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1259994315.2597.1.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1259994315-2597-1-camel@joske-laptop%3e</id>
<updated>2009-12-05T06:25:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
You are right in "literal".equals(param), but that is not the source of
the problem. Like smoking, it is a habit I'd better give up ;-)
Jos

On Fri, 2009-12-04 at 15:29 +0100, Johannes Lichtenberger wrote:
&gt; On Fri, 2009-12-04 at 15:15 +0100, Jos Snellings wrote:
&gt; 
&gt; [StackTrace]
&gt; 
&gt; &gt; It is certainly not closing a connection quietly :-) 
&gt; &gt; 
&gt; &gt; In URLResponse.java, is it possible that in execute()
&gt; &gt; 
&gt; &gt; servletConnection = this.url.openConnection(); is null?
&gt; &gt; 
&gt; &gt; Responses are like:
&gt; &gt;    if (action.equals("st")) return new
&gt; &gt; URLResponse("servlet:/thesaurusedit/stdemo",data);
&gt; &gt;             	if (action.equals("term")) return new
&gt; &gt; URLResponse("servlet:/edit/term", data);
&gt; &gt;             }
&gt; &gt;             
&gt; &gt; 	return new URLResponse("servlet:editor/workspace", data);
&gt; 
&gt; Well, you know I'm not really familiar with cocoon, but I would replace
&gt; action.equals("st") with "st".equals(action) and action.equals("term")
&gt; equally, so you can't get NullPointerExceptions in this place (I know
&gt; it's not the source of the problem).
&gt; 
&gt; greetings,
&gt; Johannes  
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
&gt; For additional commands, e-mail: users-help@cocoon.apache.org
&gt; 
&gt; 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>debug</title>
<author><name>Johannes Lichtenberger &lt;Johannes.Lichtenberger@uni-konstanz.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1259947641.3973.235.camel@luna%3e"/>
<id>urn:uuid:%3c1259947641-3973-235-camel@luna%3e</id>
<updated>2009-12-04T17:27:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,

how do I debug pipeline components efficiently? I mean I don't have the
Eclipse IDE Debugger, so I'm currently writing logger or simply sysouts
which isn't very helpful when debugging :-/

greetings,
Johannes


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: problem with zip serializer Cocoon 2.2: Component with role 'org.apache.cocoon.serialization.Serializer/' and key 'map' is not defined in this service selector</title>
<author><name>&quot;Robby Pelssers&quot; &lt;robby.pelssers@ciber.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c7C655C04B6F59643A1EF66056C0E095E0317F49A@eusex01.sweden.ecsoft%3e"/>
<id>urn:uuid:%3c7C655C04B6F59643A1EF66056C0E095E0317F49A@eusex01-sweden-ecsoft%3e</id>
<updated>2009-12-04T15:23:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
One thing which I'm wondering about is that it searches for the ROLE  'org.apache.cocoon.serialization.Serializer/'
. Should the ROLE be equal to the @src attribute of the serializer?  In that case my custom
serializer might get the ROLE 'org.apache.cocoon.serialization.XMLSerializer/' with key='map'
which might explain why the service selector can't find this serializer.

 

But that's just guessing on my part.

 

Robby

 

From: Robby Pelssers [mailto:robby.pelssers@ciber.com] 
Sent: Friday, December 04, 2009 4:07 PM
To: users@cocoon.apache.org
Subject: problem with zip serializer Cocoon 2.2: Component with role 'org.apache.cocoon.serialization.Serializer/'
and key 'map' is not defined in this service selector

 

Hi guys,

 

I defined a custom serializer to add a specific doctype declaration:

 

      &lt;map:serializer 

        logger="sitemap.serializer.xml" mime-type="text/xml" name="map"

        src="org.apache.cocoon.serialization.XMLSerializer"&gt;

        &lt;doctype-system&gt;http://nww.qa.spider.nxp.com:8310/xmetal/schemas/map.dtd&lt;/doctype-system&gt;

      &lt;/map:serializer&gt;

 

 

I dynamically generate the zip archive using inline xml content.

 

Ziparchive xml snippet (1)

&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;

            &lt;zip:entry name="PH3330L.xml" serializer="map"&gt;

                        &lt;map id="emptymap" rev="000.000" title="PH3330L"&gt;

                                    &lt;topicmeta&gt;

                                                &lt;critdates&gt;

                                                            &lt;revised modified="20091204"/&gt;

                                                &lt;/critdates&gt;

                                                &lt;releasestate content="released"/&gt;

                                                &lt;owner content="NXP"/&gt;

                                    &lt;/topicmeta&gt;

                                    &lt;topicgroup&gt;

                                                &lt;topichead navtitle="PH3330L"/&gt;

                                                &lt;topicref href="product_profile" navtitle="product_profile"/&gt;

                                                &lt;topicref href="pinning_information" navtitle="pinning_information"/&gt;

                                                &lt;topicref href="ordering_information" navtitle="ordering_information"/&gt;

                                                &lt;topicref href="marking" navtitle="marking"/&gt;

                                    &lt;/topicgroup&gt;

                        &lt;/map&gt;

            &lt;/zip:entry&gt;

&lt;/zip:archive&gt;

 

 

My sitemap snippet looks like this:

 

      &lt;map:match pattern="zip"&gt;

        &lt;map:generate src="cocoon:/datasheet_mockup"/&gt;

        &lt;map:transform src="xslt/datasheet2zip.xslt" type="saxon" label="zip"/&gt;  àresults
in (1) 

        &lt;map:serialize type="zip"/&gt;

      &lt;/map:match&gt;

 

I can process this pipeline up until transformation.  But the zip serializer gives me following
exception:

 

Caused by: org.apache.avalon.framework.service.ServiceException: Component with role 'org.apache.cocoon.serialization.Serializer/'
and key 'map' is not defined in this service selector. (Key='AvalonServiceSelector')

      at org.apache.cocoon.serialization.ZipArchiveSerializer.addEntry(ZipArchiveSerializer.java:333)

      at org.apache.cocoon.serialization.ZipArchiveSerializer.startElement(ZipArchiveSerializer.java:211)

      at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:585)

      at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)

      at $Proxy12.startElement(Unknown Source)

      at net.sf.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.java:253)

 

 

I would expect that the name of the serializer is used as key... or is my assumption wrong
and do I need to add some extra configuration to the custom serializer?

 

May thx in advance,

Robby Pelssers



</pre>
</div>
</content>
</entry>
<entry>
<title>problem with zip serializer Cocoon 2.2: Component with role 'org.apache.cocoon.serialization.Serializer/' and key 'map' is not defined in this service selector</title>
<author><name>&quot;Robby Pelssers&quot; &lt;robby.pelssers@ciber.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c7C655C04B6F59643A1EF66056C0E095E0317F47A@eusex01.sweden.ecsoft%3e"/>
<id>urn:uuid:%3c7C655C04B6F59643A1EF66056C0E095E0317F47A@eusex01-sweden-ecsoft%3e</id>
<updated>2009-12-04T15:06:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi guys,

 

I defined a custom serializer to add a specific doctype declaration:

 

      &lt;map:serializer 

        logger="sitemap.serializer.xml" mime-type="text/xml" name="map"

        src="org.apache.cocoon.serialization.XMLSerializer"&gt;

        &lt;doctype-system&gt;http://nww.qa.spider.nxp.com:8310/xmetal/schemas/map.dtd&lt;/doctype-system&gt;

      &lt;/map:serializer&gt;

 

 

I dynamically generate the zip archive using inline xml content.

 

Ziparchive xml snippet (1)

&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;

            &lt;zip:entry name="PH3330L.xml" serializer="map"&gt;

                        &lt;map id="emptymap" rev="000.000" title="PH3330L"&gt;

                                    &lt;topicmeta&gt;

                                                &lt;critdates&gt;

                                                            &lt;revised modified="20091204"/&gt;

                                                &lt;/critdates&gt;

                                                &lt;releasestate content="released"/&gt;

                                                &lt;owner content="NXP"/&gt;

                                    &lt;/topicmeta&gt;

                                    &lt;topicgroup&gt;

                                                &lt;topichead navtitle="PH3330L"/&gt;

                                                &lt;topicref href="product_profile" navtitle="product_profile"/&gt;

                                                &lt;topicref href="pinning_information" navtitle="pinning_information"/&gt;

                                                &lt;topicref href="ordering_information" navtitle="ordering_information"/&gt;

                                                &lt;topicref href="marking" navtitle="marking"/&gt;

                                    &lt;/topicgroup&gt;

                        &lt;/map&gt;

            &lt;/zip:entry&gt;

&lt;/zip:archive&gt;

 

 

My sitemap snippet looks like this:

 

      &lt;map:match pattern="zip"&gt;

        &lt;map:generate src="cocoon:/datasheet_mockup"/&gt;

        &lt;map:transform src="xslt/datasheet2zip.xslt" type="saxon" label="zip"/&gt;  àresults
in (1) 

        &lt;map:serialize type="zip"/&gt;

      &lt;/map:match&gt;

 

I can process this pipeline up until transformation.  But the zip serializer gives me following
exception:

 

Caused by: org.apache.avalon.framework.service.ServiceException: Component with role 'org.apache.cocoon.serialization.Serializer/'
and key 'map' is not defined in this service selector. (Key='AvalonServiceSelector')

      at org.apache.cocoon.serialization.ZipArchiveSerializer.addEntry(ZipArchiveSerializer.java:333)

      at org.apache.cocoon.serialization.ZipArchiveSerializer.startElement(ZipArchiveSerializer.java:211)

      at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:585)

      at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)

      at $Proxy12.startElement(Unknown Source)

      at net.sf.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.java:253)

 

 

I would expect that the name of the serializer is used as key... or is my assumption wrong
and do I need to add some extra configuration to the custom serializer?

 

May thx in advance,

Robby Pelssers



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: URLConnectionUtils.closeLoudly()</title>
<author><name>Steven Dolg &lt;steven.dolg@indoqa.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B191E31.2070602@indoqa.com%3e"/>
<id>urn:uuid:%3c4B191E31-2070602@indoqa-com%3e</id>
<updated>2009-12-04T14:35:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Jos Snellings schrieb:
&gt; Hi!
&gt;
&gt; At the end of RESTController I get:
&gt;
&gt; 2009-12-04 14:57:26,014 ERROR http-8080-Processor20
&gt; org.apache.cocoon.sitemap.InvocationImpl/handle-errors - Error while
&gt; executing the sitemap. [request-uri=/editor/put/definition/1124]
&gt; java.lang.NullPointerException
&gt;         at
&gt; org.apache.cocoon.pipeline.util.URLConnectionUtils.closeQuietly(URLConnectionUtils.java:37)
&gt;         at
&gt; org.apache.cocoon.rest.controller.response.URLResponse.execute(URLResponse.java:91)
&gt;         at
&gt; org.apache.cocoon.rest.controller.SpringRESTController.invoke(SpringRESTController.java:88)
&gt;         at
&gt; org.apache.cocoon.controller.SpringControllerComponent.execute(SpringControllerComponent.java:50)
&gt;         at
&gt; org.apache.cocoon.pipeline.AbstractPipeline.invokeStarter(AbstractPipeline.java:147)
&gt;         at
&gt; org.apache.cocoon.pipeline.CachingPipeline.execute(CachingPipeline.java:126)
&gt;         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&gt;         at
&gt; sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&gt;         at
&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&gt;         at java.lang.reflect.Method.invoke(Method.java:597)
&gt;
&gt; It is certainly not closing a connection quietly :-) 
&gt;
&gt; In URLResponse.java, is it possible that in execute()
&gt;
&gt; servletConnection = this.url.openConnection(); is null?
&gt;
&gt; Responses are like:
&gt;    if (action.equals("st")) return new
&gt; URLResponse("servlet:/thesaurusedit/stdemo",data);
&gt;             	if (action.equals("term")) return new
&gt; URLResponse("servlet:/edit/term", data);
&gt;             }
&gt;             
&gt; 	return new URLResponse("servlet:editor/workspace", data);
&gt;
&gt; Is there an obvious mistake I am making?
&gt;   

Hi,

the only difference I can spot is that your last URL does not include a 
leading slash after the protocol: "servlet:editor/workspace" instead of 
"servlet:/editor/workspace".
However throwing the NPE in closeQuietly() is a genuine bug IMO.

Does this happen in all cases of your "action" variable or only for a 
specific one?

IIRC, URL.openConnection will either return a connection of throw an 
exception.
Which would mean that openConnection fails and thus servletConnection 
remains null, which is then not handled correctly...


Steven


&gt; Thanks,
&gt; Jos
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
&gt; For additional commands, e-mail: users-help@cocoon.apache.org
&gt;
&gt;
&gt;   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: URLConnectionUtils.closeLoudly()</title>
<author><name>Johannes Lichtenberger &lt;Johannes.Lichtenberger@uni-konstanz.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1259936998.3973.229.camel@luna%3e"/>
<id>urn:uuid:%3c1259936998-3973-229-camel@luna%3e</id>
<updated>2009-12-04T14:29:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri, 2009-12-04 at 15:15 +0100, Jos Snellings wrote:

[StackTrace]

&gt; It is certainly not closing a connection quietly :-) 
&gt; 
&gt; In URLResponse.java, is it possible that in execute()
&gt; 
&gt; servletConnection = this.url.openConnection(); is null?
&gt; 
&gt; Responses are like:
&gt;    if (action.equals("st")) return new
&gt; URLResponse("servlet:/thesaurusedit/stdemo",data);
&gt;             	if (action.equals("term")) return new
&gt; URLResponse("servlet:/edit/term", data);
&gt;             }
&gt;             
&gt; 	return new URLResponse("servlet:editor/workspace", data);

Well, you know I'm not really familiar with cocoon, but I would replace
action.equals("st") with "st".equals(action) and action.equals("term")
equally, so you can't get NullPointerExceptions in this place (I know
it's not the source of the problem).

greetings,
Johannes  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>URLConnectionUtils.closeLoudly()</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c1259936136.2594.13.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1259936136-2594-13-camel@joske-laptop%3e</id>
<updated>2009-12-04T14:15:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi!

At the end of RESTController I get:

2009-12-04 14:57:26,014 ERROR http-8080-Processor20
org.apache.cocoon.sitemap.InvocationImpl/handle-errors - Error while
executing the sitemap. [request-uri=/editor/put/definition/1124]
java.lang.NullPointerException
        at
org.apache.cocoon.pipeline.util.URLConnectionUtils.closeQuietly(URLConnectionUtils.java:37)
        at
org.apache.cocoon.rest.controller.response.URLResponse.execute(URLResponse.java:91)
        at
org.apache.cocoon.rest.controller.SpringRESTController.invoke(SpringRESTController.java:88)
        at
org.apache.cocoon.controller.SpringControllerComponent.execute(SpringControllerComponent.java:50)
        at
org.apache.cocoon.pipeline.AbstractPipeline.invokeStarter(AbstractPipeline.java:147)
        at
org.apache.cocoon.pipeline.CachingPipeline.execute(CachingPipeline.java:126)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)

It is certainly not closing a connection quietly :-) 

In URLResponse.java, is it possible that in execute()

servletConnection = this.url.openConnection(); is null?

Responses are like:
   if (action.equals("st")) return new
URLResponse("servlet:/thesaurusedit/stdemo",data);
            	if (action.equals("term")) return new
URLResponse("servlet:/edit/term", data);
            }
            
	return new URLResponse("servlet:editor/workspace", data);

Is there an obvious mistake I am making?

Thanks,
Jos


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>cocoon3 inside portlets</title>
<author><name>Thomas Markus &lt;t.markus@proventis.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B19083F.40305@proventis.net%3e"/>
<id>urn:uuid:%3c4B19083F-40305@proventis-net%3e</id>
<updated>2009-12-04T13:01:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
hi,

whats the best approach to use cocoon3 as portlet content producer?

currently i use cocoon3 trunk and build a running sample


regards

Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>cocoon3 sitemap call</title>
<author><name>Thomas Markus &lt;t.markus@proventis.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c4B18DAB0.50309@proventis.net%3e"/>
<id>urn:uuid:%3c4B18DAB0-50309@proventis-net%3e</id>
<updated>2009-12-04T09:47:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
hi,

i tried to manually load and invoke a sitemap and it works fine now. but
how can i access resulting content type? i cant find something.

thx
Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Xpointer</title>
<author><name>Dick Deneer &lt;dick.deneer@donkeydevelopment.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-users/200912.mbox/%3c26627996.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26627996-post@talk-nabble-com%3e</id>
<updated>2009-12-03T15:40:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I read that Cocoon has XPointer functionalty.
Can I use this independently: Can I use a xml text file as input to the
parser, supply an xpointer expression and get the offset in the xml of the
result nodeset. If this is possible can you please supply a hint to get me
started?
Thanks,
DD
-- 
View this message in context: http://old.nabble.com/Xpointer-tp26627996p26627996.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



</pre>
</div>
</content>
</entry>
</feed>
