Hi. I'm trying to use iText 5.1.1 on Felix OSGi runtime with Spring DM. I wrote a very simple test case to create a empty PDF document. This will be called in a sample bean's constructor:
https://gist.github.com/1043609 This always throw an exception (see below) and I cannot create Graphics2D object from PdfContentByte. So, my question is, does the OSGi metadata (MANIFEST.MF) correct? I've check'ed "Import-Package" section in the metadata, but looks it's not sufficient because I can run this test case in JUnit 4 without OSGi runtime. The bottom line is, javax.imageio.ImageWriteParam is invisible from iText in OSGi environment. Thanks. Kei Caused by: java.lang.NoClassDefFoundError: javax/imageio/ImageWriteParam at com.itextpdf.text.pdf.PdfContentByte.createGraphics(PdfContentByte.java:2850) at org.cytoscape.io.internal.write.graphics.PDFWriterFactory.<init>(PDFWriterFactory.java:48) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) ... 33 more Caused by: java.lang.ClassNotFoundException: javax.imageio.ImageWriteParam at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772) at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1685) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 40 more -- Keiichiro Ono http://www.keiono.net/ ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense.. http://p.sf.net/sfu/splunk-d2d-c1 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
