The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Re: SecurityException when accessing database

Posted by Brian Sanders on December 07, 2001 at 1:31 PM

Now when I try to access this page from another machine, the JApplet gets loaded, and it also accesses servlet, I mean there is no error in url path or anything like that but when the application tries to access database and retrieve some information, I get the following error " denied ( localhost:8080 connect, resolve) ".

Are you trying to access the database through your servlet or your applet? If the applet is trying to access the database directly, you're not going to have a lot of luck with the bridge driver. If the servlet is accessing the database, make sure you've edited the catalina.policy file to allow this access; the default policy file that comes with Tomcat is too restrictive.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us