[Bug 1112] Main class from signed jar's INDEX.LIST fails to load

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Tue Sep 18 07:00:20 PDT 2012


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1112

Adam Domurad <adomurad at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #5 from Adam Domurad <adomurad at redhat.com> ---
Sorry, would have responded sooner if I noticed your posting earlier. The issue
is understood and I have a patch that 'fixes' it, but it's too much of a change
of how things are done to be comfortably added (yet).

The issue essentially is, icedtea-web has a phase where it goes through every
jar it knows of and checks if the specified main-class is in that jar. Because
icedtea-web does not currently check jars that are loaded only through a jar's
INDEX.LIST, it overlooks that the main class actually exists and fatally errors
saying it doesn't. (My aforementioned patch skips this logic more or less and
tries to load the class anyway)

There are several things that can be done. 
The simplest (not requiring the jars to be modified) is to add the jar that has
the main class to the archive parameter.

AFAICS all you would need to do is make the archive parameter this:
archive="EditorApplet_files/jchempaint-applet-editor.jar,EditorApplet_files/jchempaint-applet-core.jar"

Thanks for your interest in making your applet icedtea-web compatible! The
general rule of thumb is to use the core features, whereas loading classes
solely through the META-INF/ folder is a bit of a more obscure feature. We're
working hard to track down all these corner cases but there are a lot of them.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120918/a6dd4735/attachment.html 


More information about the distro-pkg-dev mailing list