• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet and Servlet communication

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I have a applet which communicates with a servlet.
When my applet attacks my servlet and when my servlet is installed on the same machine (211.1.1.180), the communication is done without problem. But, when the servlet is installed on a another machine (211.1.1.135) I've a java.security.AccessControlException. I work with jdk 1.3.1 and i've tested with jdk 1.1.8 and all works!! I suppose that my problem is with jdk 1.3.1.
below sources:
Applet

Servlet

The exception

I've tried also with a simple application in the place of a applet and that works!!
How can i resolve that?
Thanks for your help
[ February 01, 2002: Message edited by: Laurent Sate ]
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The exception you are getting is exactly what one would expect. Normal Applet security policy enforced by the browser prevents accessing data from another server. I think you would have to use a signed applet.
Bill
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Correct. In fact, unsigned applets are forbidden to open ANY sort of network connection to any place other than the server that they were loaded from.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic