You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Chitharanjan Das <cd...@accordiasys.com> on 2002/05/22 02:00:13 UTC

Very Important: Deploy Servlets in the Cocoon Context

Hello All,
	I am in process of developing an automated client and server
side form validation processing.
I need to know how to invoke a Servlet in cocoon.
The Servlet needs to be in the same context of cocoon (i.e. should be
able to access the session and request objects with other pipelines).

Could any one please provide me with the following?
1. Sample Sitemap entry
2. Any configurations (web,xml etc.)
3. Point me to some documentation (is there any ServletGenerator like
JSP generator)

Thanks in advance,
Chiths




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: pls confirm: cocoon won't work on OSX

Posted by Joseph Jupin <jo...@fe77.com>.
I don't know why, but for client Mac OS X - I needed to remove all of 
that stuff and any references in the sitemap to the "svg" calls...  It 
may have to do with the way java handles the windowing stuff through 
Apple's interface...  not for sure.  anyway, once that was removed, it 
works like a charm.

Haven't tried to update to 2.0.1 or higher yet - nor have I tried 
tomcat 4.03 or higher - those are to be evaulated later on after the 
current phase of my projects are completed.

Though, I would like to see you comments on noticing anything else 
different for the server side of Mac OS X - that's where everything 
will eventually reside.  cool!

peace.  JOe...


On Wed, 29 May 2002 17:36:17 -0500
  "Zack Angelo" <za...@nostromocorp.com> wrote:
>That's strange. C2 is running fine under OS X Server for me with all 
>of
>the Batik stuff installed. 
>
>-Zack
>
>> -----Original Message-----
>> From: Paul Kelly [mailto:pjkelly5@rogers.com]
>> Sent: Wednesday, May 29, 2002 3:46 PM
>> To: cocoon-users@xml.apache.org
>> Cc: Gary Lawrence Murphy
>> Subject: Re: pls confirm: cocoon won't work on OSX
>> 
>> Thanks JOe and everyone else who responded. For the record here's 
>>what
>I
>> did:
>> 
>> 1) Re-installed tomcat 4.0.1 as per:
>> 
>> http://developer.apple.com/internet/macosx/tomcat1.html
>> 
>> 2) Re-installed cocoon 2.0 as per:
>> 
>> http://xml.apache.org/cocoon/installing/index.html
>> 
>> 3) Looked in the archives for clues regarding "remove all batik
>> stuff" and found:
>> 
>> http://www.mail-archive.com/cocoon-users@xml.apache.org/msg12913.html
>> 
>> Thanks Bert Van Kets
>> 
>> 4) Removed all xml branches in webapps/cocoon/sitemap.xmap 
>>containing
>> the strings "svg", "pdf" and "fop".
>> 
>> 5) Removed batik-libs.jar and fop-0_20_1-dev.jar from
>> webapps/cocoon/WEB-INF/lib/
>> 
>> 6) Started up Tomcat, went to localhost:8080/cocoon/ and it worked!
>> 
>> Only problem I noticed is that the docs can't be accessed from the
>> cocoon welcome page. Must have svg/fop/pdf-realted stuff in there?
>> 
>> Hopefully this mail will take care of this for other OS X newbie
>> users. Typing OS X into the archive serach engine doesn't do much.
>> 
>> Thanks
>> Paul
>> 
>> 
>> >currently have Tomcat 4.0.1 and Cocoon 2.0 running on Mac OS X
>> >10.1.4...  just make sure you remove all the batik stuff and you
>> >should be golden...
>> >
>> >peace.  JOe...
>> >
>> >On Tue, 28 May 2002 17:50:39 -0400
>> >  Paul Kelly <pj...@rogers.com> wrote:
>> >>I've tried the following:
>> >>
>> >>Tomcat 4.0.1 w/ cocoon 2.0
>> >>Tomcat 4.0.1 w/ cocoon 2.0.2
>> >>Tomcat 4.0.4b1 w/ cocoon 2.0
>> >>Jetty 4 w/ cocoon 2.0
>> >>Tomcat 4.0.4b1 w/ cocoon 1.8
>> >>
>> >>Each time the servlet container works fine, cocoon does not. The
>> >>only luck I've had is with Murray Todd's old pkg file which is no
>> >>longer available and is one year out of date.
>> >>
>> >>I am about ready to give up. Has anyone out there actually
>> >>installed cocoon 2 on OS X? That's all I need to know.
>> >>
>> >>--paul
>> >>
>>
>>>---------------------------------------------------------------------
>> >>Please check that your question has not already been answered in 
>>the
>> >>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>> >>
>> >>To unsubscribe, e-mail: <co...@xml.apache.org>
>> >>For additional commands, e-mail: 
>><co...@xml.apache.org>
>> >>
>> >
>> >peace.  JOe...
>> >
>> >---------------------------------------------------------------------
>> >Please check that your question has not already been answered in 
>>the
>> >FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>> >
>> >To unsubscribe, e-mail: <co...@xml.apache.org>
>> >For additional commands, e-mail: <co...@xml.apache.org>
>> 
>> 
>> other keywords: apple macintosh crash crashes
>> 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> Please check that your question has not already been answered in the
>> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>> 
>> To unsubscribe, e-mail: <co...@xml.apache.org>
>> For additional commands, e-mail: <co...@xml.apache.org>
>
>
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>
>

peace.  JOe...

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: pls confirm: cocoon won't work on OSX

Posted by Zack Angelo <za...@nostromocorp.com>.
That's strange. C2 is running fine under OS X Server for me with all of
the Batik stuff installed. 

-Zack

> -----Original Message-----
> From: Paul Kelly [mailto:pjkelly5@rogers.com]
> Sent: Wednesday, May 29, 2002 3:46 PM
> To: cocoon-users@xml.apache.org
> Cc: Gary Lawrence Murphy
> Subject: Re: pls confirm: cocoon won't work on OSX
> 
> Thanks JOe and everyone else who responded. For the record here's what
I
> did:
> 
> 1) Re-installed tomcat 4.0.1 as per:
> 
> http://developer.apple.com/internet/macosx/tomcat1.html
> 
> 2) Re-installed cocoon 2.0 as per:
> 
> http://xml.apache.org/cocoon/installing/index.html
> 
> 3) Looked in the archives for clues regarding "remove all batik
> stuff" and found:
> 
> http://www.mail-archive.com/cocoon-users@xml.apache.org/msg12913.html
> 
> Thanks Bert Van Kets
> 
> 4) Removed all xml branches in webapps/cocoon/sitemap.xmap containing
> the strings "svg", "pdf" and "fop".
> 
> 5) Removed batik-libs.jar and fop-0_20_1-dev.jar from
> webapps/cocoon/WEB-INF/lib/
> 
> 6) Started up Tomcat, went to localhost:8080/cocoon/ and it worked!
> 
> Only problem I noticed is that the docs can't be accessed from the
> cocoon welcome page. Must have svg/fop/pdf-realted stuff in there?
> 
> Hopefully this mail will take care of this for other OS X newbie
> users. Typing OS X into the archive serach engine doesn't do much.
> 
> Thanks
> Paul
> 
> 
> >currently have Tomcat 4.0.1 and Cocoon 2.0 running on Mac OS X
> >10.1.4...  just make sure you remove all the batik stuff and you
> >should be golden...
> >
> >peace.  JOe...
> >
> >On Tue, 28 May 2002 17:50:39 -0400
> >  Paul Kelly <pj...@rogers.com> wrote:
> >>I've tried the following:
> >>
> >>Tomcat 4.0.1 w/ cocoon 2.0
> >>Tomcat 4.0.1 w/ cocoon 2.0.2
> >>Tomcat 4.0.4b1 w/ cocoon 2.0
> >>Jetty 4 w/ cocoon 2.0
> >>Tomcat 4.0.4b1 w/ cocoon 1.8
> >>
> >>Each time the servlet container works fine, cocoon does not. The
> >>only luck I've had is with Murray Todd's old pkg file which is no
> >>longer available and is one year out of date.
> >>
> >>I am about ready to give up. Has anyone out there actually
> >>installed cocoon 2 on OS X? That's all I need to know.
> >>
> >>--paul
> >>
>
>>---------------------------------------------------------------------
> >>Please check that your question has not already been answered in the
> >>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >>
> >>To unsubscribe, e-mail: <co...@xml.apache.org>
> >>For additional commands, e-mail: <co...@xml.apache.org>
> >>
> >
> >peace.  JOe...
> >
> >---------------------------------------------------------------------
> >Please check that your question has not already been answered in the
> >FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> >To unsubscribe, e-mail: <co...@xml.apache.org>
> >For additional commands, e-mail: <co...@xml.apache.org>
> 
> 
> other keywords: apple macintosh crash crashes
> 
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: pls confirm: cocoon won't work on OSX

Posted by Paul Kelly <pj...@rogers.com>.
>There was a problem with tomcat 4.0.2 and cocoon 2.x but all others 
>should work out-of-the-box. There's no need to remove batik stuff - 
>it works fine under OSX.

Well, all I know is that getting rid of it made it work :-) Now it's 
on to getting apache and tomcat/cocoon to play nice. Tomcat says 
mod_webapps, cocoon says mod_jk. Which will it be? Right now, neither 
works for me.--paul

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: pls confirm: cocoon won't work on OSX

Posted by Phil Blake <ph...@tcp.net.au>.
There was a problem with tomcat 4.0.2 and cocoon 2.x but all others 
should work out-of-the-box. There's no need to remove batik stuff - it 
works fine under OSX.

> Hopefully this mail will take care of this for other OS X newbie users. 
> Typing OS X into the archive serach engine doesn't do much.

I've found that OSX's Java is excellent. It is very rare to see anything 
OSX specific for pure java software so don't be too disappointed that 
you didn't find much on the list. There's not much there because there 
not much you have to take into account with java on OSX.

Have fun,

Phil


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: pls confirm: cocoon won't work on OSX

Posted by Paul Kelly <pj...@rogers.com>.
Thanks JOe and everyone else who responded. For the record here's what I did:

1) Re-installed tomcat 4.0.1 as per:

http://developer.apple.com/internet/macosx/tomcat1.html

2) Re-installed cocoon 2.0 as per:

http://xml.apache.org/cocoon/installing/index.html

3) Looked in the archives for clues regarding "remove all batik 
stuff" and found:

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg12913.html

Thanks Bert Van Kets

4) Removed all xml branches in webapps/cocoon/sitemap.xmap containing 
the strings "svg", "pdf" and "fop".

5) Removed batik-libs.jar and fop-0_20_1-dev.jar from 
webapps/cocoon/WEB-INF/lib/

6) Started up Tomcat, went to localhost:8080/cocoon/ and it worked!

Only problem I noticed is that the docs can't be accessed from the 
cocoon welcome page. Must have svg/fop/pdf-realted stuff in there?

Hopefully this mail will take care of this for other OS X newbie 
users. Typing OS X into the archive serach engine doesn't do much.

Thanks
Paul


>currently have Tomcat 4.0.1 and Cocoon 2.0 running on Mac OS X 
>10.1.4...  just make sure you remove all the batik stuff and you 
>should be golden...
>
>peace.  JOe...
>
>On Tue, 28 May 2002 17:50:39 -0400
>  Paul Kelly <pj...@rogers.com> wrote:
>>I've tried the following:
>>
>>Tomcat 4.0.1 w/ cocoon 2.0
>>Tomcat 4.0.1 w/ cocoon 2.0.2
>>Tomcat 4.0.4b1 w/ cocoon 2.0
>>Jetty 4 w/ cocoon 2.0
>>Tomcat 4.0.4b1 w/ cocoon 1.8
>>
>>Each time the servlet container works fine, cocoon does not. The 
>>only luck I've had is with Murray Todd's old pkg file which is no 
>>longer available and is one year out of date.
>>
>>I am about ready to give up. Has anyone out there actually 
>>installed cocoon 2 on OS X? That's all I need to know.
>>
>>--paul
>>
>>---------------------------------------------------------------------
>>Please check that your question has not already been answered in the
>>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>>
>>To unsubscribe, e-mail: <co...@xml.apache.org>
>>For additional commands, e-mail: <co...@xml.apache.org>
>>
>
>peace.  JOe...
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>


other keywords: apple macintosh crash crashes




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: pls confirm: cocoon won't work on OSX

Posted by Phil Blake <ph...@tcp.net.au>.
There shouldn't be a problem with the batik libs - they seem to work 
fine on OSX.

On Thursday, May 30, 2002, at 01:07 AM, Joseph Jupin wrote:

> currently have Tomcat 4.0.1 and Cocoon 2.0 running on Mac OS X 
> 10.1.4...  just make sure you remove all the batik stuff and you should 
> be golden...
>
> peace.  JOe...
>
> On Tue, 28 May 2002 17:50:39 -0400
>  Paul Kelly <pj...@rogers.com> wrote:
>> I've tried the following:
>>
>> Tomcat 4.0.1 w/ cocoon 2.0
>> Tomcat 4.0.1 w/ cocoon 2.0.2
>> Tomcat 4.0.4b1 w/ cocoon 2.0
>> Jetty 4 w/ cocoon 2.0
>> Tomcat 4.0.4b1 w/ cocoon 1.8
>>
>> Each time the servlet container works fine, cocoon does not. The only 
>> luck I've had is with Murray Todd's old pkg file which is no longer 
>> available and is one year out of date.
>>
>> I am about ready to give up. Has anyone out there actually installed 
>> cocoon 2 on OS X? That's all I need to know.
>>
>> --paul
>>
>> ---------------------------------------------------------------------
>> Please check that your question has not already been answered in the
>> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>>
>> To unsubscribe, e-mail: <co...@xml.apache.org>
>> For additional commands, e-mail: <co...@xml.apache.org>
>>
>
> peace.  JOe...
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: pls confirm: cocoon won't work on OSX

Posted by Moritz Petersen <de...@pnpconsult.com>.
paul,

fyi: cocoon 2 works fine on my mac (mac os x 10.1.4, jsdk1.3.1u1), but i am
using jboss 2.2.2. + tomcat 3.2.2 (the project is a little bit older, and we
rely on the start configuration ;-)

-mo.

> >I am about ready to give up. Has anyone out there actually installed
> >cocoon 2 on OS X? That's all I need to know.


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: pls confirm: cocoon won't work on OSX

Posted by Joseph Jupin <jo...@fe77.com>.
currently have Tomcat 4.0.1 and Cocoon 2.0 running on Mac OS X 
10.1.4...  just make sure you remove all the batik stuff and you 
should be golden...

peace.  JOe...

On Tue, 28 May 2002 17:50:39 -0400
  Paul Kelly <pj...@rogers.com> wrote:
>I've tried the following:
>
>Tomcat 4.0.1 w/ cocoon 2.0
>Tomcat 4.0.1 w/ cocoon 2.0.2
>Tomcat 4.0.4b1 w/ cocoon 2.0
>Jetty 4 w/ cocoon 2.0
>Tomcat 4.0.4b1 w/ cocoon 1.8
>
>Each time the servlet container works fine, cocoon does not. The only 
>luck I've had is with Murray Todd's old pkg file which is no longer 
>available and is one year out of date.
>
>I am about ready to give up. Has anyone out there actually installed 
>cocoon 2 on OS X? That's all I need to know.
>
>--paul
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>
>

peace.  JOe...

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: pls confirm: cocoon won't work on OSX

Posted by Deepak Mehta <de...@deeeep.com>.
Paul,

I am using the Tomcat 404b2, Tomcat 401, Tomcat 403 and Tomcat 331 with
Cocoon 202 out of the box, unix binaries. And no problems, you just need to
set the JAVA_HOME variable to /Library/Java/Home which points to the JDK 131

What is your problem?

Regards
Deeeep

On 28/5/02 23:50, "Paul Kelly" <pj...@rogers.com> wrote:

> I've tried the following:
> 
> Tomcat 4.0.1 w/ cocoon 2.0
> Tomcat 4.0.1 w/ cocoon 2.0.2
> Tomcat 4.0.4b1 w/ cocoon 2.0
> Jetty 4 w/ cocoon 2.0
> Tomcat 4.0.4b1 w/ cocoon 1.8
> 
> Each time the servlet container works fine, cocoon does not. The only
> luck I've had is with Murray Todd's old pkg file which is no longer
> available and is one year out of date.
> 
> I am about ready to give up. Has anyone out there actually installed
> cocoon 2 on OS X? That's all I need to know.
> 
> --paul
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>

-- 
---------------------------------------------------------------------------
Deepak 'Deep' Mehta
E-mail: deep@deeeep.com
URL: http://www.deeeep.com/

PGP Fingerprint: 837E B8E6 6AF4 6675 2730  0848 7731 09F5 3445 00A5

Money-making is a wonderful thing (Maxin & Skin in Carmen Queasy)
---------------------------------------------------------------------------


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


pls confirm: cocoon won't work on OSX

Posted by Paul Kelly <pj...@rogers.com>.
I've tried the following:

Tomcat 4.0.1 w/ cocoon 2.0
Tomcat 4.0.1 w/ cocoon 2.0.2
Tomcat 4.0.4b1 w/ cocoon 2.0
Jetty 4 w/ cocoon 2.0
Tomcat 4.0.4b1 w/ cocoon 1.8

Each time the servlet container works fine, cocoon does not. The only 
luck I've had is with Murray Todd's old pkg file which is no longer 
available and is one year out of date.

I am about ready to give up. Has anyone out there actually installed 
cocoon 2 on OS X? That's all I need to know.

--paul

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Vadim : Very Important: Deploy Servlets in the Cocoon Context

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Deepak Mehta [mailto:deep@deeeep.com]
> 
> Vadim,
> 
> If I use the html generator on this, I still get:

May be this is bug in the HTML generator; try it with xpath parameter -
it works for yahoo sample.


Vadim

...

> java.lang.NullPointerException
>     at org.apache.xml.utils.TreeWalker.startNode(TreeWalker.java:373)
>     at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:183)
>     at
>
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transform
erId
> entityImpl.java:325)
>     at
org.apache.cocoon.xml.dom.DOMStreamer.stream(DOMStreamer.java:143)
>     at
>
org.apache.cocoon.generation.HTMLGenerator.generate(HTMLGenerator.java:2
36)
>     at
>
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
ngEv
> entPipeline.java:251)
>     at
>
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingS
> treamPipeline.java:399)
>     at
>
org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.matchN1002D(/Library
/Jon
>
as/Tomcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount
/meb
> catalog/sitemap_xmap.java:506)
>     at
>
org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.process(/Library/Jon
as/T
>
omcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/meb
cata
> log/sitemap_xmap.java:381)
>     at
>
org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.process(/Library/Jon
as/T
>
omcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/meb
cata
> log/sitemap_xmap.java:321)
>     at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
>     at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
>     at
>
org.apache.cocoon.www.sitemap_xmap.matchN105AF(/Library/Jonas/Tomcat33/w
ork/
>
DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:6670
)
>     at
>
org.apache.cocoon.www.sitemap_xmap.process(/Library/Jonas/Tomcat33/work/
DEFA
> ULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3341)
>     at
>
org.apache.cocoon.www.sitemap_xmap.process(/Library/Jonas/Tomcat33/work/
DEFA
> ULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3085)
>     at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
>     at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
>     at
>
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154
)
>     at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
>     at
>
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>     at
>
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:57
4)
>     at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
>     at org.apache.tomcat.core.Handler.service(Handler.java:235)
>     at
>
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
>     at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:91
> 7)
>     at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
>     at
>
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Htt
p10I
> nterceptor.java:176)
>     at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:49
4)
>     at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.jav
> a:516)
>     at java.lang.Thread.run(Thread.java:496)
> 
> 
> request-uri
> 
> /cocoon/mount/mebcatalog/catalog.xml
> 
> 
> path-info
> 
> mount/mebcatalog/catalog.xml
> 
>
------------------------------------------------------------------------
> 
> On 23/5/02 15:56, "Vadim Gritsenko" <va...@verizon.net>
wrote:
> 
> >> From: Chitharanjan Das [mailto:cdas@accordiasys.com]
> >>
> >> Thanks for your reply....
> >>
> >> There was a thread abt 3 -4 months where there was discussion abt
> >> invoking Servlets. There was a sitemap entry associated with that
as
> >> well.
> >
> > <map:generate src="http://localhost:8080/cocoon/myservlet"/>
> >
> >
> >> I guess it was Vadim or someone else who were answering this...
> >>
> >> IIRC, there was no need to register the Servlet also,
> >
> > Never heard about this. In the end, Cocoon is *not* servlet engine
and
> > does not tries to replace one.
> >
> >
> >> it was addressed
> >> by servlet class (or something). I think there was a special
generator
> >> for that..
> >
> > The only alternative to the snippet above is
> > CocoonFilterGeneratorImpl.java in scratchpad of 2.1
> >
> >
> > Vadim
> >
...


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Vadim : Very Important: Deploy Servlets in the Cocoon Context

Posted by Deepak Mehta <de...@deeeep.com>.
Vadim,

If I use the html generator on this, I still get:

Cocoon 2 - Internal server error
------------------------------------------------------------------------

type fatal

message Exception in HTMLGenerator.generate()

description org.apache.cocoon.ProcessingException: Exception in
HTMLGenerator.generate(): java.lang.NullPointerException

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Exception in
HTMLGenerator.generate(): java.lang.NullPointerException
    at 
org.apache.cocoon.generation.HTMLGenerator.generate(HTMLGenerator.java:249)
    at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:251)
    at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
    at 
org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.matchN1002D(/Library/Jon
as/Tomcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/meb
catalog/sitemap_xmap.java:506)
    at 
org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.process(/Library/Jonas/T
omcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/mebcata
log/sitemap_xmap.java:381)
    at 
org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.process(/Library/Jonas/T
omcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/mebcata
log/sitemap_xmap.java:321)
    at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
    at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
    at 
org.apache.cocoon.www.sitemap_xmap.matchN105AF(/Library/Jonas/Tomcat33/work/
DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:6670)
    at 
org.apache.cocoon.www.sitemap_xmap.process(/Library/Jonas/Tomcat33/work/DEFA
ULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3341)
    at 
org.apache.cocoon.www.sitemap_xmap.process(/Library/Jonas/Tomcat33/work/DEFA
ULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3085)
    at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
    at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
    at 
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
    at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
    at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
    at 
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
    at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
    at org.apache.tomcat.core.Handler.service(Handler.java:235)
    at 
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
    at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
7)
    at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
    at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I
nterceptor.java:176)
    at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
    at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
    at java.lang.Thread.run(Thread.java:496)
java.lang.NullPointerException
    at org.apache.xml.utils.TreeWalker.startNode(TreeWalker.java:373)
    at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:183)
    at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerId
entityImpl.java:325)
    at org.apache.cocoon.xml.dom.DOMStreamer.stream(DOMStreamer.java:143)
    at 
org.apache.cocoon.generation.HTMLGenerator.generate(HTMLGenerator.java:236)
    at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:251)
    at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
    at 
org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.matchN1002D(/Library/Jon
as/Tomcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/meb
catalog/sitemap_xmap.java:506)
    at 
org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.process(/Library/Jonas/T
omcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/mebcata
log/sitemap_xmap.java:381)
    at 
org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.process(/Library/Jonas/T
omcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/mebcata
log/sitemap_xmap.java:321)
    at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
    at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
    at 
org.apache.cocoon.www.sitemap_xmap.matchN105AF(/Library/Jonas/Tomcat33/work/
DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:6670)
    at 
org.apache.cocoon.www.sitemap_xmap.process(/Library/Jonas/Tomcat33/work/DEFA
ULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3341)
    at 
org.apache.cocoon.www.sitemap_xmap.process(/Library/Jonas/Tomcat33/work/DEFA
ULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3085)
    at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
    at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
    at 
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
    at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
    at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
    at 
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
    at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
    at org.apache.tomcat.core.Handler.service(Handler.java:235)
    at 
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
    at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
7)
    at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
    at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I
nterceptor.java:176)
    at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
    at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
    at java.lang.Thread.run(Thread.java:496)


request-uri

/cocoon/mount/mebcatalog/catalog.xml


path-info

mount/mebcatalog/catalog.xml

------------------------------------------------------------------------

On 23/5/02 15:56, "Vadim Gritsenko" <va...@verizon.net> wrote:

>> From: Chitharanjan Das [mailto:cdas@accordiasys.com]
>> 
>> Thanks for your reply....
>> 
>> There was a thread abt 3 -4 months where there was discussion abt
>> invoking Servlets. There was a sitemap entry associated with that as
>> well.
> 
> <map:generate src="http://localhost:8080/cocoon/myservlet"/>
> 
> 
>> I guess it was Vadim or someone else who were answering this...
>> 
>> IIRC, there was no need to register the Servlet also,
> 
> Never heard about this. In the end, Cocoon is *not* servlet engine and
> does not tries to replace one.
> 
> 
>> it was addressed
>> by servlet class (or something). I think there was a special generator
>> for that..
> 
> The only alternative to the snippet above is
> CocoonFilterGeneratorImpl.java in scratchpad of 2.1
> 
> 
> Vadim
> 
> 
>> Regds,
>> Chiths
>> 
>> -----Original Message-----
>> From: Peter Schwenke [mailto:peter@bluetoad.com.au]
>> Sent: Wednesday, May 22, 2002 4:28 PM
>> To: cocoon-users@xml.apache.org
>> Subject: RE: Very Important: Deploy Servlets in the Cocoon Context
>> 
>> 
>> If you want to run the servlets in your cocoon webapp but not be
>> handled by cocoon just set them up in your web.xml and call them in
>> the usual way.   That is just a normal servlet container issue.  They
>> are just additional servlets to the cocoon servlet that way.  In the
>> system I've been developing on I use an MVC architecture where
>> servlets forward to JSPs which are processed by cocoon.
>> 
>> If you want to process the servlets from cocoon the thread  you are
>> thinking of could have been "Servlets to XSL" and "Servlet to XSL
>> possible".
>> 
>> 
>> ...Peter
>> 
>> Chitharanjan Das writes:
>>> IIRC, There was an email thread depicting the issue of invoking
>> servlets
>>> in
>>> Cocoon 2.0. I tried in the mailing lists and could not get my hands
>> on
>>> them.
>>> 
>>> There are a lot of utilities which are developed in servlet
> framework
>>> out there. It would be a shame if we cannot use them inside Cocoon.
>>> 
>>> .....
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> -----Original Message-----
>>> From: William Brogden [mailto:wbrogden@bga.com]
>>> Sent: Wednesday, May 22, 2002 12:58 PM
>>> To: cocoon-users@xml.apache.org
>>> Subject: RE: Very Important: Deploy Servlets in the Cocoon Context
>>> 
>>>> -----Original Message-----
>>>> From: Chitharanjan Das [mailto:cdas@accordiasys.com]
>>>> Sent: Wednesday, May 22, 2002 1:47 PM
>>>> To: cocoon-users@xml.apache.org
>>>> Subject: RE: Very Important: Deploy Servlets in the Cocoon
> Context
>>>> 
>>>> 
>>>> 
>>>> I am posting it again ..
>>>> 
>>>> Is there a way to invoke a servlet in the same context of cocoon.
>>>> 
>>>> i.e if the servlet were to be called from an XSP (say..) they
>> should
>>>> share the same session...
>>>> 
>>>> regds,
>>>> Chiths
>>> 
>>>  Since Cocoon runs in the servlet container environment
>>> you theoretically could do a
>>>  RequestDispatcher.include( request, response )
>>> if you can get the ServletContext.
>>> 
>>> WBB
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>

-- 
---------------------------------------------------------------------------
Deepak 'Deep' Mehta
E-mail: deep@deeeep.com
URL: http://www.deeeep.com/

PGP Fingerprint: 837E B8E6 6AF4 6675 2730  0848 7731 09F5 3445 00A5

Money-making is a wonderful thing (Maxin & Skin in Carmen Queasy)
---------------------------------------------------------------------------


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Vadim : Very Important: Deploy Servlets in the Cocoon Context

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Chitharanjan Das [mailto:cdas@accordiasys.com]
> 
> Thanks for your reply....
> 
> There was a thread abt 3 -4 months where there was discussion abt
> invoking Servlets. There was a sitemap entry associated with that as
> well.

<map:generate src="http://localhost:8080/cocoon/myservlet"/>


> I guess it was Vadim or someone else who were answering this...
> 
> IIRC, there was no need to register the Servlet also,

Never heard about this. In the end, Cocoon is *not* servlet engine and
does not tries to replace one.


> it was addressed
> by servlet class (or something). I think there was a special generator
> for that..

The only alternative to the snippet above is
CocoonFilterGeneratorImpl.java in scratchpad of 2.1


Vadim


> Regds,
> Chiths
> 
> -----Original Message-----
> From: Peter Schwenke [mailto:peter@bluetoad.com.au]
> Sent: Wednesday, May 22, 2002 4:28 PM
> To: cocoon-users@xml.apache.org
> Subject: RE: Very Important: Deploy Servlets in the Cocoon Context
> 
> 
> If you want to run the servlets in your cocoon webapp but not be
> handled by cocoon just set them up in your web.xml and call them in
> the usual way.   That is just a normal servlet container issue.  They
> are just additional servlets to the cocoon servlet that way.  In the
> system I've been developing on I use an MVC architecture where
> servlets forward to JSPs which are processed by cocoon.
> 
> If you want to process the servlets from cocoon the thread  you are
> thinking of could have been "Servlets to XSL" and "Servlet to XSL
> possible".
> 
> 
> ...Peter
> 
> Chitharanjan Das writes:
>  > IIRC, There was an email thread depicting the issue of invoking
> servlets
>  > in
>  > Cocoon 2.0. I tried in the mailing lists and could not get my hands
> on
>  > them.
>  >
>  > There are a lot of utilities which are developed in servlet
framework
>  > out there. It would be a shame if we cannot use them inside Cocoon.
>  >
>  > .....
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  > -----Original Message-----
>  > From: William Brogden [mailto:wbrogden@bga.com]
>  > Sent: Wednesday, May 22, 2002 12:58 PM
>  > To: cocoon-users@xml.apache.org
>  > Subject: RE: Very Important: Deploy Servlets in the Cocoon Context
>  >
>  > > -----Original Message-----
>  > > From: Chitharanjan Das [mailto:cdas@accordiasys.com]
>  > > Sent: Wednesday, May 22, 2002 1:47 PM
>  > > To: cocoon-users@xml.apache.org
>  > > Subject: RE: Very Important: Deploy Servlets in the Cocoon
Context
>  > >
>  > >
>  > >
>  > > I am posting it again ..
>  > >
>  > > Is there a way to invoke a servlet in the same context of cocoon.
>  > >
>  > > i.e if the servlet were to be called from an XSP (say..) they
> should
>  > > share the same session...
>  > >
>  > > regds,
>  > > Chiths
>  >
>  >  Since Cocoon runs in the servlet container environment
>  > you theoretically could do a
>  >  RequestDispatcher.include( request, response )
>  > if you can get the ServletContext.
>  >
>  > WBB



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Vadim : Very Important: Deploy Servlets in the Cocoon Context

Posted by Chitharanjan Das <cd...@accordiasys.com>.
Thanks for your reply....

There was a thread abt 3 -4 months where there was discussion abt
invoking Servlets. There was a sitemap entry associated with that as
well.

I guess it was Vadim or someone else who were answering this...

IIRC, there was no need to register the Servlet also, it was addressed
by servlet class (or something). I think there was a special generator
for that..

Regds,
Chiths

-----Original Message-----
From: Peter Schwenke [mailto:peter@bluetoad.com.au] 
Sent: Wednesday, May 22, 2002 4:28 PM
To: cocoon-users@xml.apache.org
Subject: RE: Very Important: Deploy Servlets in the Cocoon Context


If you want to run the servlets in your cocoon webapp but not be
handled by cocoon just set them up in your web.xml and call them in
the usual way.   That is just a normal servlet container issue.  They
are just additional servlets to the cocoon servlet that way.  In the
system I've been developing on I use an MVC architecture where
servlets forward to JSPs which are processed by cocoon. 

If you want to process the servlets from cocoon the thread  you are
thinking of could have been "Servlets to XSL" and "Servlet to XSL
possible".

 
...Peter

Chitharanjan Das writes:
 > IIRC, There was an email thread depicting the issue of invoking
servlets
 > in 
 > Cocoon 2.0. I tried in the mailing lists and could not get my hands
on
 > them.
 > 
 > There are a lot of utilities which are developed in servlet framework
 > out there. It would be a shame if we cannot use them inside Cocoon.
 > 
 > .....
 > 
 > 
 > 
 > 
 > 
 > 
 > 
 > 
 > 
 > 
 > -----Original Message-----
 > From: William Brogden [mailto:wbrogden@bga.com] 
 > Sent: Wednesday, May 22, 2002 12:58 PM
 > To: cocoon-users@xml.apache.org
 > Subject: RE: Very Important: Deploy Servlets in the Cocoon Context
 > 
 > > -----Original Message-----
 > > From: Chitharanjan Das [mailto:cdas@accordiasys.com] 
 > > Sent: Wednesday, May 22, 2002 1:47 PM
 > > To: cocoon-users@xml.apache.org
 > > Subject: RE: Very Important: Deploy Servlets in the Cocoon Context
 > > 
 > > 
 > > 
 > > I am posting it again ..
 > > 
 > > Is there a way to invoke a servlet in the same context of cocoon.
 > > 
 > > i.e if the servlet were to be called from an XSP (say..) they
should
 > > share the same session...
 > > 
 > > regds,
 > > Chiths
 > 
 >  Since Cocoon runs in the servlet container environment
 > you theoretically could do a 
 >  RequestDispatcher.include( request, response )
 > if you can get the ServletContext.
 > 
 > WBB
 > 
 > 
 > 
 > ---------------------------------------------------------------------
 > Please check that your question has not already been answered in the
 > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
 > 
 > To unsubscribe, e-mail: <co...@xml.apache.org>
 > For additional commands, e-mail: <co...@xml.apache.org>
 > 
 > 
 > 
 > 
 > ---------------------------------------------------------------------
 > Please check that your question has not already been answered in the
 > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
 > 
 > To unsubscribe, e-mail: <co...@xml.apache.org>
 > For additional commands, e-mail: <co...@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Very Important: Deploy Servlets in the Cocoon Context

Posted by Peter Schwenke <pe...@bluetoad.com.au>.
If you want to run the servlets in your cocoon webapp but not be
handled by cocoon just set them up in your web.xml and call them in
the usual way.   That is just a normal servlet container issue.  They
are just additional servlets to the cocoon servlet that way.  In the
system I've been developing on I use an MVC architecture where
servlets forward to JSPs which are processed by cocoon. 

If you want to process the servlets from cocoon the thread  you are
thinking of could have been "Servlets to XSL" and "Servlet to XSL possible".

                                                                   ...Peter

Chitharanjan Das writes:
 > IIRC, There was an email thread depicting the issue of invoking servlets
 > in 
 > Cocoon 2.0. I tried in the mailing lists and could not get my hands on
 > them.
 > 
 > There are a lot of utilities which are developed in servlet framework
 > out there. It would be a shame if we cannot use them inside Cocoon.
 > 
 > .....
 > 
 > 
 > 
 > 
 > 
 > 
 > 
 > 
 > 
 > 
 > -----Original Message-----
 > From: William Brogden [mailto:wbrogden@bga.com] 
 > Sent: Wednesday, May 22, 2002 12:58 PM
 > To: cocoon-users@xml.apache.org
 > Subject: RE: Very Important: Deploy Servlets in the Cocoon Context
 > 
 > > -----Original Message-----
 > > From: Chitharanjan Das [mailto:cdas@accordiasys.com] 
 > > Sent: Wednesday, May 22, 2002 1:47 PM
 > > To: cocoon-users@xml.apache.org
 > > Subject: RE: Very Important: Deploy Servlets in the Cocoon Context
 > > 
 > > 
 > > 
 > > I am posting it again ..
 > > 
 > > Is there a way to invoke a servlet in the same context of cocoon.
 > > 
 > > i.e if the servlet were to be called from an XSP (say..) they should
 > > share the same session...
 > > 
 > > regds,
 > > Chiths
 > 
 >  Since Cocoon runs in the servlet container environment
 > you theoretically could do a 
 >  RequestDispatcher.include( request, response )
 > if you can get the ServletContext.
 > 
 > WBB
 > 
 > 
 > 
 > ---------------------------------------------------------------------
 > Please check that your question has not already been answered in the
 > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
 > 
 > To unsubscribe, e-mail: <co...@xml.apache.org>
 > For additional commands, e-mail: <co...@xml.apache.org>
 > 
 > 
 > 
 > 
 > ---------------------------------------------------------------------
 > Please check that your question has not already been answered in the
 > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
 > 
 > To unsubscribe, e-mail: <co...@xml.apache.org>
 > For additional commands, e-mail: <co...@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Very Important: Deploy Servlets in the Cocoon Context

Posted by Chitharanjan Das <cd...@accordiasys.com>.
IIRC, There was an email thread depicting the issue of invoking servlets
in 
Cocoon 2.0. I tried in the mailing lists and could not get my hands on
them.

There are a lot of utilities which are developed in servlet framework
out there. It would be a shame if we cannot use them inside Cocoon.

.....










-----Original Message-----
From: William Brogden [mailto:wbrogden@bga.com] 
Sent: Wednesday, May 22, 2002 12:58 PM
To: cocoon-users@xml.apache.org
Subject: RE: Very Important: Deploy Servlets in the Cocoon Context

> -----Original Message-----
> From: Chitharanjan Das [mailto:cdas@accordiasys.com] 
> Sent: Wednesday, May 22, 2002 1:47 PM
> To: cocoon-users@xml.apache.org
> Subject: RE: Very Important: Deploy Servlets in the Cocoon Context
> 
> 
> 
> I am posting it again ..
> 
> Is there a way to invoke a servlet in the same context of cocoon.
> 
> i.e if the servlet were to be called from an XSP (say..) they should
> share the same session...
> 
> regds,
> Chiths

 Since Cocoon runs in the servlet container environment
you theoretically could do a 
 RequestDispatcher.include( request, response )
if you can get the ServletContext.

WBB



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Very Important: Deploy Servlets in the Cocoon Context

Posted by William Brogden <wb...@bga.com>.
> -----Original Message-----
> From: Chitharanjan Das [mailto:cdas@accordiasys.com] 
> Sent: Wednesday, May 22, 2002 1:47 PM
> To: cocoon-users@xml.apache.org
> Subject: RE: Very Important: Deploy Servlets in the Cocoon Context
> 
> 
> 
> I am posting it again ..
> 
> Is there a way to invoke a servlet in the same context of cocoon.
> 
> i.e if the servlet were to be called from an XSP (say..) they should
> share the same session...
> 
> regds,
> Chiths

 Since Cocoon runs in the servlet container environment
you theoretically could do a 
 RequestDispatcher.include( request, response )
if you can get the ServletContext.

WBB



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Very Important: Deploy Servlets in the Cocoon Context

Posted by Chitharanjan Das <cd...@accordiasys.com>.
I am posting it again ..

Is there a way to invoke a servlet in the same context of cocoon.

i.e if the servlet were to be called from an XSP (say..) they should
share the same session...

regds,
Chiths





-----Original Message-----
From: Chitharanjan Das [mailto:cdas@accordiasys.com] 
Sent: Tuesday, May 21, 2002 5:00 PM
To: cocoon-users@xml.apache.org
Subject: Very Important: Deploy Servlets in the Cocoon Context

Hello All,
	I am in process of developing an automated client and server
side form validation processing.
I need to know how to invoke a Servlet in cocoon.
The Servlet needs to be in the same context of cocoon (i.e. should be
able to access the session and request objects with other pipelines).

Could any one please provide me with the following?
1. Sample Sitemap entry
2. Any configurations (web,xml etc.)
3. Point me to some documentation (is there any ServletGenerator like
JSP generator)

Thanks in advance,
Chiths




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>