You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Jeremy Quinn <je...@media.demon.co.uk> on 2000/08/26 13:55:24 UTC

Do C1 & C2 coexist?

Dear All,

I have been tasked with evaluating Cocoon 2 for the project I am working on.

I am hoping to install Cocoon 2 into a new TomCat context alongside a
Cocoon 1 installation/context.

Before I totally trash this (delicate Win98) system trying it, has anyone
tried this? Should it work?

Thanks for any help

regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <ma...@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pa...@sms.genie.co.uk>

Re: Do C1 & C2 coexist?

Posted by Hans Ulrich Niedermann <ni...@isd.uni-stuttgart.de>.
Giacomo Pati <Gi...@pwr.ch> writes:

> On Sat, Aug 26, 2000 at 12:55:24PM +0100, Jeremy Quinn wrote:
> > Dear All,
> > 
> > I have been tasked with evaluating Cocoon 2 for the project I am working on.
> > 
> > I am hoping to install Cocoon 2 into a new TomCat context alongside a
> > Cocoon 1 installation/context.
> 
> If you don't use XSP ar all you can put the jars into WEB-INF/lib 
> and you're done.
> 
> Otherwise you have to start two separate tomcat VMs because you 
> (still) have to put the jars into tomcat/lib. AFAIK C1 and C2 
> use different versions of support libs (xerces/xalan/fop).

Current CVS C1 and C2 releases both use the same xalan_1_2_D01.jar and
xerces_1_1_3.jar. The problem for XSP more probably is the cocoon.jar
file which contains very different classes for C1 and C2. 

FOP differs. But if you can work with C1 fop_0_13_0.jar, you can
probably use that.

Just my 2Pf. Not that I know the code that much or even tested it.

Uli

Re: Do C1 & C2 coexist?

Posted by Niclas Hedhman <ni...@f1.bali.ac>.
Jeremy Quinn wrote:

> Sorry, I don't know how to do that, could someone explain?
> They'd need different ports as well?

If you are running Tomcat stand-alone and need different VMs, then you need to do
port mapping. However, the splendid Apache Webserver servlet extension design
allows you to map the URL space into different Servlet Engines (read Tomcat VMs).

Mod_JServ (it is still being used, right?) has a ApJServMount directive which
handles the mapping from URL space to the Servlet engines, on same host or
different hosts. (And, of course, here the port numbers must be different if on
the same host...)

I have them over two hosts, but should not make it a difference.

ApJServMount /xdocs ajpv12://f4.bali.ac:9000/admdocs"
ApJServMount /rt ajpv12://f3.bali.ac:9000/realtime"

In my case, I am using Cocoon, currently down though....  :o( , in the "admdocs"
zone, but have my own servlet package in the "realtime" zone.

Niclas


Re: Do C1 & C2 coexist?

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 21:20 +0200 26/08/00, Giacomo Pati wrote:
>Jeremy Quinn wrote:
>>
>> Sorry, I don't know how to do that, could someone explain?
>> They'd need different ports as well?
>
>I don't know your setup but you will have two tomcat configurations
>(server.xml). One on port 8080 (if standalone) and on on port 8081
>(these port numbers are examples, you can use the ports you would like).
>One with a classpath for C1 and one with C2 setup. You have to start
>both tomcats in separate JVM. Have I been clear enought?

You have, sorry I asked, it turned out to be simple.
I have just been using Windows for a couple of days :)
I am paranoid as hell with it!

Anyway, I got secure CVS setup (Mac and PC), got C2 compiled (PC only ...)

And boy, does it run!
The first you notice, is the SPEED!
Hey, then those nice URLs

Fantastic work!


regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <ma...@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pa...@sms.genie.co.uk>

Re: Do C1 & C2 coexist?

Posted by Giacomo Pati <Gi...@pwr.ch>.
Jeremy Quinn wrote:
> 
> At 16:02 +0200 26/08/00, Giacomo Pati wrote:
> >On Sat, Aug 26, 2000 at 12:55:24PM +0100, Jeremy Quinn wrote:
> >> Dear All,
> >>
> >> I have been tasked with evaluating Cocoon 2 for the project I am working on.
> >>
> >> I am hoping to install Cocoon 2 into a new TomCat context alongside a
> >> Cocoon 1 installation/context.
> >
> >If you don't use XSP ar all you can put the jars into WEB-INF/lib
> >and you're done.
> 
> I'll definitely need XSP :)
> 
> >Otherwise you have to start two separate tomcat VMs
> 
> Sorry, I don't know how to do that, could someone explain?
> They'd need different ports as well?

I don't know your setup but you will have two tomcat configurations
(server.xml). One on port 8080 (if standalone) and on on port 8081
(these port numbers are examples, you can use the ports you would like).
One with a classpath for C1 and one with C2 setup. You have to start
both tomcats in separate JVM. Have I been clear enought?

Giacomo

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch

Re: Do C1 & C2 coexist?

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 16:02 +0200 26/08/00, Giacomo Pati wrote:
>On Sat, Aug 26, 2000 at 12:55:24PM +0100, Jeremy Quinn wrote:
>> Dear All,
>>
>> I have been tasked with evaluating Cocoon 2 for the project I am working on.
>>
>> I am hoping to install Cocoon 2 into a new TomCat context alongside a
>> Cocoon 1 installation/context.
>
>If you don't use XSP ar all you can put the jars into WEB-INF/lib
>and you're done.

I'll definitely need XSP :)

>Otherwise you have to start two separate tomcat VMs

Sorry, I don't know how to do that, could someone explain?
They'd need different ports as well?

>because you
>(still) have to put the jars into tomcat/lib. AFAIK C1 and C2
>use different versions of support libs (xerces/xalan/fop).

I thought as much.

Thanks

regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <ma...@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pa...@sms.genie.co.uk>

Re: Do C1 & C2 coexist?

Posted by Giacomo Pati <Gi...@pwr.ch>.
On Sat, Aug 26, 2000 at 12:55:24PM +0100, Jeremy Quinn wrote:
> Dear All,
> 
> I have been tasked with evaluating Cocoon 2 for the project I am working on.
> 
> I am hoping to install Cocoon 2 into a new TomCat context alongside a
> Cocoon 1 installation/context.

If you don't use XSP ar all you can put the jars into WEB-INF/lib 
and you're done.

Otherwise you have to start two separate tomcat VMs because you 
(still) have to put the jars into tomcat/lib. AFAIK C1 and C2 
use different versions of support libs (xerces/xalan/fop).

Giacomo 

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch