cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "TJ Smith">
Subject cocoon question
Date Mon, 24 Dec 2001 14:21:50 GMT
First, the background: Tomcat 3.3, Cocoon 1.8.2, Apache 1.3.22

I've encoundered an odd situation.  I want to create a "subproject" under
cocoon, call it 'foo', such that I can retrieve documents via a url like
http://blah.blah.blah/cocoon/foo/foo.xml  I created a context for 'foo' in
TOMCAT_HOME/conf/apps-foo.xml as shown:

<Context path="/cocoon/foo"

I created a foo.war file with the appropriate directory structure:
            DTD                directory to hold dtds
            WEB-INF        required web-inf
            XSL                 style sheets for *.xml documents in the
cocoon/foo directory

'foo' also contains a servlet which is in WEB-INF/classes as foo.class
WEB-INF/web.web.xml is:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"

The first few lines of cocoon/foo/foo.xml  are

<?xml version="1.0"?>
<?xml-stylesheet href="./XSL/foo.xsl" type="text/xsl"?>
<?xml-stylesheet href="./XSL/fooHTML.explorer.xsl" type="text/xsl"
<?cocoon-process type="xslt"?>

java org.apache.xalan.xslt.Process -IN foo.xml -XSL XSL/foo.xsl -OUT
Produces the correct (expected) html page that looks fine in my IE browser,
so I believe there is no problem with the xml or xsl sheets.

Here's the funny business.  The servlet works fine.  Trying to get foo.xml
via the url
fails miserably.  In fact, the result is basically an unchanged 'foo.xml'
If, however, foo.xml is moved to the cocoon directory; and foo.xsl is moved
to cocoon/XSL, the page produced is correct!
Clearly, I have done something goofy with the 'foo' context, foo's web.xml
or something.  I have tried many combinations over many sleepless hours -
but I cannot get documents from the cocoon/foo directory to be served
properly unless they are placed in the cocoon directory.

I'd appreciate any sage advice!


Please check that your question has not already been answered in the
FAQ before posting. <>

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

View raw message