cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schmitz, Jeffrey A" <Jeffrey.A.Schm...@boeing.com>
Subject RE: Switching to Saxon
Date Fri, 17 Dec 2010 15:10:15 GMT
Sorry, I meant Tomcat.  As we only have one Cocoon based webapp, the concepts of tomcat and
cocoon have kind of merged in my mind.

> -----Original Message-----
> From: Peter Flynn [mailto:pflynn@ucc.ie]
> Sent: Friday, December 17, 2010 9:08 AM
> To: users@cocoon.apache.org
> Subject: Re: Switching to Saxon
> 
> On 16/12/10 16:23, Schmitz, Jeffrey A wrote:
> > Taking a quick look, that looks like the same as I did, although I'm
> > using a saxon9he.jar file. To ask maybe a dumb question, did you
> > restart Cocoon after adding the jar?
> 
> No, I assumed any change would force Tomcat to reread it all.
> I can restart Tomcat but I'm not aware of how to restart Cocoon itself.
> 
> ///Peter
> 
> >
> >> -----Original Message-----
> >> From: Peter Flynn [mailto:pflynn@ucc.ie]
> >> Sent: Thursday, December 16, 2010 9:58 AM
> >> To: users@cocoon.apache.org
> >> Subject: Switching to Saxon
> >>
> >> I just tried this, but there seems to be a lack of up-to-date
> details
> >> on
> >> doing this in Cocoon 2.1.11 with saxon9. Following the assorted web
> >> pages for earlier versions, I got as far as adding saxon9.jar to
> >> Cocoon's WEB-INF/lib and editing the two files (commenting out the
> >> Xalan
> >> entries):
> >>
> >> ----- cocoon.xconf:
> >>
> >>   <component logger="core.xslt"
> >>
> role="org.apache.excalibur.xml.xslt.XSLTProcessor/saxon"
> >>
> class="org.apache.cocoon.components.xslt.TraxProcessor">
> >>      <parameter name="use-store" value="true"/>
> >>      <parameter name="transformer-factory"
> >>       value="net.sf.saxon.TransformerFactoryImpl"/>
> >>   </component>
> >>
> >> ----- sitemap.xmap:
> >>
> >>   <map:transformer name="xslt" pool-grow="2" pool-max="32"
> >>       pool-min="8" logger="sitemap.transformer.xslt"
> >>       src="org.apache.cocoon.transformation.TraxTransformer">
> >>     <use-request-parameters>false</use-request-parameters>
> >>     <use-browser-capabilities-db>false</use-browser-capabilities-db>
> >>     <use-session-parameters>false</use-session-parameters>
> >>     <use-cookie-parameters>false</use-cookie-parameters>
> >>     <xslt-processor-role>saxon</xslt-processor-role>
> >>     <check-includes>true</check-includes>
> >>   </map:transformer>
> >>
> >> But then Cocoon spits out:
> >>
> >>> Internal Server Error
> >>> Message: Could not find component (key
> >> [org.apache.excalibur.xml.xslt.XSLTProcessor/saxon])
> >>> Description: org.apache.cocoon.ProcessingException: Lookup of
> >> transformer 'xslt' failed at <map:transform> -
> >> file:///usr/share/tomcat5/webapps/ROOT/sitemap.xmap:1174:71
> >>> Sender: org.apache.cocoon.servlet.CocoonServlet
> >>> Source: Cocoon Servlet
> >>>
> >>> cause
> >>> org.apache.avalon.framework.component.ComponentException: Could not
> >> find component (key
> >> [org.apache.excalibur.xml.xslt.XSLTProcessor/saxon])
> >>> full exception chain stacktrace
> >>> org.apache.cocoon.ProcessingException: Lookup of transformer 'xslt'
> >> failed
> >>> 	at <map:transform> -
> >> file:///usr/share/tomcat5/webapps/ROOT/sitemap.xmap:1174:71
> >>> 	at
> >>
> org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.
> >> java:113)
> >>
> >> What is it actually looking for when it says
> >> org.apache.excalibur.xml.xslt.XSLTProcessor/saxon? I have no idea
> what
> >> or where "org.apache.excalibur.xml.xslt.XSLTProcessor" points to
> (I'm
> >> sure it's possible to find out, but I'm not a Java programmer :-)
> >>
> >> ///Peter
> >>
> >> --------------------------------------------------------------------
> -
> >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >> For additional commands, e-mail: users-help@cocoon.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org

Mime
View raw message