users@jaxb.java.net

Re : Re : JAXB in applet under Windows problem after ClassLoader

From: Jérôme Vuibert <jerome.vuibert_at_fleximage.fr>
Date: Fri, 30 Jan 2004 09:28:25 +0100

What do you mean ?

Let's say the following points :

    - necessary libraries for using JAXB are in different jar files
    - my jaxb genereted classes are in a jar files : let say my_jaxbclasses.jar
    - my applet which calls previous classes is in a jar named my_applet.jar.

How do you construct my_jaxbclasses.jar and named my_applet.jar ?
What are dependencies for each one ?

Thanks a lot for your help.

Sincerely,

Jerome



 ===========================================================================
I think it might have something to do with the fact that you re-jarred
existing jar files.

regards,
--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com =========================================================================== Well, thinks go since my post.
Since the post, I have found the dev site of SUN which purpose weekly build
libs of JAXB and its sources.
The problem from the classLoader is over, so no need to make a new class for
bypassing it.
But it would be to simple.
Now, when my applet is loading here is the message displayed in the java
console :
java.lang.SecurityException: no manifiest section for signature file entry
org/w3c/dom/traversal/TreeWalker.class
 at sun.security.util.SignatureFileVerifier.verifySection(Unknown Source)
 at sun.security.util.SignatureFileVerifier.process(Unknown Source)
 at java.util.jar.JarVerifier.processEntry(Unknown Source)
 at java.util.jar.JarVerifier.update(Unknown Source)
 at java.util.jar.JarFile.initializeVerifier(Unknown Source)
 at java.util.jar.JarFile.getInputStream(Unknown Source)
 at sun.misc.URLClassPath$5.getInputStream(Unknown Source)
 at sun.misc.Resource.getBytes(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at sun.applet.AppletClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.applet.AppletClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.applet.AppletClassLoader.loadCode(Unknown Source)
 at sun.applet.AppletPanel.createApplet(Unknown Source)
 at sun.plugin.AppletViewer.createApplet(Unknown Source)
 at sun.applet.AppletPanel.runLoader(Unknown Source)
 at sun.applet.AppletPanel.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
I tried different release of javac, and java plug-in (always same version
between javac and plug-in). The result is the same, only the name of the
mentionned class differs.
Don't know what to do now ?????
Jerome