cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject [c2] Can't use Context:// -- need help
Date Wed, 31 Jan 2001 21:09:03 GMT
I am using Tomcat 3.2.1 with Cocoon 2 and Xalan 2.0D07 (JDK 1.3)

The problem comes from a couple of sources, and I need help from
someone more familiar with Xalan than I.  I am trying to use a
XSL stylesheet that I specified in my cocoon.xconf file.  The
problem is that Tomcat uses the File:// protocol for finding
context resources.

The URL is set correctly:
-----------------------------------------
INFO    13309   [cocoon  ] (Thread-10): context://WEB-INF/logicsheets/list.xsl:
file:C:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\logicsheets\list.xsl
-----------------------------------------

I get this exception (which tells me nothing):
-----------------------------------------------------
javax.xml.transform.TransformerException: FuncPosition only allows 0 arguments

	at org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDef.java:580)

	at org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeDef.java:917)

	at org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeDef.java:1075)

	at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:357)

	at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:300)

	at org.apache.xalan.processor.ProcessorTemplateElem.startElement(ProcessorTemplateElem.java:120)

	at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:607)

	at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1371)

	at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:840)

	at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1853)

	at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1234)

	at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)

	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)

	at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:741)

	at org.apache.cocoon.components.language.markup.Logicsheet.setInputSource(Logicsheet.java:77)

------------------------------------------------------

And later the log give me this:
---------------------------------------
ERROR   13419   [cocoon  ] (Thread-10): Logicsheet.setInputSource
javax.xml.transform.TransformerConfigurationException: File
"file:/C:/jakarta-tomcat-3.2.1/webapps/ROOT/C:/jakarta-tomcat-3.2.1/webapps/ROOT/WEB-INF/logicsheets/list.xsl"
not found.

	at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:749)

	at org.apache.cocoon.components.language.markup.Logicsheet.setInputSource(Logicsheet.java:77)

---------------------------------------

What gives?  How is this happening?  I can't find anywhere in the code where
there is a new File(RootDir, stringURL).  I know there is a section like that
in NetUtils, but I don't know where that is recursively called.  Beyond that,
that is only called if we aren't using any protocol at all.

This is something in the Transformer.

Mime
View raw message