The Artima Developer Community
Sponsored Link

Java Answers Forum
hi accesing database tthrough applet

2 replies on 1 page. Most recent reply: Aug 26, 2003 3:03 AM by swan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
angeli

Posts: 1
Nickname: anjupeter
Registered: Aug, 2003

hi accesing database tthrough applet Posted: Aug 17, 2003 3:36 AM
Reply to this message Reply
Advertisement
i am accessing database through applet no its not servlet its applet and i am gettign security errors, i chaged the policy file but nohting seems to work please help me out. This are the error when i run the html which has the applet.

java.security.AccessControlException: access denied
accessClassInPackage.sun.jdbc.odbc )
at java.security.AccessControlContext.checkP
at java.security.AccessController.checkPermi
at java.lang.SecurityManager.checkPermission
at java.lang.SecurityManager.checkPackageAcc
at sun.applet.AppletSecurity.checkPackageAcc

at sun.applet.AppletClassLoader.loadClass(Ap
at java.lang.ClassLoader.loadClass(ClassLoad
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Compiled Code)
at app.init(app.java:23)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)


Greg Lehane

Posts: 33
Nickname: glehane
Registered: Jun, 2003

Re: hi accesing database tthrough applet Posted: Aug 17, 2003 11:24 AM
Reply to this message Reply
One way to get around the sandbox restrictions of your applet is to sign your jar files. The process is described here:

http://java.sun.com/docs/books/tutorial/jar/sign/signing.html

=- Greg

swan

Posts: 7
Nickname: swan
Registered: Aug, 2003

Re: hi accesing database tthrough applet Posted: Aug 26, 2003 3:03 AM
Reply to this message Reply
For security reasons, don't access the database using applets. Call a servlet instead, from the applet. The servlet shall make a call to the database.

Flat View: This topic has 2 replies on 1 page
Topic: Apache Tomcat Previous Topic   Next Topic Topic: File size

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use