cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Maring <>
Subject RE: Cocoon 1.7.2 and multiple web applications
Date Wed, 05 Apr 2000 12:07:06 GMT
You may have to run seperate JVMs for multiple web contexts using Cocoon.
Just as you would with VHOSTS.  See the thread called "problem with multiple
contexts" in the tomcat-user archive.

It does seem a bit odd that this is the case.  

THE BIG QUESTION:  Has anyone gotten multiple contexts that use Cocoon to
run in a single JVM?  And how?

--Steve Maring

-----Original Message-----
From: Werner Guttmann
Sent: 4/5/00 5:32 AM
Subject: Cocoon 1.7.2 and multiple web applications


sorry in advance for this slightly confusing and long email, but I am
going in circles ... :-(.
I installed Cocoon 1.7.2 (with Tomcat 3.1beta2, or some more recent
nightly build) the other day, and on the first look every thing seems to
be fine. I tried a couple of the samples provided (plain conversion
using xsl, SQL Processor, XSP Processor), and everything works as
expected. Especially XSP seems to expose quite some potential.

Well, here's the problem I am currently facing. Let's assume I have two
web applications registered with Tomcat in the following way (taken from
tomcat's main config file $TOMCAT/conf/server.xml)

<Context path="/cocoonXsp"
    debug="0" reloadable="true" >

<Context path="/cocoonOrig"
    debug="0" reloadable="true" >

Starting Tomcat, and processing some example xml file from the
"/cocoonXsp" web application, e.g

works as expected. When trying to process another xml document from the
second web application (the one mapped to /cocoonOrig), I get the
following run time exception.
/ms/user/g/guttmanw/deploy/webapps/cocoon/xsp/xml/samplepage.xml (No
such file or directory)
              at Method)
              at Code)
              at Code)
              at Code)
org.apache.cocoon.producer.ProducerFromFile.getStream(Compiled Code)
org.apache.cocoon.producer.AbstractProducer.getDocument(Compiled Code)
              at org.apache.cocoon.Engine.handle(Compiled Code)
              at org.apache.cocoon.Cocoon.service(Compiled Code)
              at javax.servlet.http.HttpServlet.service(Compiled Code)
org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
              at org.apache.tomcat.core.ContextManager.service(Compiled
              at Code)
              at Code)

What surprises me with this stack trace is the fact that Cocoon tries to
open samplepage.xml from the wrong directory, i.e.
.../xsp/xml/samplepage.xml rather then .../original/xml/samplepage.xml ?

Btw, Stopping tomcat, restarting it and loading the second file again
works !

Does anybody have a clue what's going wrong here, assuming this is a
problem on my side.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message