[jira] [Commented] (BATIK-1148) NoClassDefFoundError: org/apache/batik/dom/svg/SVGDOMImplementation while converting svg to pdf

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (BATIK-1148) NoClassDefFoundError: org/apache/batik/dom/svg/SVGDOMImplementation while converting svg to pdf

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/BATIK-1148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15932969#comment-15932969 ]

simon steiner commented on BATIK-1148:
--------------------------------------

Should be fixed if you use fop-transcoder-allinone-2.x.jar

> NoClassDefFoundError: org/apache/batik/dom/svg/SVGDOMImplementation while converting svg to pdf
> ------------------------------------------------------------------------------------------------
>
>                 Key: BATIK-1148
>                 URL: https://issues.apache.org/jira/browse/BATIK-1148
>             Project: Batik
>          Issue Type: Bug
>          Components: SVG DOM, SVG Rasterizer
>    Affects Versions: 1.8
>         Environment: Windows 7, JDK 1.7
>            Reporter: Alexander Zobkov
>            Priority: Critical
>
> It seems batik-rasterizer relies on outdated version of fop-transcoder-allinone-1.1.jar. fop-transcoder-allinone uses org.apache.batik.dom.svg.SVGDOMImplementation that is not present anymore in batik-svg-dom-1.8.
> F:\tools\batik-1.8>java -jar batik-rasterizer-1.8.jar -d ...\output -m application/pdf ...\rhev-console-access.svg.svg
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/SVGDOMImplementation
>         at org.apache.fop.svg.AbstractFOPTranscoder.<init>(AbstractFOPTranscoder.java:107)
>         at org.apache.fop.svg.PDFTranscoder.<init>(PDFTranscoder.java:84)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
>         at java.lang.reflect.Constructor.newInstance(Unknown Source)
>         at java.lang.Class.newInstance0(Unknown Source)
>         at java.lang.Class.newInstance(Unknown Source)
>         at org.apache.batik.apps.rasterizer.DestinationType.getTranscoder(Unknown Source)
>         at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown Source)
>         at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
>         at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)
> Caused by: java.lang.ClassNotFoundException: org.apache.batik.dom.svg.SVGDOMImplementation
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         ... 12 more



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]