grails 2.3 java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/SVGOMDocument
Asked Answered
O

0

1

When i run my grails application in tomcat i get the following error java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/SVGOMDocument. But the batik-svg-dom.1.7.jar is packaged in the war and in the classpath.

I don't however get this error when i am running the application in debug mode in STS. I am using Grails 2.3 and building my war using maven. I am using FOP and have excluded the "xml-apis".

I have tried to place the batik-svg-dom.jar in the lib folder of tomcat, that did not work.

Thanks in advance.

Otherdirected answered 4/10, 2013 at 1:24 Comment(4)
Did you try this fix: #8434916Book
It's been a while but, I think batik 1.7 was being excluded by maven you will need to run a maven dependency tree command to make sure. Also did you exclude all the xml-API from fop, since these break grails. See this post linkOtherdirected
Had the same issue, Eclipse w/o Maven. Adding xml-apis-ext.jar and xml-apis-1.3.04.jar to the classpath explicitly resolved the issue for me. Weird, as SVGOMDocument seems to be contained in the batik jars...Enlargement
What would be a fix using grails?Dovap

© 2022 - 2024 — McMap. All rights reserved.