I put that line in <map:components> tag, and put the <map:components> tag
after <map:sitemap> tag in sitemap.xmap file.

But aganin its giving error:(  Error is:

HTTP ERROR: 500

Unable to read Avalon configuration from 'sitemap.xmap'.; nested exception
is org.apache.avalon.framework.configuration.ConfigurationException: Unknown
component type 'generator' at
file:///C:/DOCUME~1/sweta/LOCALS~1/Temp/Jetty_0_0_0_0_8888_webapp____4s5m8/b
locks/custom-block/sitemap.xmap:28:58

RequestURI=/custom-block/xspdemo/


-----Original Message-----
From: suyog.do...@wipro.com [mailto:suyog.do...@wipro.com] 
Sent: Tuesday, September 07, 2010 6:35 PM
To: users@cocoon.apache.org; shweta.sing...@ictect.com
Subject: RE: Problem using XSP pages

Hi Shweta,

You should put this line under <map:components> tag.

Suyog Uttam Doshi
Senior Software Engineer
 
Wipro Technologies
Plot No.31,MIDC,
Rajiv Gandhi Infotech Park,
Hinjewadi,Phase II,
Pune- 411057. India
Tel:+91-20-39105229;
Extn.5229 Direct: +91-20-39105229; 
Mobile:+91- 9970320066
suyog.do...@wipro.com
www.wipro.com
 
 
 
 
-----Original Message-----
From: Shweta Singhai [mailto:shweta.sing...@ictect.com] 
Sent: Tuesday, September 07, 2010 6:23 PM
To: users@cocoon.apache.org; shweta.sing...@ictect.com
Subject: RE: Problem using XSP pages

Actually where I need to put this line, means at which place in
sitemap.xmap.


-----Original Message-----
From: Shweta Singhai [mailto:shweta.sing...@ictect.com] 
Sent: Tuesday, September 07, 2010 6:14 PM
To: users@cocoon.apache.org
Subject: RE: Problem using XSP pages

Hi,

When I Put this 

<map:generator name="serverpages"
src="org.apache.cocoon.generation.ServerPagesGenerator"/> 


in my sitemap, then its giving error :(

error is:

HTTP ERROR: 500

Fatal error parsing
file:///C:/DOCUME~1/sweta/LOCALS~1/Temp/Jetty_0_0_0_0_8888_webapp____4s5m8/b
locks/custom-block/sitemap.xmap (line 19 col. 58): The prefix "map" for
element "map:generator" is not bound.

RequestURI=/custom-block/xspdemo




-----Original Message-----
From: Johan Cwiklinski [mailto:johan.cwiklin...@ajlsm.com] 
Sent: Tuesday, September 07, 2010 5:56 PM
To: users@cocoon.apache.org
Subject: Re: Problem using XSP pages

Hi,

Le 07/09/2010 14:12, Shweta Singhai a écrit :
> When I try
> 
>  
> 
> <map:serialize type="xml"/> in my sitemap.xmap
> 
>  
> 
> Then my browser showing:
> 
> As Output of xsp page. But I think its not a proper output. I don't know
> where I did mistake. Can any one tell me please.

Looks like your XSP page is simply read, not executed.

If you have properly build the XSP block (that is no longer shipped as
default in cocoon 2.2), maybe you have missed to declare the generator?

You should have added something like the following in your sitemap.xmap:
<map:generator name="serverpages"
src="org.apache.cocoon.generation.ServerPagesGenerator"/>

> 
>  
> 
> Thanks,
> 
> Shweta
> 
>  

Regards,
-- 
Johan Cwiklinski
AJLSM

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email. 

www.wipro.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

Reply via email to