cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jozsa Kristof <>
Subject Using Selectors the correct way?
Date Tue, 29 Jan 2002 18:03:10 GMT

I've wrote a very simple Selector class (a class similar to
SessionAttributeSelector), which checks whether the user has an
authenticated session or an anonymous one. It returns a true or a false
value based on this.

Now when I'm trying to call it from the sitemap, I get a 'Stylesheet
directed terminator' fatal error, with this trace in the logs:

java.lang.RuntimeException: Stylesheet directed termination
at org.apache.xerces.framework.XMLParser.parse(
at org.xml.sax.helpers.XMLFilterImpl.parse(
at org.xml.sax.helpers.XMLFilterImpl.parse(
at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(
at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(
..which does not help much. 

The offending sitemap part is the following:
  <map:match pattern="blocks/login">
    <map:select type="session-check">
        <map:generate src="pages/blocks/login.xml"/>
        <map:transform src="stylesheets/blocks/login.xsl"/>
        <map:generate src="pages/blocks/logout.xml"/>
        <map:transform src="stylesheets/blocks/logout.xsl"/>

    <map:transform src="stylesheets/blocks/default.xsl"/>

If I comment this block out, the thing works, so something inside causes the
error. The session-check selector is defined in the top of the sitemap of
<map:selector name="session-check" src="org.dyn.cocoon.auth.EJBSessionChecker"/>

and it's placed inside a jar, between two, already working Action classes of

Anyone can enlighten me about what causes the error, or how should I
correctly use my Selector class? 


Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message