This is exactly the problem.
Harald, your matcher is for the class file, not the signed JAR file.
Since the class file cannot be signed by itself, no security permissions
are available.
I am guessing that your cocoon-generated HTML that references the
applet or object tag does not have an "archive" attribute or parameter,
but that the static HTML does.
I'd suggest removing the class files from availability through Cocoon
altogether, to make sure the same mistake doesn't happen again. Just
make the JAR file available.
Andreas Kuehne wrote:
Strange !
I would expect the browser to look the jar, not the class ..
I have fun with such a matcher :
<map:match pattern="**/*.jar">
<map:read src="resources/static/{2}.jar"/>
</map:match>
Good luck
Andreas
----- Original Message ----
From: Harald Entner <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, September 12, 2007 4:41:22 PM
Subject: Applet & Cocoon
Hello Folks,
i face the following problem. I have to integrate a signed applet into
my application.
The sitemap entry looks like:
<!-- applets -->
<map:match pattern="**.class">
<map:read src="resource://{1}.class" />
</map:match>
The applet is found and returned, but - unfortunately - the dialog if i
trust the application is not shown.As a result, the following exception
is thrown:
java.security.AccessControlException: access denied
The template code looks like this:
<applet code="at.workflow.fileTransfer.FileTransferApplet.class"
archive="SFileTransfer.jar" width="500" height="200">
<param name="uploadurl"
value="${cocoon.request.getAttribute('uploadurl')}"/>
<param name="downloadurl"
value="${cocoon.request.getAttribute('downloadurl')}"/>
<param name="filehandler"
value="${cocoon.request.getAttribute('filehandler')}"/>
</applet>
The code works, when not run inside cocoon. (via a static html page)
Any suggestions are highly welcome
Harald
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]