| Author |
Applet with a ServerSocket
|
Marco Tulio Borges
Ranch Hand
Joined: Sep 14, 2004
Posts: 45
|
|
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!
|
.: SCJP 1.4 (95%) / SCWCD 1.4 (91%) / SCBCD (77%) :.
"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us." - Calvin
|
 |
Tom Katz
Ranch Hand
Joined: Aug 19, 2002
Posts: 169
|
|
|
Is the applet signed?
|
 |
Marco Tulio Borges
Ranch Hand
Joined: Sep 14, 2004
Posts: 45
|
|
|
Yes, it is.
|
 |
Marco Tulio Borges
Ranch Hand
Joined: Sep 14, 2004
Posts: 45
|
|
Ops! It wasn't! My bad... Sorry... It's ok, now...
|
 |
 |
|
|
subject: Applet with a ServerSocket
|
|
|