Avatar of malich1
malich1
 asked on

access denied (java.net.SocketPermission [MyServer] resolve)

This class file runs fine when its a windowed app or console app but i get this error when I try to run it from IE as an applet. Is there a fix and if so what is it?
Java

Avatar of undefined
Last Comment
Mick Barry

8/22/2022 - Mon
Mick Barry

the default applet permissions only allow it to coneect to the same machine it was loaded from.
what does your applet try to connect to?
Mick Barry

yyou may need to sign your applet to remove restrictions:
http://www.mindprod.com/jgloss/signedapplets.html
malich1

ASKER
it is trying to connect to a central server in our datacenter.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER CERTIFIED SOLUTION
Mick Barry

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
malich1

ASKER
Ok signing the applet seems to be a real pain. The webserver and the server that the applet connects to are different servers. So I guess i have no choice but to sign it. Have you done this before?
Mick Barry

yes, i use ant to do the signing as part of the deployment process.