Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.security > #28
| From | "carrilho.paulo" <carrilho.paulo@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Java Applet gets error ac |
| Message-ID | <1192392156.515619.94590@q3g2000prf.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.security |
| Date | 2011-04-27 16:07 +0000 |
| Organization | TDS.net |
To: comp.lang.java.security
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
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.security | Previous | Next | Find similar
Java Applet gets error ac "carrilho.paulo" <carrilho.paulo@THRWHITE.remove-dii-this> - 2011-04-27 16:07 +0000
csiph-web