cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venura Kahawala" <>
Subject RE: Type 'jsp' does not exist for 'map:generate'
Date Wed, 03 Mar 2010 13:51:25 GMT
Hi Robby,

Thanks for the reply, but the JSPGenerator is mentioned there, please help me with the following

Now my sitemap file looks lik this,

        <map:generators default="file">
            <map:generator name="jsp" src="org.apache.cocoon.generation.JSPGenerator"/>

        <map:pipeline id="demo">

            <map:match pattern="test">
                <map:generate type="jsp" src="intro.jsp"/>
                <map:transform src="demo/welcome.xslt"/>
                <map:serialize type="xhtml"/>

And my jsp file is in the \target\rcl\webapp\WEB-INF\intro.jsp

Jsp file content is as follows,

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert
title here</title> </head> <body> Test jsp content </body> </html>

Now I get the following error

javax.servlet.ServletException: org.apache.cocoon.ProcessingException: You must not reference
a file outside of the servlet context at file:///D:/Projects/cocoonProjects/ical/target/rcl/webapp/.
at <map:serialize type="xhtml"> - file:///D:/Projects/cocoonProjects/ical/./src/main/resources/COB-INF/sitemap.xmap:88:46
at <map:transform> - file:///D:/Projects/cocoonProjects/ical/./src/main/resources/COB-INF/sitemap.xmap:87:57
at <map:generate type="jsp"> - file:///D:/Projects/cocoonProjects/ical/./src/main/resources/COB-INF/sitemap.xmap:86:59
at <map:match> - file:///D:/Projects/cocoonProjects/ical/./src/main/resources/COB-INF/sitemap.xmap:85:39

Can anybody advise me how to correct this error, Any advise is appreciated,

Thanks and regards,

-----Original Message-----
From: Robby Pelssers [] 
Sent: Wednesday, March 03, 2010 1:58 PM
Subject: RE: Type 'jsp' does not exist for 'map:generate'

All known generator types are documented at

Kind regards,

-----Original Message-----
From: Jos Snellings [] 
Sent: Wednesday, March 03, 2010 9:21 AM
Subject: Re: Type 'jsp' does not exist for 'map:generate'


Maybe you mean: "
<generate type="xsp" src="intro.xsp"/>

an xsp page is a special variant of a jsp page. 

As far as I know, plain jsp does not fit in cocoon.


On Wed, 2010-03-03 at 12:25 +0530, Venura Kahawala wrote:
> Hi,
> For cocoon 2.2, with maven, I have this pipeline in my experimental sitemap-file:
> <map:sitemap xmlns:xsi=""
>              xsi:schemaLocation=""
>              xmlns:map=""> 
>     <map:flow language="javascript"/>
>     <map:pipelines>
>         <map:match pattern="intro.jsp">
>                 <map:generate type="jsp" src="intro.jsp"/>
>                 <map:transform src="demo/welcome.xslt"/>
>                 <map:serialize type="xhtml"/>
>             </map:match>
>     </map:pipeline> 
> </map:sitemap>
> When I run the maven command “mvn jetty-run” I get the following error
> Caused by: org.apache.avalon.framework.configuration.ConfigurationException: Ty
> e 'jsp' does not exist for 'map:generate'
> Is there something missing in my sitemap? Or is there something I have to do with maven
or do I have to add some
> other configurations. And if there are other configurations please advise me where I
can find those files in my application. Please advise me.
> Greetings and thanks for helping!
> Venura.

View raw message