You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Carlos Dias <cd...@pontoc.pt> on 2004/02/25 17:40:04 UTC
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
[HELP]Re: Session Transformer definition
Posted by Carlos Dias <cd...@pontoc.pt>.
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" <cr...@gmx.net>
To: <us...@cocoon.apache.org>
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: users@cocoon.apache.org
> > 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: 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
Re: Session Transformer definition
Posted by Stephan Coboos <cr...@gmx.net>.
Carlos Dias wrote:
>Please can anybody help me?!!! Can't find teh correct jar!!!!!
>
>CD
> ----- Original Message -----
> From: Carlos Dias
> To: users@cocoon.apache.org
> 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
ESQL update and select statements in the same map:match problem
Posted by go...@osmosis.gr.
hi people
i have the folow code :
<map:aggregate>
<map:part src="cocoon:/xml/exec.update_point" strip-root="yes"/>
<map:part src="cocoon:/xml/exec.get_point" strip-root="yes"/>
</map:aggregate>
where i call 2 .xsp
1. update_point.xsp
where i update a record in my database
2. get_point.xsp
where i get the updated record
the problem is that this aggregation update the database record (i have
check the content) but generate output (get_point) with the before update
values
is this a caching mechanism case, is it possible to bypass this problem or
it's just a bug?
--stavros
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Session Transformer definition
Posted by Carlos Dias <cd...@pontoc.pt>.
Please can anybody help me?!!! Can't find teh correct jar!!!!!
CD
----- Original Message -----
From: Carlos Dias
To: users@cocoon.apache.org
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