You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rick Tessner <ri...@dingle.myra.com> on 2001/04/13 20:14:21 UTC

[C2] Cocoon2 w/ Saxon rather than Xalan : problem

Hello All,

Today I sat down and attempted to use Saxon (6.2.2) instead of
Xalan with Cocoon2.

It was simply a matter of replacing the xalan.jar with saxon.jar
in the WEB-INF/lib directory.  All the non-XSP stuff worked just
fine with a performance improvement of approx 20%.  (I'm primarily
using the DocBook stylesheets for both HTML and PDF and the
20% number is simply based on the "Processed by Apache Cocoon 2.0a5 ..."
lines in WEB-INF/logs/cocoon.log)

I then tried the "Simple XSP" link on the standard "Welcome" page.  That
fails and the "cocoon.log" shows an explicit reference to a Xalan in the
TraxTransformer.recycle() method.

I guess this means that Saxon doesn't fully work with Cocoon2 yet?
I noticed that a while back there was discussion on C1 working
with saxon.  Is it planned that C2 will play nice with saxon as well?

Relavent bits of the cocoon.log included below:

  DEBUG   10713   [cocoon  ] (tcpConnection-6802-5): Recycling of
  		NonCachingStreamPipeline
  DEBUG   10713   [cocoon  ] (tcpConnection-6802-5): Recycling of
  		NonCachingEventPipeline
  DEBUG   10713   [cocoon  ] (tcpConnection-6802-5): Exception in recycle:
  java.lang.ClassNotFoundException: org.apache.xalan.stree.SourceTreeHandler
     at com.caucho.util.DynamicClassLoader.loadClass(DynamicClassLoader.java:372)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:120)
     at org.apache.cocoon.transformation.TraxTransformer.recycle(TraxTransformer.java:329)
     at org.apache.avalon.component.DefaultComponentPool.put(DefaultComponentPool.java:244)


-- 
Rick Tessner	rick@myra.com
MYRA Systems Corp. Fone: (250) 381 1335 x125  Phax: (250) 381 1304
                   Cell: (250) 885 9452

"Hmmm.  They have the Internet on computers now!"


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>