cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen Reijn" <>
Subject RE: Signed Applet and Cocoon
Date Tue, 14 Nov 2006 09:56:46 GMT
Hi Andrea,

i'm not sure why it gives you the bad magic number, but here is something that explains what
it is.

It seems that your class file isn't recognized by the classloader. Maybe try to create the
jar again?

Kind regards,

Jeroen Reijn

-----Original Message-----
From: Andrea König []
Posted At: Tuesday, November 14, 2006 9:38 AM
Posted To: Cocoon User List
Conversation: Signed Applet and Cocoon
Subject: Signed Applet and Cocoon

Hi all,
I have to integrate an applet into my web application. The 
webapplication code is implemented with cocoon 2.1.9. The applet has to 
be signed. If I copy my package tree into my application directory I can 
start my applet. For signing the applet I have to pack my classes into a 
jar file. But if I try to start my applet archived in a jar file the 
following exception is thrown:
 java.lang.ClassFormatError: package/LoginApplet (Bad magic number)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(
    at sun.applet.AppletClassLoader.findClass(
    at java.lang.ClassLoader.loadClass(
    at sun.applet.AppletClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    at sun.applet.AppletClassLoader.loadCode(
    at sun.applet.AppletPanel.createApplet(
    at sun.plugin.AppletViewer.createApplet(
    at sun.applet.AppletPanel.runLoader(

Is there anybody could give a hint?

Best regards

Dr. Andrea König

G.punkt - medical services
Halberstädter Str. 115A
39112 Magdeburg

Tel: +49 391 280380
Fax: +49 391 2803822

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message