You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Guillaume Patin <gp...@cofidis.fr> on 2002/04/25 15:22:34 UTC

Batik on sun solaris 2.6

Hi,

I'm using fop 0.20.3 on weblogic 5.1 and sun solaris 2.6, jdk 1.3.1
I'm becoming mad with a batik problem :

when generating the PDF document, weblogic throws an exception :
java.lang.NoClassDefFoundError
 at org.apache.fop.svg.SVGElement.init(SVGElement.java:197)
 at org.apache.fop.svg.SVGElement.<init>(SVGElement.java:84)
 at org.apache.fop.svg.SVGElement$Maker.make(SVGElement.java:61)
 at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:261)

but batik.jar  is present in the classpath !

any idea ? 

Guillaume Patin
03 28 76 29 32
gpatin@cofidis.fr

Re: Batik on sun solaris 2.6

Posted by Tomasz Pik <pi...@ais.pl>.
Hi

Your WL instance is not connected to running XServer.
Solutions:
1 Xvfb - virtual frame buffer and someting like
  DISPLAY=localhost:9
  somewhere in WL start script
2 JDK 1.4 'awt.headless' option
3 (descibe somewhere on Batik (xml.apache.org/batik) pages,
  no-native graphics toolkit for java (GPL)).

Tomek Pik
pikus@ais.pl

PS Maybe there should be FAQ, which will be send periodicaly
to the list.

Guillaume Patin wrote:

> Hi,
>
>  
>
> I'm using fop 0.20.3 on weblogic 5.1 and sun solaris 2.6, jdk 1.3.1
>
> I'm becoming mad with a batik problem :
>
>  
>
> when generating the PDF document, weblogic throws an exception :
>
> java.lang.NoClassDefFoundError
>  at org.apache.fop.svg.SVGElement.init(SVGElement.java:197)
>  at org.apache.fop.svg.SVGElement.<init>(SVGElement.java:84)
>  at org.apache.fop.svg.SVGElement$Maker.make(SVGElement.java:61)
>  at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:261)
>
>  
>
> but batik.jar  is present in the classpath !
>
>  
>
> any idea ? 
>
>  
>
> Guillaume Patin
> 03 28 76 29 32
> gpatin@cofidis.fr <ma...@cofidis.fr>
>