cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Senhaji" <osenh...@wanadoo.fr>
Subject RE: svg2jpeg serialiser error
Date Fri, 01 Nov 2002 09:49:55 GMT
In my configuration, your proposal does not fix the problem. I've checked
the batik jar file, the SVGDocument class file is there. Very strange...

-----Message d'origine-----
De : François Quartenoud [mailto:francois@quartenoud.ch]
Envoyé : vendredi 1 novembre 2002 08:20
À : osenhaji@wanadoo.fr
Objet : Re: svg2jpeg serialiser error


If there is one help here is the line I use to make the same as you (~line
130 )

<map:serializer name="svg2jpeg" mime-type="image/jpeg"
src="org.apache.cocoon.serialization.SVGSerializer">
      <parameter name="transcoder"
value="org.apache.batik.transcoder.image.JPEGTranscoder"/>
    </map:serializer>

François Quartenoud

___________________________________________________________
envie de vins? www.vinsjulesgex.ch
envie de boissons? www.halleauxboissons.ch
envie de boissons à domicile? www.allo-boissons.ch - 0848 444 111

----- Original Message -----
From: "Senhaji" <osenhaji@wanadoo.fr>
To: "Cocoon-Users" <cocoon-users@xml.apache.org>
Sent: Thursday, October 31, 2002 10:05 PM
Subject: svg2jpeg serialiser error


> Hi,
>
> I'm playing with Cocoon since one week. I try to run the "Gallery" sample
> shipped with the "Building XML Applications" book with no success.
>
> The System: Tomcat-4.0.3, Win2k, Cocoon 2.0.3, JDK1.4.0
>
> When I try to transform the svg.xml document to jpeg image using the
> "svg2jpeg" serialiser the following error is thrown:
>
> java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
> 3)
>         at
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
> ClassLoader.java:1631)
>         at
> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
> der.java:926)
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1360)
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1243)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
>         at
> org.apache.batik.dom.svg.SVGDOMImplementation.createDocument(Unknown
> Source)
>         at
> org.apache.cocoon.xml.dom.SVGBuilder.startDocument(SVGBuilder.java:11
> 8)
>         at
> org.apache.xalan.transformer.ResultTreeHandler.flushDocEvent(ResultTr
> eeHandler.java:824)
>         at
> org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTre
> eHandler.java:932)
>         at
> org.apache.xalan.transformer.ResultTreeHandler.startElement(ResultTre
> eHandler.java:241)
>         at
> org.apache.xalan.transformer.ClonerToResultTree.cloneToResultTree(Clo
> nerToResultTree.java:229)
>         at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:152)
>         at
> org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(
> ElemApplyTemplates.java:422)
>         at
> org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTempla
> tes.java:226)
>         at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
> ansformerImpl.java:2243)
>         at
> org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Tran
> sformerImpl.java:2069)
>         at
> org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
> rImpl.java:1171)
>         at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
> :3196)
>         at java.lang.Thread.run(Thread.java:536)
>
>
> any help?
>
> Thanks!
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>
>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message