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 Tuan Quan <tu...@yahoo.com> on 2009/02/12 22:30:34 UTC

xmlgraphic error

After installing 0.95 fop on solaris box, with java installed as well;
running test� 
./fop.sh -fo examples/fo/basic/readme.fo -awt

got the below error:

ava.lang.reflect.InvocationTargetException
������� at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
������� at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
������� at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
������� at java.lang.reflect.Method.invoke(Method.java:324)
������� at org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:132)
������� at org.apache.fop.cli.Main.main(Main.java:199)
Caused by: java.lang.NoClassDefFoundError: org/apache/xmlgraphics/image/loader/ImageContext
������� at java.lang.ClassLoader.defineClass0(Native Method)
������� at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
������� at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
������� at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
������� at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
������� at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
������� at java.security.AccessController.doPrivileged(Native Method)
������� at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
������� at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
������� at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
������� at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
������� at org.apache.fop.cli.CommandLineOptions.<init>(CommandLineOptions.java:102)
������� at org.apache.fop.cli.Main.startFOP(Main.java:153)

Anyone knows why?
thanks.
Tuan.

�



________________________________
From: Frank Habermann <lo...@lordlamer.de>
To: fop-users@xmlgraphics.apache.org
Sent: Thursday, February 12, 2009 12:56:18 AM
Subject: Re: fop.sh

Hi,

because the script is called "fop" ?!

Frank

Tuan Quan schrieb:
> Hi all,
> I downloaded the binary FOP 0.95, but could not find fop.sh script.
> Anyone know why?
> thanks.
> tuan.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

Re: fop 0.95 binary for Solaris 9

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
There's no particular binary for Solaris. But the general binary
distribution which contains all the JARs that you are missing can be
found on the ASF download mirrors [1]. Look in the subdirectory
"binaries" and for filenames that end with "-bin.tar.gz".

[1] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop

[1] is linked to from: http://xmlgraphics.apache.org/fop/download.html#binary

On 17.02.2009 18:02:34 Tuan Quan wrote:
> Anyone knows where I can download the binary from?
> I tried many places, after installing it, it missing some jar files in the the lib and build directories.
> thanks.
> steven.




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: xmlgraphic error

Posted by Tuan Quan <tu...@yahoo.com>.
My binary download of 0.95 does not have the xmlgraphics-commons-1.3.1.jar - but even i have the same problem with 0.93 binarary which does have that xmlgraphics-commons-1.3.1.jar.
thanks.

�



________________________________
From: Jeremias Maerki <de...@jeremias-maerki.ch>
To: fop-users@xmlgraphics.apache.org
Sent: Friday, February 13, 2009 12:41:06 PM
Subject: Re: xmlgraphic error

A NoClassDefFoundError means that a JAR is missing in the classpath. In
this case, it's xmlgraphics-commons-1.3.1.jar. It must be in the "lib"
directory under the directory where you installed FOP. Normally, that
should be there if you just extract the binary distribution. Maybe
you've accidentally deleted some files?

On 12.02.2009 22:30:34 Tuan Quan wrote:
> After installing 0.95 fop on solaris box, with java installed as well;
> running test� 
> ./fop.sh -fo examples/fo/basic/readme.fo -awt
> 
> got the below error:
> 
> ava.lang.reflect.InvocationTargetException
> ������� at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ������� at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> ������� at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> ������� at java.lang.reflect.Method.invoke(Method.java:324)
> ������� at org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:132)
> ������� at org.apache.fop.cli.Main.main(Main.java:199)
> Caused by: java.lang.NoClassDefFoundError: org/apache/xmlgraphics/image/loader/ImageContext
> ������� at java.lang.ClassLoader.defineClass0(Native Method)
> ������� at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
> ������� at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> ������� at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> ������� at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> ������� at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> ������� at java.security.AccessController.doPrivileged(Native Method)
> ������� at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> ������� at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> ������� at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> ������� at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> ������� at org.apache.fop.cli.CommandLineOptions.<init>(CommandLineOptions.java:102)
> ������� at org.apache.fop.cli.Main.startFOP(Main.java:153)
> 
> Anyone knows why?
> thanks.
> Tuan.
> 
> �
> 
> 
> 
> ________________________________
> From: Frank Habermann <lo...@lordlamer.de>
> To: fop-users@xmlgraphics.apache.org
> Sent: Thursday, February 12, 2009 12:56:18 AM
> Subject: Re: fop.sh
> 
> Hi,
> 
> because the script is called "fop" ?!
> 
> Frank
> 
> Tuan Quan schrieb:
> > Hi all,
> > I downloaded the binary FOP 0.95, but could not find fop.sh script.
> > Anyone know why?
> > thanks.
> > tuan.
> 



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

Re: xmlgraphic error

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
A NoClassDefFoundError means that a JAR is missing in the classpath. In
this case, it's xmlgraphics-commons-1.3.1.jar. It must be in the "lib"
directory under the directory where you installed FOP. Normally, that
should be there if you just extract the binary distribution. Maybe
you've accidentally deleted some files?

On 12.02.2009 22:30:34 Tuan Quan wrote:
> After installing 0.95 fop on solaris box, with java installed as well;
> running test  
> ./fop.sh -fo examples/fo/basic/readme.fo -awt
> 
> got the below error:
> 
> ava.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:132)
>         at org.apache.fop.cli.Main.main(Main.java:199)
> Caused by: java.lang.NoClassDefFoundError: org/apache/xmlgraphics/image/loader/ImageContext
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>         at org.apache.fop.cli.CommandLineOptions.<init>(CommandLineOptions.java:102)
>         at org.apache.fop.cli.Main.startFOP(Main.java:153)
> 
> Anyone knows why?
> thanks.
> Tuan.
> 
>  
> 
> 
> 
> ________________________________
> From: Frank Habermann <lo...@lordlamer.de>
> To: fop-users@xmlgraphics.apache.org
> Sent: Thursday, February 12, 2009 12:56:18 AM
> Subject: Re: fop.sh
> 
> Hi,
> 
> because the script is called "fop" ?!
> 
> Frank
> 
> Tuan Quan schrieb:
> > Hi all,
> > I downloaded the binary FOP 0.95, but could not find fop.sh script.
> > Anyone know why?
> > thanks.
> > tuan.
> 



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org