Hello 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" docBase="webapps/cocoon/foo" debug="9" reloadable="true" trusted="false"> </Context> I created a foo.war file with the appropriate directory structure: cocoon/foo 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" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <servlet> <servlet-name>test</servlet-name> <servlet-class>test</servlet-class> </servlet> <servlet-mapping> <servlet-name>foo</servlet-name> <url-pattern>/foo</url-pattern> </servlet-mapping> </web-app> 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" media="explorer"?> <?cocoon-process type="xslt"?> ... Using java org.apache.xalan.xslt.Process -IN foo.xml -XSL XSL/foo.xsl -OUT fooOut.html 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 http://blah.blah.blah/cocoon/foo.xml 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! TJ --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>