You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Sylvain Wallez <sy...@anyware-tech.com> on 2002/03/20 14:21:48 UTC

Running Cocoon on non-compliant servlet engines

Hi folks,

The project I'm currently working on requires Cocoon to run on a 2-years 
old Netscape Enterprise server 4.1, which has the servlet 2.2 classes 
but doesn't implement them correctly : no context directory, no 
classloader for WEB-INF, funky resolution of context resources, etc.

So I wrote a BootstrapServlet that sets up a servlet-2.2 compliant 
ServletContext and ClassLoader and uses this environment to create the 
CocoonServlet to which it delegates request handling. And now Cocoon 
runs smoothly !

I guess this could also be used for other "legacy" engines still living 
out there. Are people interested in this ? If yes, I can add it to the 
scratchpad in CVS. Or we could even include it in the soon-to-come 2.0.2 
(Carsten ?).

<shameless-plug>
For the same project, I also wrote the BlobSource (see 
http://www.mail-archive.com/cocoon-dev@xml.apache.org/msg12945.html) for 
which I had no feedback up to now. Nobody interested in this ?
</shameless-plug>

Cheers,
Sylvain

-- 
Sylvain Wallez
 Anyware Technologies                  Apache Cocoon
 http://www.anyware-tech.com           mailto:sylvain@apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: Running Cocoon on non-compliant servlet engines

Posted by Michael Hartle <mh...@hartle-klug.com>.
Sylvain Wallez wrote:

> <shameless-plug>
> For the same project, I also wrote the BlobSource (see 
> http://www.mail-archive.com/cocoon-dev@xml.apache.org/msg12945.html) 
> for which I had no feedback up to now. Nobody interested in this ?
> </shameless-plug>

I am very interested in it, but haven't yet had the chance to take a 
closer look.

Best regards,

Michael Hartle,
Hartle & Klug GbR



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: Running Cocoon on non-compliant servlet engines

Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Carsten Ziegeler wrote:

>>Sylvain Wallez wrote:
>>
>>Hi folks,
>>
>>The project I'm currently working on requires Cocoon to run on a 2-years 
>>old Netscape Enterprise server 4.1, which has the servlet 2.2 classes 
>>but doesn't implement them correctly : no context directory, no 
>>classloader for WEB-INF, funky resolution of context resources, etc.
>>
>>So I wrote a BootstrapServlet that sets up a servlet-2.2 compliant 
>>ServletContext and ClassLoader and uses this environment to create the 
>>CocoonServlet to which it delegates request handling. And now Cocoon 
>>runs smoothly !
>>
>Sounds great!
>Does this work in all servlet engines which support 2.2?
>
Thoroughly tested in iPlanet 4.1.8. However, it's difficult to say if it 
can handle all deficiencies of buggy engines that claim to be 2.2 
compliant ;)

>>I guess this could also be used for other "legacy" engines still living 
>>out there. Are people interested in this ? If yes, I can add it to the 
>>scratchpad in CVS. Or we could even include it in the soon-to-come 2.0.2 
>>(Carsten ?).
>>
>As this is a new component which is well tested and works and which
>has no influence on the existing system, I have no objections to adding
>this to 2.0.2. But please with some docs :)
>
Added to the CVS, with some docs and javadocs ;))

This is the class org.apache.cocoon.servlet.BootstrapServlet. Users of 
stable releases will find it next week in the 2.0.2.

Cheers,
Sylvain

-- 
Sylvain Wallez
  Anyware Technologies                  Apache Cocoon
  http://www.anyware-tech.com           mailto:sylvain@apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: Running Cocoon on non-compliant servlet engines

Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Carsten Ziegeler wrote:

>>Sylvain Wallez wrote:
>>
>>Hi folks,
>>
>>The project I'm currently working on requires Cocoon to run on a 2-years 
>>old Netscape Enterprise server 4.1, which has the servlet 2.2 classes 
>>but doesn't implement them correctly : no context directory, no 
>>classloader for WEB-INF, funky resolution of context resources, etc.
>>
>>So I wrote a BootstrapServlet that sets up a servlet-2.2 compliant 
>>ServletContext and ClassLoader and uses this environment to create the 
>>CocoonServlet to which it delegates request handling. And now Cocoon 
>>runs smoothly !
>>
>Sounds great!
>Does this work in all servlet engines which support 2.2?
>
It relies mainly on the API being present and reimplements most of 
what's used by Cocoon. So it should be OK if javax.servlet 2.2 is there, 
whatever its compliance status is.

>>I guess this could also be used for other "legacy" engines still living 
>>out there. Are people interested in this ? If yes, I can add it to the 
>>scratchpad in CVS. Or we could even include it in the soon-to-come 2.0.2 
>>(Carsten ?).
>>
>As this is a new component which is well tested and works and which
>has no influence on the existing system, I have no objections to adding
>this to 2.0.2. But please with some docs :)
>
Ok, ok. Message understood : with some docs ;-)

Sylvain

-- 
Sylvain Wallez
 Anyware Technologies                  Apache Cocoon
 http://www.anyware-tech.com           mailto:sylvain@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: Running Cocoon on non-compliant servlet engines

Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Carsten Ziegeler wrote:

>>Sylvain Wallez wrote:
>>
>>Hi folks,
>>
>>The project I'm currently working on requires Cocoon to run on a 2-years 
>>old Netscape Enterprise server 4.1, which has the servlet 2.2 classes 
>>but doesn't implement them correctly : no context directory, no 
>>classloader for WEB-INF, funky resolution of context resources, etc.
>>
>>So I wrote a BootstrapServlet that sets up a servlet-2.2 compliant 
>>ServletContext and ClassLoader and uses this environment to create the 
>>CocoonServlet to which it delegates request handling. And now Cocoon 
>>runs smoothly !
>>
>Sounds great!
>Does this work in all servlet engines which support 2.2?
>
Thoroughly tested in iPlanet 4.1.8. However, it's difficult to say if it 
can handle all deficiencies of buggy engines that claim to be 2.2 
compliant ;)

>>I guess this could also be used for other "legacy" engines still living 
>>out there. Are people interested in this ? If yes, I can add it to the 
>>scratchpad in CVS. Or we could even include it in the soon-to-come 2.0.2 
>>(Carsten ?).
>>
>As this is a new component which is well tested and works and which
>has no influence on the existing system, I have no objections to adding
>this to 2.0.2. But please with some docs :)
>
Added to the CVS, with some docs and javadocs ;))

This is the class org.apache.cocoon.servlet.BootstrapServlet. Users of 
stable releases will find it next week in the 2.0.2.

Cheers,
Sylvain

-- 
Sylvain Wallez
  Anyware Technologies                  Apache Cocoon
  http://www.anyware-tech.com           mailto:sylvain@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: Running Cocoon on non-compliant servlet engines

Posted by Carsten Ziegeler <cz...@s-und-n.de>.
> Sylvain Wallez wrote:
> 
> Hi folks,
> 
> The project I'm currently working on requires Cocoon to run on a 2-years 
> old Netscape Enterprise server 4.1, which has the servlet 2.2 classes 
> but doesn't implement them correctly : no context directory, no 
> classloader for WEB-INF, funky resolution of context resources, etc.
> 
> So I wrote a BootstrapServlet that sets up a servlet-2.2 compliant 
> ServletContext and ClassLoader and uses this environment to create the 
> CocoonServlet to which it delegates request handling. And now Cocoon 
> runs smoothly !
Sounds great!
Does this work in all servlet engines which support 2.2?

> 
> I guess this could also be used for other "legacy" engines still living 
> out there. Are people interested in this ? If yes, I can add it to the 
> scratchpad in CVS. Or we could even include it in the soon-to-come 2.0.2 
> (Carsten ?).
> 
As this is a new component which is well tested and works and which
has no influence on the existing system, I have no objections to adding
this to 2.0.2. But please with some docs :)

Carsten

---------------------------------------------------------------------
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: Running Cocoon on non-compliant servlet engines

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Sylvain Wallez [mailto:sylvain.wallez@anyware-tech.com]
> 
> Hi folks,
> 
> The project I'm currently working on requires Cocoon to run on a
2-years
> old Netscape Enterprise server 4.1, which has the servlet 2.2 classes
> but doesn't implement them correctly : no context directory, no
> classloader for WEB-INF, funky resolution of context resources, etc.
> 
> So I wrote a BootstrapServlet that sets up a servlet-2.2 compliant
> ServletContext and ClassLoader and uses this environment to create the
> CocoonServlet to which it delegates request handling. And now Cocoon
> runs smoothly !
> 
> I guess this could also be used for other "legacy" engines still
living
> out there. Are people interested in this ? If yes, I can add it to the
> scratchpad in CVS. Or we could even include it in the soon-to-come
2.0.2
> (Carsten ?).

+0.5, if you write installation steps also. ;)
 

> <shameless-plug>
> For the same project, I also wrote the BlobSource (see
> http://www.mail-archive.com/cocoon-dev@xml.apache.org/msg12945.html)
for
> which I had no feedback up to now. Nobody interested in this ?

It is definitely piece to have; also I don't see immediate usage for it
in my project. Let it cook a little bit more in the scratchpad, and then
we could promote it.

Vadim

> </shameless-plug>
> 
> Cheers,
> Sylvain
> 
> --
> Sylvain Wallez
>  Anyware Technologies                  Apache Cocoon
>  http://www.anyware-tech.com           mailto:sylvain@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>