Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet with a ServerSocket

 
Marco Tulio Borges
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, there, Ranch friends! I have a web application running under j2sdk1.4.2_07 and jakarta-tomcat-5.0.28 and this application has an applet. This little fellow opens a ServerSocket. At some point, a class at the server tries to open a connection with this applet with a Socket. Here I got a problem:
Written in the Java Plug-in console:
java.security.AccessControlException: access denied (java.net.SocketPermission 172.16.1.6:4903 accept,resolve)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkAccept(Unknown Source)

at java.net.ServerSocket.implAccept(Unknown Source)

at java.net.ServerSocket.accept(Unknown Source)

at my.package.MyApplet.someMethod(MyApplet.java:someLineNumer)

.... lots of other stuff ....


Well... What should I do? Should I add some permission file somewhere? Where? How? Please help me, country folks!
 
Tom Katz
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the applet signed?
 
Marco Tulio Borges
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it is.
 
Marco Tulio Borges
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ops! It wasn't! My bad... Sorry... It's ok, now...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic