Hi Gianugo,
That's strange. I just unjar'd the cocoon.war file from my webapps
directory and looked at the cocoon.xconf file. It had
<xslt-processor class="org.apache.cocoon.components.xslt.XSLTProcessorImpl"
logger="core.xslt-processor">
<parameter name="transformer-factory"
value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>
<parameter name="use-store" value="true"/>
<parameter name="incremental-processing" value="false"/>
</xslt-processor>
So the transformer-factory param does have the closing /. Don't know how the snippet
cut and pasted in my email was wrong.
Anyway, please send the war file that you got the trace with and tell me the steps
you did before getting the XSLTC error.
Thanks,
Tom
Gianugo Rabellino wrote:
>
> Tom Amiro wrote:
> > Gianugo,
> >
> > I downloaded cocoon-2.0.2, built the cocoon.war after putting the
> > latest xsltc.jar in the ./lib/core directory and changing the
> > cocoon.xconf file in WEB-INF to specify XSLTC as the TransformerFactoryImpl,
> >
> >
> >> <xslt-processor class="org.apache.cocoon.components.xslt.XSLTProcessorImpl">
> >> <parameter name="use-store" value="true">
> >> <parameter name="transformer-factory"
>value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl">
> >> </xslt-processor>
>
> Tom,
>
> I'm working on your issue: actually the only thing I had to change was
> the malformed configuration you sent me: the "transformer-factory"
> parameter was not closed correctly:
>
> <parameter name="transformer-factory"
> value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl">
>
> Should be:
>
> <parameter name="transformer-factory"
> value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>
>
> Apart from that, I was able to run Cocoon with no problem at all (well,
> apart that it doesn't work with XSLTC (stack trace appended): if this
> was not the error, let me know and I'll package a WAR for you.
>
> TIA,
>
> --
> Gianugo Rabellino
>
> ERROR (2002-06-06) 10:29.50:136
> [core.xslt-processor](/cocoon/samples/welcome)
> HttpProcessor[8080][1]/LogKitLogger: Error in TraxTransformer:
> javax.xml.transform.TransformerException
> javax.xml.transform.TransformerException
> at
>
>org.apache.xalan.xsltc.trax.TransformerImpl.postErrorToListener(TransformerImpl.java:698)
> at
> org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:657)
> at
> org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:210)
> at
>
>org.apache.xalan.xsltc.trax.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:197)
> at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
> at
> org.apache.cocoon.transformation.TraxTransformer.recycle(TraxTransformer.java:582)
--
Tom Amiro -- SQA Engineer
Sun XML Technology Development
voice: 781-442-0589 Fax: 781-442-1437
eMail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]