Bug#505582: Multiple packaging problems

Onkar Shinde onkarshinde at gmail.com
Thu Nov 13 18:35:07 UTC 2008


Package: fop
Version: 1:0.95.dfsg-1

I have found following problems with the fop package from
experimental, version 1:0.95.dfsg-1. One of them is present in the
version in unstable/testing as well and was reported in Ubuntu in
Intrepid development cycle.

1. Bump libxmlgraphics-commons-java version required to >= 1.3.1.
Fop now uses image loaders provided by xmlgraphics commons library.
These loaders are not present in libxmlgraphics-commons-java version
1.2. Following is the error I get when I try to run fop with
libxmlgraphics-commons-java 1.2.

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/xmlgraphics/image/loader/ImageContext
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:637)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
...

2. Missing xml-apis-ext.jar in wrapper script.
If the xml-apis-ext is not present in classpath in the fop launcher
script then following error is seen while trying to process documents
with SVG images embedded. The bug was reported in Ubuntu previously
[1].
java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:637)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
...

I have attached a sample docbook file as a use case. Same file can
also be found in Ubuntu bug.

3. Add runtime dependency on libxml-commons-external-java.
Although this is not strictly necessary, since the library will be
pulled in by libbatik-java, I think it is good to have this dependency
added.

[1] https://edge.launchpad.net/bugs/268930

Hope this helps.


Onkar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.xml
Type: text/xml
Size: 638 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20081114/e0a386d9/attachment.bin 


More information about the pkg-java-maintainers mailing list