« Return to Thread: ImageContext

RE: ImageContext

by Sumit4dreams :: Rate this Message:

Reply to Author | View in Thread

Hi,

I am also facing the same issue. Can you pelase let me know at what place(files name) did you made these changes for permission and what value you provided.

Regards
Sumit




bwhiti wrote:
Hi

 

Thanks if you were going to help but I found the problem and if anyone
else has a problem I found that it was a problem with the permissions of
the installed fop once I changed them to the user and grp of the server
everythin g snapped into place.

 

Thanks

 

Barry

 

From: Barry Whiting [mailto:barry_whiting@londonmarketing.com]
Sent: 10 October 2008 09:48
To: fop-users@xmlgraphics.apache.org
Subject: ImageContext

 

Hi

 

I have just downloaded the fop-0.95 binary package and installed.

 

I have checked from the command line passing a fo file to it and
specifying the pdf file which works fantasticly but when I try to use my
wrapper class I get this error below and wondered if someone could help
me find what I'm doing wrong please.

 

java stack trace: [[o:ByteArrayOutputStream]:"java.lang.Exception:
CreateInstance failed: new FOPWrapper((o:String)[o:String],
(o:String)[o:String]). Cause: java.lang.ClassNotFoundException:
Unresolved external reference: java.lang.NoClassDefFoundError:
org/apache/xmlgraphics/image/loader/ImageContext. -- Unable to call
constructor, see the README section "Java platform issues" for details.
Responsible VM: 1.5.0_04@http://java.sun.com/

                at
php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException(JavaB
ridge.java:435)

                at
php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:505)

                at
php.java.bridge.Request.handleRequest(Request.java:443)

                at
php.java.bridge.Request.handleRequests(Request.java:481)

                at php.java.bridge.JavaBridge.run(JavaBridge.java:213)

                at
php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:58)

Caused by: java.lang.ClassNotFoundException: Unresolved external
reference: java.lang.NoClassDefFoundError:
org/apache/xmlgraphics/image/loader/ImageContext. -- Unable to call
constructor, see the README section "Java platform issues" for details.

                ... 6 more

Caused by: java.lang.NoClassDefFoundError:
org/apache/xmlgraphics/image/loader/ImageContext

                at java.lang.ClassLoader.defineClass1(Native Method)

                at
java.lang.ClassLoader.defineClass(ClassLoader.java:620)

                at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

                at
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)

                at
java.net.URLClassLoader.access$100(URLClassLoader.java:56)

                at
java.net.URLClassLoader$1.run(URLClassLoader.java:195)

                at java.security.AccessController.doPrivileged(Native
Method)

                at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)

                at
php.java.bridge.DynamicJavaBridgeClassLoader$2$1.doLoadClass(DynamicJava
BridgeClassLoader.java:241)

                at
php.java.bridge.DynamicJavaBridgeClassLoader$2$1.loadClass(DynamicJavaBr
idgeClassLoader.java:224)

                at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

                at FOPWrapper.<init>(FOPWrapper.java:20)

                at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)

                at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)

                at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)

                at
php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:494)

                ... 4 more

 

Kind regards

 

Barry

 « Return to Thread: ImageContext