Stephan, Thanks for the answer. I compile the block session-fw and put it in the WEB-INF/lib. After that I define the session transformer with success. I try to run an example posted by someone in the list, but it didn't work!!! My sitemap has the following in a pipeline: <map:pipeline> <map:match pattern="test"> <map:generate src="conf/test.xml"/> <map:transform src="stylesheets/insert-session-directives.xsl"/> <map:transform type="session"/> <!--map:serialize type="xml"/--> </map:match> </map:pipeline>
The test.xml file has the following data: <?xml version="1.0" encoding="ISO-8859-1"?> <user/> The stylesheet (insert-session-directives.xsl): <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:session="http://cocoon.apache.org/session/1.0"> <xsl:template match="user"> <resource xmlns:session="http://cocoon.apache.org/session/1.0"> <session:createcontext name="trackdemo"/> <!-- build context data --> <session:setxml context="trackdemo" path="/"> <context> <user> <name>DUMMY</name> <password>DUMMY</password> </user> </context> </session:setxml> <session:getxml context="trackdemo" path="/"/> </resource> </xsl:template> </xsl:stylesheet> With the xml serializer, the result is a <?xml version="1.0" encoding="ISO-8859-1"?> <resource xmlns:session="http://cocoon.apache.org/session/1.0"><session:createcontext name="trackdemo"/> <session:setxml path="/" context="trackdemo"> <context><user><name>DUMMY</name><password>DUMMY</password></user> </context> </session:setxml> <session:getxml path="/" context="trackdemo"/> </resource> Without the xml serializer, I got the following error: "cause: org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: cubenavigator/test" Thanks, Carlos Dias ----- Original Message ----- From: "Stephan Coboos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 25, 2004 6:59 PM Subject: Re: Session Transformer definition > Carlos Dias wrote: > > >Please can anybody help me?!!! Can't find teh correct jar!!!!! > > > >CD > > ----- Original Message ----- > > From: Carlos Dias > > To: [EMAIL PROTECTED] > > Sent: Wednesday, February 25, 2004 4:40 PM > > Subject: Session Transformer definition > > > > > > Hi, > > I'm trying to define in my sitemap the session transformer, like this: > > <map:transformer name="session" pool-grow="4" pool-max="32" pool-min="8" > > src="org.apache.cocoon.webapps.session.transformation.SessionTransformer"/> > > But I got the flowing error: > > Could not load class org.apache.cocoon.webapps.session.transformation.SessionTransformer for component named 'session' . > > > > So what is the package that has this class?! > > > > CDias > > > > > Look for the block 'session-fw'. > > Regards > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
