hi,
I'm getting java.lang.RuntimeException's in my root.log on Cocoon 2 when
trying to run a basic XSP Here's my simple pipeline:
<map:pipelines>
<map:pipeline>
<map:match pattern="sites/*.xml">
<map:generate type="serverpages"
src="sites/xsp/{1}.xsp" />
<map:serialize type="xml" />
</map:match>
</map:pipeline>
</map:pipelines>
Here's test.xsp:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp">
<page>
<xsp:logic>
<xsp:element>
<test><xsp:expr>"TESTING".toLowerCase()</xsp:expr></test>
</xsp:element>
</xsp:logic>
</page>
</xsp:page>
When I access something with the URL ..../sites/test.xml, I get this in
my root.log
WARN (2001-12-07) 11:16.16:168 [root ]
(/earthtrip/sites/tradeonemktg.com/test.xml)
HttpProcessor[8080][4]/CocoonServlet: The resource was not found
org.apache.cocoon.ResourceNotFoundException: Stylesheet directed
termination: java.lang.RuntimeException: Stylesheet directed termination
at
org.apache.cocoon.generation.ServerPagesGenerator.setup
(ServerPagesGenerator.java:175)
<snip>
java.lang.RuntimeException: Stylesheet directed termination
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
at
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(
LogicsheetCodeGenerator.java:130)
<snip>
This only occurs with XSP pages. When I have xml->xsl->html, it works
fine...
Any help?
Thanks
Mike
---------------------------------------------------------------------
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]>