The moose likes Security and the fly likes java.security. AccessControl Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "java.security. AccessControl Exception" Watch "java.security. AccessControl Exception" New topic
Author

java.security. AccessControl Exception

Vaibhav Deshpande
Ranch Hand

Joined: Apr 26, 2002
Posts: 33
Hi all,
I am porting my application on net. I added rowset.jar file to lib folder
under web-inf/lib.
do i need to restart tomcat . when i run applcation it gives following error.
Security Violation, attempt to use Restricted Class: sun.jdbc.rowset.CachedRowSet
java.security.Access Control Exception: access denied (java.lang.RuntimePermission access Class In Package.sun.jdbc.rowset)

rgds,
vaibhav
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

This should probably be moved to the Java Security forum, but it looks like you have security enabled in your application and have not updated the rules to allow the added code to work correctly. My guess is that you'll have to edit your policy file to grant the new jar's codebase access to the sun.jdbc.rowset.CachedRowSet class and possibly others as well.
Dave


[ JavaRanch FAQ ][ Book Promotions ][ DbTamer ][ BumperStickers ][ JavaRanch Badges ]
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50680

Moved as David suggested.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
subject: java.security. AccessControl Exception
 
Threads others viewed
Not able to access BouncyCastle jar from Application jar
Not file permission on Deployment!!
Jboss-common-client.jar conflict
Where is javac
Unable to compile class for JSP
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com