Re: Problem using XSP pages

2010-09-07 Thread Jos Snellings

Hi, Shweta,

Please tell us first which version cocoon you deployed. Is that 2.2?

Cheers,
Jos

On 09/07/2010 07:46 AM, Shweta Singhai wrote:


Hi All,

This is Shweta, I am new in cocoon, I configured cocoon block with 
maven server ..and also with ant. For a simple block its working 
properly, but when I create a xsp file and try to run same as  simple 
xml file , then its not working, can any one tell me, is there any  
special setting or configuration require for xsp pages...??


Please help me in run and configuration of xsp pages.

Shweta Singhai

Technical Analyst

Ictect, Inc.

shweta.sing...@ictect.com

The IMPOSSIBLE is often UNTRIED





RE: Problem using XSP pages

2010-09-07 Thread Shweta Singhai
Hi Jos,

 

Yes its cocoon 2.2

 

 

From: Jos Snellings [mailto:jos.snelli...@pandora.be] 
Sent: Tuesday, September 07, 2010 12:02 PM
To: users@cocoon.apache.org
Subject: Re: Problem using XSP pages

 

Hi, Shweta,

Please tell us first which version cocoon you deployed. Is that 2.2?

Cheers,
Jos

On 09/07/2010 07:46 AM, Shweta Singhai wrote: 

Hi All,

 

 

 

This is Shweta, I am new in cocoon, I configured cocoon block with maven
server ..and also with ant. For a simple block its working properly, but
when I create a xsp file and try to run same as  simple xml file , then its
not working, can any one tell me, is there any  special setting or
configuration require for xsp pages...??

 

Please help me in run and configuration of xsp pages.

 

 

 

 

 

 

 

 

 

Shweta Singhai

Technical Analyst

Ictect, Inc.

shweta.sing...@ictect.com

 

The IMPOSSIBLE is often UNTRIED

 

 



Re: Problem using XSP pages

2010-09-07 Thread Jos Snellings

OK, what further details have you got for us?

- logs? is something actually happening, going wrong?
- or do you see no trace of activity at all?
- what is in your sitemap.xmap?

Cheers,
Jos


On 09/07/2010 08:34 AM, Shweta Singhai wrote:


Hi Jos,

Yes its cocoon 2.2

*From:* Jos Snellings [mailto:jos.snelli...@pandora.be]
*Sent:* Tuesday, September 07, 2010 12:02 PM
*To:* users@cocoon.apache.org
*Subject:* Re: Problem using XSP pages

Hi, Shweta,

Please tell us first which version cocoon you deployed. Is that 2.2?

Cheers,
Jos

On 09/07/2010 07:46 AM, Shweta Singhai wrote:

Hi All,

This is Shweta, I am new in cocoon, I configured cocoon block with 
maven server ..and also with ant. For a simple block its working 
properly, but when I create a xsp file and try to run same as  simple 
xml file , then its not working, can any one tell me, is there any  
special setting or configuration require for xsp pages...??


Please help me in run and configuration of xsp pages.

Shweta Singhai

Technical Analyst

Ictect, Inc.

shweta.sing...@ictect.com

The IMPOSSIBLE is often UNTRIED





RE: Problem using XSP pages

2010-09-07 Thread Shweta Singhai
I made a folder with xspdemo name,and create hello.xsp file in it.

In sitemap.xmap,I made this new pipeline for xsp page and write the
following code:

 

map:pipeline id=xspdemo
  map:match pattern =xspdemo
map:generate src =xspdemo/hello.xsp
type=serverpages/
map:transform type =i18n/

map:serialize type=xsl/
  /map:match
map:match pattern=spring-bean
map:call function=demo/
  /map:match
/map:pipeline

 

Browser showing nothing L 

Is there is any thing that I have to do for xsp pages..??

 

From: Jos Snellings [mailto:jos.snelli...@pandora.be] 
Sent: Tuesday, September 07, 2010 12:41 PM
To: users@cocoon.apache.org
Subject: Re: Problem using XSP pages

 

OK, what further details have you got for us?

- logs? is something actually happening, going wrong?
- or do you see no trace of activity at all?
- what is in your sitemap.xmap?

Cheers,
Jos


On 09/07/2010 08:34 AM, Shweta Singhai wrote: 

Hi Jos,

 

Yes its cocoon 2.2

 

 

From: Jos Snellings [mailto:jos.snelli...@pandora.be] 
Sent: Tuesday, September 07, 2010 12:02 PM
To: users@cocoon.apache.org
Subject: Re: Problem using XSP pages

 

Hi, Shweta,

Please tell us first which version cocoon you deployed. Is that 2.2?

Cheers,
Jos

On 09/07/2010 07:46 AM, Shweta Singhai wrote: 

Hi All,

 

 

 

This is Shweta, I am new in cocoon, I configured cocoon block with maven
server ..and also with ant. For a simple block its working properly, but
when I create a xsp file and try to run same as  simple xml file , then its
not working, can any one tell me, is there any  special setting or
configuration require for xsp pages...??

 

Please help me in run and configuration of xsp pages.

 

 

 

 

 

 

 

 

 

Shweta Singhai

Technical Analyst

Ictect, Inc.

shweta.sing...@ictect.com

 

The IMPOSSIBLE is often UNTRIED

 

 

 



Re: Problem using XSP pages

2010-09-07 Thread Jeroen Reijn
I might be mistaking, but I guess your map serialize should be put to xml or
something similar. What does your xsp produce. XML,HTML, or something else?

On Tue, Sep 7, 2010 at 9:39 AM, Shweta Singhai shweta.sing...@ictect.comwrote:

  I made a folder with xspdemo name,and create hello.xsp file in it.

 In sitemap.xmap,I made this new pipeline for xsp page and write the
 following code:



 map:pipeline id=xspdemo
   map:match pattern =xspdemo
 map:generate src =xspdemo/hello.xsp type=
 serverpages/
 map:transform type =i18n/

 map:serialize type=xsl/
   /map:match
 map:match pattern=spring-bean
 map:call function=demo/
   /map:match
 /map:pipeline



 Browser showing nothing L

 Is there is any thing that I have to do for xsp pages….??



 *From:* Jos Snellings [mailto:jos.snelli...@pandora.be]
 *Sent:* Tuesday, September 07, 2010 12:41 PM

 *To:* users@cocoon.apache.org
 *Subject:* Re: Problem using XSP pages



 OK, what further details have you got for us?

 - logs? is something actually happening, going wrong?
 - or do you see no trace of activity at all?
 - what is in your sitemap.xmap?

 Cheers,
 Jos


 On 09/07/2010 08:34 AM, Shweta Singhai wrote:

 Hi Jos,



 Yes its cocoon 2.2





 *From:* Jos Snellings 
 [mailto:jos.snelli...@pandora.bejos.snelli...@pandora.be]

 *Sent:* Tuesday, September 07, 2010 12:02 PM
 *To:* users@cocoon.apache.org
 *Subject:* Re: Problem using XSP pages



 Hi, Shweta,

 Please tell us first which version cocoon you deployed. Is that 2.2?

 Cheers,
 Jos

 On 09/07/2010 07:46 AM, Shweta Singhai wrote:

 Hi All,







 This is Shweta, I am new in cocoon, I configured cocoon block with maven
 server ..and also with ant. For a simple block its working properly, but
 when I create a xsp file and try to run same as  simple xml file , then its
 not working, can any one tell me, is there any  special setting or
 configuration require for xsp pages...??



 Please help me in run and configuration of xsp pages.



















 Shweta Singhai

 Technical Analyst

 Ictect, Inc.

 shweta.sing...@ictect.com



 The IMPOSSIBLE is often UNTRIED









RE: Problem using XSP pages

2010-09-07 Thread Shweta Singhai
Hi,

 

This is the code I am using in my .xsp file.

 

?xml version=1.0 encoding=UTF-8?
?cocoon-process type=xsp?
xsp:page language=java 
xmlns:xsp=http://www.apache.org/1999/XSP;
xsp:logic
String callme=Hello World;
/xsp:logic
document
xsp:exprcallme/xsp:expr
xsp:commentThis is a comment/xsp:comment
/document
/xsp:page

 

When I am running this file the output is same as .xsp file contents.

Can you please tell me where am I lacking?

 

 

Thanks,

Shweta 

 

 

From: Jeroen Reijn [mailto:j.re...@onehippo.com] 
Sent: Tuesday, September 07, 2010 4:31 PM
To: users@cocoon.apache.org
Subject: Re: Problem using XSP pages

 

I might be mistaking, but I guess your map serialize should be put to xml or
something similar. What does your xsp produce. XML,HTML, or something else?

On Tue, Sep 7, 2010 at 9:39 AM, Shweta Singhai shweta.sing...@ictect.com
wrote:

I made a folder with xspdemo name,and create hello.xsp file in it.

In sitemap.xmap,I made this new pipeline for xsp page and write the
following code:

 

map:pipeline id=xspdemo
  map:match pattern =xspdemo
map:generate src =xspdemo/hello.xsp
type=serverpages/
map:transform type =i18n/

map:serialize type=xsl/
  /map:match
map:match pattern=spring-bean
map:call function=demo/
  /map:match
/map:pipeline

 

Browser showing nothing L 

Is there is any thing that I have to do for xsp pages..??

 

From: Jos Snellings [mailto:jos.snelli...@pandora.be] 
Sent: Tuesday, September 07, 2010 12:41 PM


To: users@cocoon.apache.org
Subject: Re: Problem using XSP pages

 

OK, what further details have you got for us?

- logs? is something actually happening, going wrong?
- or do you see no trace of activity at all?
- what is in your sitemap.xmap?

Cheers,
Jos


On 09/07/2010 08:34 AM, Shweta Singhai wrote: 

Hi Jos,

 

Yes its cocoon 2.2

 

 

From: Jos Snellings [mailto:jos.snelli...@pandora.be] 
Sent: Tuesday, September 07, 2010 12:02 PM
To: users@cocoon.apache.org
Subject: Re: Problem using XSP pages

 

Hi, Shweta,

Please tell us first which version cocoon you deployed. Is that 2.2?

Cheers,
Jos

On 09/07/2010 07:46 AM, Shweta Singhai wrote: 

Hi All,

 

 

 

This is Shweta, I am new in cocoon, I configured cocoon block with maven
server ..and also with ant. For a simple block its working properly, but
when I create a xsp file and try to run same as  simple xml file , then its
not working, can any one tell me, is there any  special setting or
configuration require for xsp pages...??

 

Please help me in run and configuration of xsp pages.

 

 

 

 

 

 

 

 

 

Shweta Singhai

Technical Analyst

Ictect, Inc.

shweta.sing...@ictect.com

 

The IMPOSSIBLE is often UNTRIED

 

 

 

 



Re: Problem using XSP pages

2010-09-07 Thread Jeroen Reijn
Try:

map:serialize type=xml/

instead of

map:serialize type=xsl/

Gr,

Jeroen

On Tue, Sep 7, 2010 at 1:10 PM, Shweta Singhai shweta.sing...@ictect.comwrote:

  Hi,



 This is the code I am using in my .xsp file.



 ?xml version*=*1.0 encoding*=*UTF-8?
 ?cocoon*-*process type*=*xsp?
 xsp:page language=java
 xmlns:xsp=http://www.apache.org/1999/XSP;
 xsp:logic
 String callme=Hello World;
 /xsp:logic
 document
 xsp:exprcallme/xsp:expr
 xsp:commentThis is a comment/xsp:comment
 /document
 /xsp:page



 When I am running this file the output is same as .xsp file contents.

 Can you please tell me where am I lacking?





 Thanks,

 Shweta





 *From:* Jeroen Reijn [mailto:j.re...@onehippo.com]
 *Sent:* Tuesday, September 07, 2010 4:31 PM

 *To:* users@cocoon.apache.org
 *Subject:* Re: Problem using XSP pages



 I might be mistaking, but I guess your map serialize should be put to xml
 or something similar. What does your xsp produce. XML,HTML, or something
 else?

 On Tue, Sep 7, 2010 at 9:39 AM, Shweta Singhai shweta.sing...@ictect.com
 wrote:

 I made a folder with xspdemo name,and create hello.xsp file in it.

 In sitemap.xmap,I made this new pipeline for xsp page and write the
 following code:



 map:pipeline id=xspdemo
   map:match pattern =xspdemo
 map:generate src =xspdemo/hello.xsp type=
 serverpages/
 map:transform type =i18n/

 map:serialize type=xsl/
   /map:match
 map:match pattern=spring-bean
 map:call function=demo/
   /map:match
 /map:pipeline



 Browser showing nothing L

 Is there is any thing that I have to do for xsp pages….??



 *From:* Jos Snellings [mailto:jos.snelli...@pandora.be]
 *Sent:* Tuesday, September 07, 2010 12:41 PM


 *To:* users@cocoon.apache.org
 *Subject:* Re: Problem using XSP pages



 OK, what further details have you got for us?

 - logs? is something actually happening, going wrong?
 - or do you see no trace of activity at all?
 - what is in your sitemap.xmap?

 Cheers,
 Jos


 On 09/07/2010 08:34 AM, Shweta Singhai wrote:

 Hi Jos,



 Yes its cocoon 2.2





 *From:* Jos Snellings 
 [mailto:jos.snelli...@pandora.bejos.snelli...@pandora.be]

 *Sent:* Tuesday, September 07, 2010 12:02 PM
 *To:* users@cocoon.apache.org
 *Subject:* Re: Problem using XSP pages



 Hi, Shweta,

 Please tell us first which version cocoon you deployed. Is that 2.2?

 Cheers,
 Jos

 On 09/07/2010 07:46 AM, Shweta Singhai wrote:

 Hi All,







 This is Shweta, I am new in cocoon, I configured cocoon block with maven
 server ..and also with ant. For a simple block its working properly, but
 when I create a xsp file and try to run same as  simple xml file , then its
 not working, can any one tell me, is there any  special setting or
 configuration require for xsp pages...??



 Please help me in run and configuration of xsp pages.



















 Shweta Singhai

 Technical Analyst

 Ictect, Inc.

 shweta.sing...@ictect.com



 The IMPOSSIBLE is often UNTRIED











RE: Problem using XSP pages

2010-09-07 Thread Shweta Singhai
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.

 

Thanks,

Shweta

 

 

From: Jeroen Reijn [mailto:j.re...@onehippo.com] 
Sent: Tuesday, September 07, 2010 5:16 PM
To: users@cocoon.apache.org
Subject: Re: Problem using XSP pages

 

Try:

 

map:serialize type=xml/

 

instead of 

 

map:serialize type=xsl/

 

Gr,

 

Jeroen

On Tue, Sep 7, 2010 at 1:10 PM, Shweta Singhai shweta.sing...@ictect.com
wrote:

Hi,

 

This is the code I am using in my .xsp file.

 

?xml version=1.0 encoding=UTF-8?
?cocoon-process type=xsp?
xsp:page language=java 
xmlns:xsp=http://www.apache.org/1999/XSP;
xsp:logic
String callme=Hello World;
/xsp:logic
document
xsp:exprcallme/xsp:expr
xsp:commentThis is a comment/xsp:comment
/document
/xsp:page

 

When I am running this file the output is same as .xsp file contents.

Can you please tell me where am I lacking?

 

 

Thanks,

Shweta 

 

 

From: Jeroen Reijn [mailto:j.re...@onehippo.com] 
Sent: Tuesday, September 07, 2010 4:31 PM


To: users@cocoon.apache.org
Subject: Re: Problem using XSP pages

 

I might be mistaking, but I guess your map serialize should be put to xml or
something similar. What does your xsp produce. XML,HTML, or something else?

On Tue, Sep 7, 2010 at 9:39 AM, Shweta Singhai shweta.sing...@ictect.com
wrote:

I made a folder with xspdemo name,and create hello.xsp file in it.

In sitemap.xmap,I made this new pipeline for xsp page and write the
following code:

 

map:pipeline id=xspdemo
  map:match pattern =xspdemo
map:generate src =xspdemo/hello.xsp
type=serverpages/
map:transform type =i18n/

map:serialize type=xsl/
  /map:match
map:match pattern=spring-bean
map:call function=demo/
  /map:match
/map:pipeline

 

Browser showing nothing L 

Is there is any thing that I have to do for xsp pages..??

 

From: Jos Snellings [mailto:jos.snelli...@pandora.be] 
Sent: Tuesday, September 07, 2010 12:41 PM


To: users@cocoon.apache.org
Subject: Re: Problem using XSP pages

 

OK, what further details have you got for us?

- logs? is something actually happening, going wrong?
- or do you see no trace of activity at all?
- what is in your sitemap.xmap?

Cheers,
Jos


On 09/07/2010 08:34 AM, Shweta Singhai wrote: 

Hi Jos,

 

Yes its cocoon 2.2

 

 

From: Jos Snellings [mailto:jos.snelli...@pandora.be] 
Sent: Tuesday, September 07, 2010 12:02 PM
To: users@cocoon.apache.org
Subject: Re: Problem using XSP pages

 

Hi, Shweta,

Please tell us first which version cocoon you deployed. Is that 2.2?

Cheers,
Jos

On 09/07/2010 07:46 AM, Shweta Singhai wrote: 

Hi All,

 

 

 

This is Shweta, I am new in cocoon, I configured cocoon block with maven
server ..and also with ant. For a simple block its working properly, but
when I create a xsp file and try to run same as  simple xml file , then its
not working, can any one tell me, is there any  special setting or
configuration require for xsp pages...??

 

Please help me in run and configuration of xsp pages.

 

 

 

 

 

 

 

 

 

Shweta Singhai

Technical Analyst

Ictect, Inc.

shweta.sing...@ictect.com

 

The IMPOSSIBLE is often UNTRIED

 

 

 

 

 

image001.png

Re: Problem using XSP pages

2010-09-07 Thread Johan Cwiklinski
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



RE: Problem using XSP pages

2010-09-07 Thread Shweta Singhai
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__webapp4s5m8/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



RE: Problem using XSP pages

2010-09-07 Thread Shweta Singhai
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__webapp4s5m8/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



RE: Problem using XSP pages

2010-09-07 Thread suyog.doshi
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__webapp4s5m8/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



Re: Problem using XSP pages

2010-09-07 Thread Jasha Joachimsthal
On 7 September 2010 14:44, Shweta Singhai shweta.sing...@ictect.com wrote:

 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__webapp4s5m8/b
 locks/custom-block/sitemap.xmap (line 19 col. 58): The prefix map for
 element map:generator is not bound.

 RequestURI=/custom-block/xspdemo


You probably haven't declared the XML namespace prefix map:

See http://www.w3schools.com/xml/xml_namespaces.asp
The URI is http://apache.org/cocoon/sitemap/1.0

Jasha Joachimsthal

j.joachimst...@onehippo.com - ja...@apache.org

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
San Francisco - Hippo USA Inc. 185 H Street, suite B, Petaluma CA 94952 +1
(707) 7734646





 -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




RE: Problem using XSP pages

2010-09-07 Thread Shweta Singhai
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__webapp4s5m8/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__webapp4s5m8/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



Re: Problem using XSP pages

2010-09-07 Thread Johan Cwiklinski
The begining of the sitemap.xmap should looks like:
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:components
map:generators
  map:generator name=serverpages
src=org.apache.cocoon.generation.ServerPagesGenerator/
/map:generators
[...]
/map:sitemap

Regards,
-- 
Johan Cwiklinski
AJLSM

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



Re: Problem using XSP pages

2010-09-07 Thread Gaurav Kalia

Hi Shweta

Please make sure that you are following the correct hierarchy when 
describing a new generator in sitemap.xmap.


For example:

map:components

map:generators default=file

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


/map:generators

/map:components


Thanks
Gaurav
On Tuesday 07 September 2010 06:46 PM, Shweta Singhai wrote:

I put that line inmap:components  tag, and put themap:components  tag
aftermap: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__webapp4s5m8/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 undermap: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__webapp4s5m8/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,
   



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



RE: Problem using XSP pages

2010-09-07 Thread Shweta Singhai
Yup I have the same lines at the beginning of the sitemap

I think I missed something,,can any other setting we have to done for
xsp pages?

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

The begining of the sitemap.xmap should looks like:
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:components
map:generators
  map:generator name=serverpages
src=org.apache.cocoon.generation.ServerPagesGenerator/
/map:generators
[...]
/map:sitemap

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



RE: Problem using XSP pages

2010-09-07 Thread Shweta Singhai
Ya my sitmap.xmap contain the correct hierarchy.

But still its showing error message:


HTTP ERROR: 500

Fatal error parsing
file:///C:/DOCUME~1/sweta/LOCALS~1/Temp/Jetty_0_0_0_0__webapp4s5m8/b
locks/custom-block/sitemap.xmap (line 118 col. 3): The element type
map:components must be terminated by the matching end-tag
/map:components.

RequestURI=/custom-block/xspdemo/



-Original Message-
From: Gaurav Kalia [mailto:gaurav.ka...@techblue.co.uk] 
Sent: Tuesday, September 07, 2010 7:02 PM
To: users@cocoon.apache.org
Subject: Re: Problem using XSP pages

Hi Shweta

Please make sure that you are following the correct hierarchy when 
describing a new generator in sitemap.xmap.

For example:

map:components

map:generators default=file

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

/map:generators

/map:components


Thanks
Gaurav
On Tuesday 07 September 2010 06:46 PM, Shweta Singhai wrote:
 I put that line inmap:components  tag, and put themap:components  tag
 aftermap: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__webapp4s5m8/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 undermap: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__webapp4s5m8/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,



-
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



Re: Problem using XSP pages

2010-09-07 Thread Gaurav Kalia
Can you check that all the tags are closed. If you look at the error it 
is saying


map:components must be terminated by the matching 
end-tag/map:components




Fatal error parsing
file:///C:/DOCUME~1/sweta/LOCALS~1/Temp/Jetty_0_0_0_0__webapp4s5m8/b
locks/custom-block/sitemap.xmap (line 118 col. 3): The element type
map:components must be terminated by the matching end-tag
/map:components.
   


Thanks
Gaurav

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



RE: Problem using XSP pages

2010-09-07 Thread Shweta Singhai
My map:components tag closed properly. Here is complete code for my
sitemap.xmap.
Please take a review.Let me know if there is any mistake


?xml version=1.0 encoding=UTF-8?
!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--

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:components
map:generators default=file
  map:generator name=serverpages
src=org.apache.cocoon.generation.ServerPagesGenerator/
/map:generators
/map:components

  !--+
  | Definition of the control flow implementation.
  +--
  map:flow language=javascript/

  map:pipelines
!--+
| Demo pipelines
+--

  map:pipeline id=demo
  !-- Simple demo, that show how Cocoon pipelines. --
  map:match pattern=
!--+
| Start generating SAX events inside the pipeline. In this case,
| since no type attribute is specified, the default generator
| is used and this is a regular XML parser that reads the
| given file from the URL included in the src attribute and
| sends the events produced by the parser down the pipeline to
| be processed by the next stage.
+--
map:generate src=demo/welcome.xml/
!--+
| This transformer gets the input SAX events and transforms them
| using the default transformer (the XSLT transformer) thus
| applying the XSLT stylesheet indicated in the src attribute
| and sending the output down the pipeline to be processed by
the
| next stage.
+--
map:transform src=demo/welcome.xslt/
!--+
| The serializer concludes the SAX events journey into the
pipeline
| since it serializes the events it receives into a
representation
| depending on the serializer type. Here we choose the XHMTL
| serializer, which will produce an XHTML representation of the
| SAX stream.
+--
map:serialize type=xhtml/   
  /map:match
 
map:match pattern=spring-bean
map:call function=demo/
  /map:match
/map:pipeline
  map:pipeline id=xspdemo
  map:match pattern =xspdemo
  map:generate src =xspdemo/hello.xsp/

  map:serialize type =xml /
  /map:match
  /map:pipeline
   
map:pipeline id=demo-internal internal-only=true
  !-- This pipeline is invoked by the above flowscript. --
  map:match pattern=screens/spring-bean
map:generate src=demo/spring-bean.jx.xml type=jx/
map:serialize type=xml/
  /map:match
/map:pipeline

!--+
| Default pipelines
+--
map:pipeline id=internal-resource internal-only=true
  !-- Put matchers for internal (accessible only to Cocoon blocks)
resources here
More details:
http://cocoon.zones.apache.org/daisy/cdocs-site-main/g2/1345.html --
  map:match pattern=resource/internal/**
map:read src=resource/internal/{1}/
  /map:match
/map:pipeline

map:pipeline id=external-resource
  !-- Put matchers for external (accessible to the outside world, e.g.
browser) resources here.
More details:
http://cocoon.zones.apache.org/daisy/cdocs-site-main/g2/1345.html --
  map:match pattern=resource/external/**
map:read src=resource/external/{1}/
  /map:match
/map:pipeline

map:pipeline id=service
  !-- Put your servlet service matchers here.
More details:
http://cocoon.zones.apache.org/daisy/cdocs-site-main/g2/1345.html --
/map:pipeline
  /map:pipelines

/map:sitemap

-Original Message-
From: Gaurav Kalia [mailto:gaurav.ka...@techblue.co.uk] 
Sent: Tuesday, September 07, 2010 7:26 PM
To: users@cocoon.apache.org
Subject: Re: Problem using XSP pages

Can you check that all the tags are closed. If you look at the error it 
is saying

map:components must be terminated by the matching 
end-tag/map:components


 Fatal error parsing