You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Miklancic, Daniel J" <mi...@bp.com> on 2001/11/21 15:42:29 UTC

Loading sun.jdbc.odbc.JdbcOdbcDriver in Tomcat 4.0 with -security

I am running Tomcat with the -security option.

When trying to load the sun.jdbc.odbc.JdbcOdbcDriver I receive an access
control exception   

    java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc

and it tells me I am trying to load a Restriced Access class.  

I have added the following to my catalina.policy file to no avail:

permission java.lang.RuntimePermission
"accessClassInPackage.sun.jdbc.odbc.*";

Note: Adding java.security.AllPermission works, but would prefer to restrict
access.

Any ideas on how to resolve this?

Thanks,

Dan

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>