Hi all,
thank you very much for your help. Probably my html-page which the applet tag is located in was wrong. I did not defined the entire context path for the library path. After I corrected this the jar archives are read and the applet can be started.
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:

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,

Andreas Kuehne wrote: Hi Andrea


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

Serving a jar while matching a class doesn't make sense !

For me this sitemap snippet does the job very well :

   <map:match pattern="**/*.jar">
     <map:read src="resources/static/{2}.jar"/>
   </map:match>

assuming that all required jar's are in resources/static ...

Anyway, I'm sure that it works. We got the site http://sig-check.de ( -> Pruefung ) doing what you are aiming for, a signed applet served by cocoon.

Good luckj

Andreas


___________________________________________________
Andreas Kühne
phone: +49 177 293 24 97
mailto: [EMAIL PROTECTED]

Trustable
Kirchröder Str. 70e
30625 Hannover
Germany
www.trustable.de

Kostenlose Verifikation qualifizierter elektronischer Signaturen:
www.sig-check.de




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

Reply via email to