This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Applets and the fly likes Loading problem of signed applet on MAC OS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Loading problem of signed applet on MAC OS" Watch "Loading problem of signed applet on MAC OS" New topic
Author

Loading problem of signed applet on MAC OS

kavita Br
Greenhorn

Joined: Aug 30, 2007
Posts: 1
Hi All
I�m trying to test my application on MAC OS (For versions: 10.2.6 as well as 10.4.x)


For MAC 10.2.6 OS Java version is 1.4.1_01 and
For MAC 10.4.x OS Java version is 1.4.2_07

The code is compiled on Windows machine having Java version 1.4.2_07

There�s a functionality which is calling signed applet (signed JAR for applet) and when this functionality is called, following error encounters:



Java(TM) Plug-in: Version 1.4.1_01

Using JRE version 1.4.1_01 Java HotSpot(TM) Client VM

User home directory = /Users/admin

----------------------------------------------------

c: clear console window

f: finalize objects on finalization queue

g: garbage collect

h: display this help message

l: dump classloader list

m: print memory usage

o: trigger logging

p: reload proxy configuration

q: hide console

r: reload policy configuration

s: dump system properties

t: dump thread list

v: dump thread stack

x: clear classloader cache

0-5: set trace level to <n>

----------------------------------------------------

java.io.IOException: Server returned HTTP response code: 403 for URL: http://myMachineName ort/appName/UploadDownloadAppletJava.jar

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:709)

at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:384)

at sun.plugin.net.protocol.http.HttpUtils.followRedirects(HttpUtils.java:39)

at sun.plugin.cache.CachedJarLoader.download(CachedJarLoader.java:302)

at sun.plugin.cache.CachedJarLoader.load(CachedJarLoader.java:128)

at sun.plugin.cache.JarCache.get(JarCache.java:172)

at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(CachedJarURLConnection.java:93)

at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(CachedJarURLConnection.java:78)

at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:580)

at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:541)

at sun.misc.URLClassPath$3.run(URLClassPath.java:319)

at java.security.AccessController.doPrivileged(Native Method)

at sun.misc.URLClassPath.getLoader(URLClassPath.java:308)

at sun.misc.URLClassPath.getLoader(URLClassPath.java:285)

at sun.misc.URLClassPath.getResource(URLClassPath.java:155)

at java.net.URLClassLoader$1.run(URLClassLoader.java:190)

at java.security.AccessController.doPrivileged(Native Method)



Due to which cannot access Applet class (which is inside UploadDownloadAppletJava.jar) and operation is failed.

(It works perfectly fine on Windows XP with both IE 6 and Firefox browsers).
On MAC I'm testing on FireFox.

Code which calls to applet is:
<applet
name=UploadDownloadApplet
code="UploadDownloadApplet.class"
codebase=/appName/
archive=UploadDownloadAppletJava.jar
width=0 height=0>
<PARAM NAME=cabbase VALUE=UploadDownloadApplet.cab>
<PARAM NAME=action VALUE=<%= action %>>
<PARAM NAME=workingAreaMac VALUE="<%= workingAreaMac %>">
<PARAM NAME=workingAreaPC VALUE="<%= workingAreaPC %>">
<PARAM NAME=processId VALUE=<%= processId %>>
<PARAM NAME=downloadBaseProductInd VALUE=<%= downloadBaseProductInd %>>
<PARAM NAME=initTime VALUE=<%= initTime %>>
<PARAM NAME=httpSessionId VALUE="<%= httpSessionId %>">
<PARAM NAME=userId VALUE="<%= userId %>">
</applet>


Please suggest some guidelines
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24168
    
  30

Hi,

Welcome to JavaRanch!

First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. Nicknames or "handles" aren't OK here. You can change your display name here. Thanks!


[Jess in Action][AskingGoodQuestions]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
That's a server error message, and means that the server refused to honor the request. You might want to look at the server logs to see which file was specifically requested, whether that's in fact the file that should be accessed, and if there are possibly more error messages in the server log.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loading problem of signed applet on MAC OS
 
Similar Threads
Problem with JDK 1.4
ejbGen help
ERROR: When trying to accept digita signature!
Problem in running applets in html
Applet only works with one Java version