Hi,
I'd appreciate if someone could mail me the solution to the following
problem :
I've installed: InstantDB version 3.13 on Sparc Solaris running
Jdk1.2.
I created the "sample" database.
0) I move the following files into ${JAVA_HOME}/jre/lib/ext ,
needed amongst other things
one need not have these classes on the
"downloaded classes" CLASSPATH.
idb.jar
RmiJdbc.jar
Reason: Otherwise I
run into the documented security problems with JDK1.2.
** It would be nice if someone could say what
modifications are needed in the personal
** ${HOME}/.java.policy file.
1) I start the RmiJdbc.RJJdbcServer
I am able to view the contents of the sample
database with "java JDBCmain"
using the URL: jdbc:idb:/tmp/Idb/sample.prp
From the screen echo I know its using : jdbc.idbDriver.
PROBLEM:
To confirm that I am using the RmiJdbc drivers, as
opposed to the "sun.jdbc.odbc.JdbcOdbcDriver" which is
also loaded in "JDBCmain" (JDBCAppl), I attempt
the following :
Use of :
1) TestClient code which arrives with RmiJdbc compiled in /somepath/
setenv CLASSPATH ${CLASSPATH}:/somepath
java TestClient
TestClient:jdbc:rmi://hostname.domainname/jdbc:idb=sample.prp
java.rmi.UnexpectedException: Unexpected exception; nested exception
is:
java.security.AccessControlException:
access denied (java.util.PropertyPermission * read,write)
java.security.AccessControlException: access denied (java.util.PropertyPermission
* read,write)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java,
Compiled Code)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java,
Compiled Code)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java,
Compiled Code)
at RmiJdbc.RJDriverServer_Stub.connect(RJDriverServer_Stub.java,
Compiled Code)
at RmiJdbc.RJConnection.<init>(RJConnection.java,
Compiled Code)
at RmiJdbc.RJDriver.connect(RJDriver.java,
Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java,
Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java,
Compiled Code)
at TestClient.main(TestClient.java,
Compiled Code)
java.sql.SQLException: Unexpected exception; nested exception is:
java.security.AccessControlException:
access denied (java.util.PropertyPermission * read,write)
at RmiJdbc.RJDriver.connect(RJDriver.java,
Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java,
Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java,
Compiled Code)
at TestClient.main(TestClient.java,
Compiled Code)
2) RJAdmin code that is in RmiJdbc.jar file, and I compiled
in /somepath/
setenv CLASSPATH ${CLASSPATH}:/somepath
cd /tmp/Idb
java RJAdmin PING jdbc:rmi:jdbc:idb=sample.prp
jdbc:rmi:jdbc:idb=sample.prp] server
is responding, but database connection failed for [,]
As you can see in both instances I fail to connect to the Database.
In (1) it looks like some security related issue, which
I thought with moving the .jar files into jre/lib/ext/
would have cured, alas not.
I've followed the instructions in "Network Support" documentation
of InstantDB :
http://instantdb.enhydra.org/software/documentation/network.html
So I would really appreciate some help on resolving this. Please
do email me the response, as I do not subscribe to
this channel due to lack of time in reading all the messages
that I have from other channels.
Tarang
--
Tarang Kumar Patel. WWW home:http://ic-www.arc.nasa.gov/ic/
NASA Ames Research Center, MS 269-2, Moffett Field, CA 94035-1000
Email: mombasa@ptolemy.arc.nasa.gov, Tel:(650) 604-4721 fax: (650) 604 3594
Stated views are my own IDEA, as I'm another I.D.E.A man "I Didn't Explain All"
|