You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Piroumian, Konstantin" <KP...@flagship.ru> on 2000/12/06 11:17:25 UTC
Cocoon 1 and 2 on the same servlet engine
Hi!
Is it possible to install both Cocoons (1.8 and 2.0) on the same servlet
engine (Tomcat 3.1)?
Has anybody tried this?
Regards,
Konstantin Piroumian
Web Application Developer
Protek Flagship LLC
Email: kpiroumian@flagship.ru
Re: Cocoon 1 and 2 on the same servlet engine
Posted by Paul Russell <pa...@luminas.co.uk>.
On Wed, Dec 06, 2000 at 02:47:53PM +0300, Piroumian, Konstantin wrote:
> > On Wed, Dec 06, 2000 at 01:17:25PM +0300, Piroumian, Konstantin wrote:
> > > Is it possible to install both Cocoons (1.8 and 2.0) on the same servlet
> > > engine (Tomcat 3.1)?
> > > Has anybody tried this?
> > I'm pretty sure it won't work unless you use a partitioning
> > classloader -- you might be able to get away with it by putting
> > the cocoon jars in the webapps themselves, rather than in tomcat's
> > lib directory.
> AFAIK, it's not possible to configure Cocoon 1 as a web app (war).
> Thank you anyway for your answer.
> Another solution can be starting Tomcat with different startup files - one
> for C1 and the second for C2.
> Am I right?
Providing Cocoon 1 and Cocoon 2 are in separate JVMs (or at a
push, classloaders), you should be fine. Apols about the webapp
thing - I'm a C2 person...
P.
--
Paul Russell <pa...@luminas.co.uk>
Technical Director, http://www.luminas.co.uk
Luminas Ltd.
Re: Cocoon 1 and 2 on the same servlet engine
Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
> > > On Wed, Dec 06, 2000 at 01:17:25PM +0300, Piroumian, Konstantin wrote:
> > > > Is it possible to install both Cocoons (1.8 and 2.0) on the same
servlet
> > > > engine (Tomcat 3.1)?
> > > > Has anybody tried this?
> > >
> > > I'm pretty sure it won't work unless you use a partitioning
> > > classloader -- you might be able to get away with it by putting
> > > the cocoon jars in the webapps themselves, rather than in tomcat's
> > > lib directory.
> >
> > AFAIK, it's not possible to configure Cocoon 1 as a web app (war).
> > Thank you anyway for your answer.
>
> er, it's not packaged as such, but i don't think it's _impossible_ to
> configure cocoon1 as a WAR.
I don't think so, because C1 requires to make changes to servlet engine
(Tomcat) CLASSPATH and Cocoon jars must be placed not in the
webapps/cocoon/lib or (WEB-INF/lib) as it is for Web applications (war-s).
I mean a war file wivh can be simply deployed by coping it to the
tomcat/webapps.
You cannot do it with C1 even if you pack it as a war file - it will not
work.
I'd like to hear that I am wrong.
Re: Cocoon 1 and 2 on the same servlet engine
Posted by Donald Ball <ba...@webslingerZ.com>.
On Wed, 6 Dec 2000, Piroumian, Konstantin wrote:
> > On Wed, Dec 06, 2000 at 01:17:25PM +0300, Piroumian, Konstantin wrote:
> > > Is it possible to install both Cocoons (1.8 and 2.0) on the same servlet
> > > engine (Tomcat 3.1)?
> > > Has anybody tried this?
> >
> > I'm pretty sure it won't work unless you use a partitioning
> > classloader -- you might be able to get away with it by putting
> > the cocoon jars in the webapps themselves, rather than in tomcat's
> > lib directory.
>
> AFAIK, it's not possible to configure Cocoon 1 as a web app (war).
> Thank you anyway for your answer.
er, it's not packaged as such, but i don't think it's _impossible_ to
configure cocoon1 as a WAR.
- donald
Re: Cocoon 1 and 2 on the same servlet engine
Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
> On Wed, Dec 06, 2000 at 01:17:25PM +0300, Piroumian, Konstantin wrote:
> > Is it possible to install both Cocoons (1.8 and 2.0) on the same servlet
> > engine (Tomcat 3.1)?
> > Has anybody tried this?
>
> I'm pretty sure it won't work unless you use a partitioning
> classloader -- you might be able to get away with it by putting
> the cocoon jars in the webapps themselves, rather than in tomcat's
> lib directory.
>
AFAIK, it's not possible to configure Cocoon 1 as a web app (war).
Thank you anyway for your answer.
Another solution can be starting Tomcat with different startup files - one
for C1 and the second for C2.
Am I right?
Re: Cocoon 1 and 2 on the same servlet engine
Posted by Paul Russell <pa...@luminas.co.uk>.
On Wed, Dec 06, 2000 at 01:17:25PM +0300, Piroumian, Konstantin wrote:
> Is it possible to install both Cocoons (1.8 and 2.0) on the same servlet
> engine (Tomcat 3.1)?
> Has anybody tried this?
I'm pretty sure it won't work unless you use a partitioning
classloader -- you might be able to get away with it by putting
the cocoon jars in the webapps themselves, rather than in tomcat's
lib directory.
P.
--
Paul Russell <pa...@luminas.co.uk>
Technical Director, http://www.luminas.co.uk
Luminas Ltd.