Hello

I would like to use Saxon and Xalan in my site.
The article in
http://wiki.apache.org/cocoon/Saxon
helps me well with saxon7
But with saxon8, I get an error in the cocoon shell window:
...
16:06:38.553 WARN!! Error for /samples/hello-world/hello.saxon
java.lang.NoClassDefFoundError: org/w3c/dom/TypeInfo
at net.sf.saxon.tree.TreeBuilder.open(TreeBuilder.java:75)
at net.sf.saxon.event.ProxyReceiver.open(ProxyReceiver.java:88)
at net.sf.saxon.style.UseWhenFilter.open(UseWhenFilter.java:45)
....
See below for more details.
Where hello.saxon is generated with the following pipeline added in the helloworld sitemap (this pipeline works well with saxon7):


   <map:match pattern="hello.saxon">
    <map:generate src="content/hello.xml"/>
    <map:transform type="xslt-saxon" src="style/xsl/page2html.xsl"/>
    <map:serialize type="html"/>
   </map:match>

Any idea?


===============================================================
For more details, here is the complete trace from the cocoon shell window, from the start of cocoon to the error:
-------------------- Loading --------------------
Processing repository: .\tools\jetty\lib
Adding jar: .\tools\jetty\lib\jetty-4.2.19.jar
Adding jar: .\tools\jetty\lib\servlet-2.3.jar
Processing repository: .\lib\endorsed
Adding jar: .\lib\endorsed\jakarta-bcel-20040329.jar
Adding jar: .\lib\endorsed\jakarta-regexp-1.3.jar
Adding jar: .\lib\endorsed\saxon8.jar
Adding jar: .\lib\endorsed\xercesImpl-2.6.2.jar
Adding jar: .\lib\endorsed\xml-apis.jar
-------------------- Executing -----------------
Main Class: org.mortbay.jetty.Server
16:05:56.613 EVENT Checking Resource aliases
16:05:56.953 EVENT Starting Jetty/4.2.19
16:05:57.404 EVENT Started WebApplicationContext[/,.\build\webapp]
16:05:57.484 WARN!! Delete existing temp dir C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
Jetty__9090__ for WebApplicationContext[/,.\build\webapp]
trying to register database
trying to register database
- setting defaults to DC
- setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote = tr
ue, useDisk = true, maxObjs = 100, maxSpoolPerRun = -1 ]
- Could not find value for key jcs.default.elementattributes
- Could not instantiate eAttr named 'jcs.default.elementattributes', using defau
lts.
- setting defaultElementAttributes to [ IS_LATERAL = false, IS_SPOOL = false, IS
_REMOTE = false, IS_ETERNAL = true, MaxLifeSeconds = -1, IdleTime = -1, CreateTi
me = 1104159959897, LastAccessTime = 1104159959897, getTimeToLiveSeconds() = -10
00, createTime = 1104159959897 ]
- Could not find value for key jcs.system.groupIdCache.elementattributes
- Could not instantiate eAttr named 'jcs.system.groupIdCache.elementattributes',
using defaults.
- initialized LRUMemoryCache for groupIdCache
- Constructed cache with name: groupIdCache
- Cache file root directory: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Jetty__9090__\co
coon-files\cache-dir
- Could not find value for key jcs.region.main.elementattributes
- Could not instantiate eAttr named 'jcs.region.main.elementattributes', using d
efaults.
- initialized LRUMemoryCache for main
- Constructed cache with name: main
- Cache file root directory: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Jetty__9090__\co
coon-files\cache-dir
- RAMJobStore initialized.
- Quartz scheduler 'Cocoon
- Quartz scheduler version: 1.3.2
- Scheduler Cocoon_$_Mon_Dec_27_16:06:00_CET_2004 started.
server.properties not found, using command line or default properties
Opening database: C:\Documents\cocoon-2.1.5\build\webapp\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
WARN! *** JMS block is installed but jms client library not found. ***
- For the jms block to work you must install and start a JMS server and place th
e client jar in WEB-INF/lib.
- The default server, OpenJMS is configured in cocoon.xconf but is not bundled w
ith Cocoon.
Mon Dec 27 16:06:02 CET 2004 Listening for connections ...
16:06:08.510 EVENT Started SocketListener on 0.0.0.0:9090
16:06:08.510 EVENT Started [EMAIL PROTECTED]
16:06:38.553 WARN!! Error for /samples/hello-world/hello.saxon
java.lang.NoClassDefFoundError: org/w3c/dom/TypeInfo
at net.sf.saxon.tree.TreeBuilder.open(TreeBuilder.java:75)
at net.sf.saxon.event.ProxyReceiver.open(ProxyReceiver.java:88)
at net.sf.saxon.style.UseWhenFilter.open(UseWhenFilter.java:45)
at net.sf.saxon.event.ProxyReceiver.open(ProxyReceiver.java:88)
at net.sf.saxon.event.ProxyReceiver.open(ProxyReceiver.java:88)
at net.sf.saxon.event.Stripper.open(Stripper.java:177)
at net.sf.saxon.event.ProxyReceiver.open(ProxyReceiver.java:88)
at net.sf.saxon.event.ReceivingContentHandler.startDocument(ReceivingCon
tentHandler.java:82)
at org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown Sou
rce)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Sour
ce)
at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Sou
rce)
at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknow
n Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:296)
at org.apache.excalibur.xmlizer.DefaultXMLizer.toSAX(DefaultXMLizer.java
:123)
at org.apache.excalibur.xml.xslt.XSLTProcessorImpl.sourceToSAX(XSLTProce
ssorImpl.java:366)
at org.apache.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandler
AndValidity(XSLTProcessorImpl.java:276)
at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransforme
r.java:299)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setu
pPipeline(AbstractProcessingPipeline.java:375)
at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingP
ipeline.setupPipeline(AbstractCachingProcessingPipeline.java:646)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prep
arePipeline(AbstractProcessingPipeline.java:506)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.proc
ess(AbstractProcessingPipeline.java:464)
at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invo
ke(SerializeNode.java:120)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:49)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNod
e.invoke(PreparableMatchNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invok
e(PipelineNode.java:126)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invo
ke(PipelinesNode.java:101)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(Tree
Processor.java:336)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(Tree
Processor.java:277)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(M
ountNode.java:103)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:49)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNod
e.invoke(PreparableMatchNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invok
e(PipelineNode.java:126)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invo
ke(PipelinesNode.java:101)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(Tree
Processor.java:336)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(Tree
Processor.java:277)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(M
ountNode.java:103)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:49)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNod
e.invoke(PreparableMatchNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invok
e(PipelineNode.java:126)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invo
ke(PipelinesNode.java:101)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(Tree
Processor.java:336)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(Tree
Processor.java:277)
at org.apache.cocoon.Cocoon.process(Cocoon.java:639)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:10
98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354
)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
onHandler.java:294)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
67)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
Context.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
197)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)



-- Jean-Claude Moissinac Department of Computer Science and Networks ENST Paris FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to