Hi all,
I'm trying to use java code in a CXF webservice in a Tomcat server which
converts a byte[] to a class using java.lang.ClassLoader. The code is
working outside of the webservice (i.e. in the IDE)
My question is... has anyone tried and succeeded doing this?
//Part of error is as follows (with my comments)...
Caused by: java.lang.NoClassDefFoundError:
common/core/AbstractServiceProvider < ----- This is the superclass of
the class I'm trying to load
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:478)
at
common.utilities.ClassLoading.FileClassLoader.loadClass(FileClassLoader.java:26)
<--- this is the name of my class containing code below...
// java code...
public class FileClassLoader extends ClassLoader {
...
Class<?> c = defineClass(name, byteArray, 0, byteArray.length);
...
return c;
}
regards,
Peter Lavin
--
with best regards,
Peter Lavin,
PhD Candidate,
Computer Architecture & Grid Research Group,
Lloyd Institute, 005,
Trinity College Dublin, Ireland.
+353 1 8961536