Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RmiJDBC, java.security.AccessControlException

4 views
Skip to first unread message

Bruce Lyon

unread,
Jun 2, 1999, 3:00:00 AM6/2/99
to
Hi,

I'm trying to get RmiJDBC working on:
- NT4
- Using the ODBC/JDBC bridge to connect to an Access db
- jdk1.2.1
- CLASSPATH=D:\bl\java\rjdemo\rmi\RmiJdbc.jar;
- java.policy:
// Standard extensions get all permissions by default
grant {
// Allow everything for now
permission java.security.AllPermission;
};
- java.security:
<snip>
policy.url.1=file:${java.home}/lib/security/java.policy
<snip>


The following happens:

D:\JDK12~1.1\LIB>java RmiJdbc.RJJdbcServer
sun.jdbc.odbc.JdbcOdbcDriver
sun.jdbc.odbc.JdbcOdbcDriver registered in DriverManager
Binding RmiJdbcServer...
java.security.AccessControlException: access denied
(java.util.PropertyPermission java.rmi.server.hostname read)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at
java.security.AccessController.checkPermission(AccessController.java:403)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1222)
at java.lang.System.getProperty(System.java:507)
at RmiJdbc.RJJdbcServer.register(RJJdbcServer.java:102)
at RmiJdbc.RJJdbcServer.initServer(Compiled Code)
at RmiJdbc.RJJdbcServer.main(RJJdbcServer.java:145)

Is it possible to use this technology in applets?

I'd much appreciate any suggestions / help you can give,

Thanks in advance,

Bruce


Kerry Beier

unread,
Jun 3, 1999, 3:00:00 AM6/3/99
to

Hi Bruce,

I think that you need to download the latest version of the
RmiJdbc.jar file...I am having the same problem as you but I just went
back to the RmiJdbc site and noticed this little piece of info in
their RmiJdbc history list:

01 Jun. 99 -- Solved a problem on NT with access rights on the
java.rmi.server.hostname property (access denied
errors are
less frequent now).

I have downloaded the new jar file and am about to see if this
helps...

Regards,
Kerry


0 new messages