Hi Jos, Thanks a lot for the reply
But in the bellow link it says that Jsp can be used as a generator http://cocoon.apache.org/2.1/userdocs/jsp-generator.html I latter added the bellow part to my sitemap.xmap file. <map:components> <map:generators default="file"> <map:generator name="jsp" src="intro"/> </map:generators> </map:components> So my new sitemap file looks like this, <map:sitemap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://apache.org/cocoon/sitemap/1.0 http://cocoon.apache.org/schema/sitemap/cocoon-sitemap-1.0.xsd" xmlns:map="http://apache.org/cocoon/sitemap/1.0" xmlns:avalon="http://cocoon.apache.org/schema/avalon"> <map:components> <map:generators default="file"> <map:generator name="jsp" src="intro"/> </map:generators> </map:components> <map:flow language="javascript"/> <map:pipelines> <map:pipeline id="demo"> <map:match pattern="test"> <map:generate type="jsp" /> <map:transform src="demo/welcome.xslt"/> <map:serialize type="xhtml"/> </map:match> </map:pipeline> </map:pipelines> </map:sitemap> This avoids the "Type 'jsp' does not exist for 'map:generate'" error. Here intro is the jsp file and it returns the simple xml formatted string. But when I enter the " http://localhost:8888/ical/test" in the browser it now gives the following error, javax.servlet.ServletException: org.springframework.beans.factory.BeanDefinition StoreException: Unable to read Avalon configuration from 'sitemap.xmap' .; nested exception is org.apache.avalon.framework.configuration.ConfigurationException: Unable to create class for component with role org.apache.cocoon.generation.Gene rator/jsp with class: intro Appreciate any advise, Thanks and regards, Venura. -----Original Message----- From: Jos Snellings [mailto:jos.snelli...@pandora.be] Sent: Wednesday, March 03, 2010 1:57 PM To: dev@cocoon.apache.org Subject: Re: Type 'jsp' does not exist for 'map:generate' Hi again, I am sorry. xsp does not exist anymore from 2.2. My mistake. I responded in haste. Jos On Wed, 2010-03-03 at 09:21 +0100, Jos Snellings wrote: > Hi, > > 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. > > Cheers > > > 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="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://apache.org/cocoon/sitemap/1.0 > > http://cocoon.apache.org/schema/sitemap/cocoon-sitemap-1.0.xsd" > > xmlns:map="http://apache.org/cocoon/sitemap/1.0"> > > <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. > > > > > > > > > > >