Java Applet gets error accessing DB: (java.net.SocketPermission ... resolve)



Hi folks,

I'm new about developing Java applets and I need some help.


I'm developing a Web Application based on JSPs and Tomcat in
Netbeans.


I've also developed a Java Applet which its package has some classes.
This Applet connects to a Sybase Database (JConnect) in order to
query
some information. It works fine when I run the Applet Class at
Netbeans.


The Jar containing this Applet (and the Jar supporting the DB driver)
is embedded into a JSP of my Web Application through JSP Plugin tag.


When I call for this JSP (where the Applet is embedded) I get this
error (at the Client Java Console):


java.security.AccessControlException: access denied
(java.net.SocketPermission ... 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.checkConnect(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at java.net.InetSocketAddress.<init>(Unknown Source)
...


How can I fix it?


Regards

.



Relevant Pages

  • Re: How to open the jsp pages by click on the APPLET
    ... I want to know is there is any way to open the new window of jsp ... By this i get only html tags nothing beyond that.That is not my ... requirement.Will give syntax for getting jsp page on applet. ... only load URLs from the same server as the containing page ...
    (comp.lang.java.advocacy)
  • Java Applets connecting to Databases: access denied (java.net.SocketPermission ... resolve)
    ... I'm new about developing Java applets and I need some help. ... I'm developing a Web Application based on JSPs and Tomcat in Netbeans. ... I've also developed a Java Applet which its package has some classes. ... is embedded into a JSP of my Web Application through JSP Plugin tag. ...
    (comp.lang.java.programmer)
  • Java Applet gets error accessing DB: access denied (java.net.SocketPermission ... resolve)
    ... I'm new about developing Java applets and I need some help. ... I'm developing a Web Application based on JSPs and Tomcat in Netbeans. ... I've also developed a Java Applet which its package has some classes. ... is embedded into a JSP of my Web Application through JSP Plugin tag. ...
    (comp.lang.java.security)
  • Re: How to open the jsp pages by click on the APPLET
    ... I want to know is there is any way to open the new window of jsp ... By this i get only html tags nothing beyond that.That is not my ... requirement.Will give syntax for getting jsp page on applet. ... window.In that new window it must load and process jsp tree structure. ...
    (comp.lang.java.advocacy)
  • Re: passing param to an applet
    ... > gosh, sorry, will try to "trim" my questions in the future... ... > I do know what u mean re viewing source code generated by jsp, ... > this is how applet appears when I view source code GENERATED by jsp: ... Do you now understand why the second applet call results in false here.. ...
    (comp.lang.java.help)