Andrea,

your welcome. You are requesting the jar file now for every class you call from 
cocoon. Instead you need to call the class file from inside the jar. You can 
try this reading the file with the zip protocol instead. It should look 
something like:

<map:match pattern="**.class">
  <map:read mime-type="application/java-archive" 
src="zip:login/login.jar!/org/apache/{1}.class"/>
</map:match>

Kind regards,

Jeroen Reijn


-----Original Message-----
From: Andrea König [mailto:[EMAIL PROTECTED]
Posted At: Tuesday, November 14, 2006 11:48 AM
Posted To: Cocoon User List
Conversation: Signed Applet and Cocoon
Subject: Re: Signed Applet and Cocoon


Hi Jeroen,
many thanks for your reply.
I copied all libraries needed into the document root of my webserver and tried 
to start the applet without cocoon. It run perfectly. I guess the problem could 
be the sitemap. But how must the pipeline be defined? My pipeline snippet looks 
like the following:

<map:match pattern="**.class">
  <map:read mime-type="application/java-archive" src="login/login.jar"/>
</map:match>

Do you have any idea if there is something wrong?

Best regards,
-- 
Dr. Andrea König
(Entwicklung)

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

Tel: +49 391 280380
Fax: +49 391 2803822
Inet: www.gmatic.de
mail: [EMAIL PROTECTED]




Jeroen Reijn wrote:

>Hi Andrea,
>
>i'm not sure why it gives you the bad magic number, but here is something that 
>explains what it is.
>http://www.javacoffeebreak.com/faq/faq0083.html
>
>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 [mailto:[EMAIL PROTECTED]
>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(ClassLoader.java:539)
>    at 
>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:157)
>    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
>    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>    at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:561)
>    at sun.applet.AppletPanel.createApplet(AppletPanel.java:617)
>    at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1856)
>    at sun.applet.AppletPanel.runLoader(AppletPanel.java:546)
>    at sun.applet.AppletPanel.run(AppletPanel.java:298)
>    at java.lang.Thread.run(Thread.java:534)
>
>Is there anybody could give a hint?
>
>Best regards
>
>  
>


-- 
Dr. Andrea König
(Entwicklung)

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

Tel: +49 391 280380
Fax: +49 391 2803822
Inet: www.gmatic.de
mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to