I'm having problems using jdbc with jdk1.2 and jws. I get the following
exception if a client triggers a connection creation:

javawebserver: java.security.AccessControlException: access denied
(java.util.PropertyPermission file.encoding read)
javawebserver:  at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:195)
javawebserver:  at
java.security.AccessController.checkPermission(AccessController.java:403)
javawebserver:  at
java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
javawebserver:  at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1243)
javawebserver:  at java.lang.System.getProperty(System.java:530)
javawebserver:  at
sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:131)
javawebserver:  at
sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:167)
javawebserver:  at
java.sql.DriverManager.getConnection(DriverManager.java:457)
javawebserver:  at
java.sql.DriverManager.getConnection(DriverManager.java:159)
.... (My classes)

I know the security has changed a lot from 1.1 to 1.2 and I know I have to
add something to the jserv.policy file. What do I need to add to this file?
(I've tried a lot of different combinations with no luck).

dino

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to