xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Sargent <rsarg...@xmission.com>
Subject Re: Invalid CSS document
Date Mon, 30 Jan 2012 21:59:03 GMT
Get your development to work at the command line, exclusive of idea.
You're probably getting a jar from intellij when you run there and it's
missing when you don't run from the debugger.

IDE's are not the place from which to deploy.



On 01/30/2012 02:47 PM, Li, Jing wrote:
>
> Dear All,
>
>  
>
> I was working on a report using FOP which convert a lot of JFreeCharts
> to svg and render them in PDF.
>
>  
>
> I got it all working in my intellj development environment.  In the
> end, I bundle the whole project in one jar using
> http://one-jar.sourceforge.net/.
>
>  
>
> But when I run it in one jar, I got the following messages:
>
>  
>
> Error: SVG graphic could not be built. Reason:
> org.w3c.dom.DOMException: <unknown>:
>
> Invalid CSS document.
>
> JAR entry
> lib/batik-svg-dom-1.7.jar!/org/apache/batik/dom/svg/resources/UserAgentStyleSheet.css
> not found in C:\Users\lij40\AppData\Local\Temp\temp0.jar
>
>  
>
> And of course, the PDF is missing all the nice charts because of it.
>
>  
>
> Your suggestions and comment to how to fix it will be highly appreciated.
>
>  
>
> Thanks
>
> Jing
>

Mime
View raw message