Dion
Sorry for the delay in replying. I've never tried IDB with the JSDKEE, but
it might be just a simple security problem. Have you tried installing IDB as
an extension (i.e. copy the jars to jre/lib/ext)?
Regards
Pete
--
Peter Hearty peter.hearty@lutris.com
Lutris Technologies (UK) http://www.lutris.com
----- Original Message -----
From: "Dion Truter" <dion.truter@coreprocess.com>
To: <instantDB@enhydra.org>
Sent: Wednesday, October 18, 2000 4:31 PM
Subject: InstantDB: AccessControlException on JSDKEE1.2.1
> Hi everyone
>
> I can run InstantDB from my straight Java app and it works great!
> Now I try to run it on JSDKEE1.2.1 and I get an AccessControlException.
> From other threads I see people saying it should work *ponder*
> Here's the deal ...
>
> Setup
> ====
>
> I changed userconfig.bat like this:
>
> set
>
J2EE_CLASSPATH=D:\j2sdkee1.2.1\lib\system\jdbc2_0-stdext.jar;D:\j2sdkee1.2.1
>
\lib\system\jta-spec1_0_1.jar;D:\j2sdkee1.2.1\lib\system\idb.jar;D:\j2sdkee1
> .2.1\lib\system\idbexmpl.jar
>
> I changed default.properties like this:
>
> jdbc.drivers=org.enhydra.instantdb.jdbc.idbDriver
> jdbc.datasources=jdbc/local|jdbc:idb=/idb/Customer/Customer.prp
>
> Start J2EE
> =======
>
> Event.log:
>
> VM is using the classpath:
>
d:\j2sdkee1.2.1\lib\classes;d:\j2sdkee1.2.1\lib\locale;d:\j2sdkee1.2.1\lib\j
>
2ee.jar;d:\jdk1.3\jre\lib\rt.jar;d:\jdk1.3\lib\tools.jar;.;D:\j2sdkee1.2.1\l
>
ib\system\jdbc2_0-stdext.jar;D:\j2sdkee1.2.1\lib\system\jta-spec1_0_1.jar;D:
>
\j2sdkee1.2.1\lib\system\idb.jar;D:\j2sdkee1.2.1\lib\system\idbexmpl.jar;d:\
>
j2sdkee1.2.1\lib\cloudscape\RmiJdbc.jar;d:\j2sdkee1.2.1\lib\cloudscape\clien
> t.jar;d:\j2sdkee1.2.1\lib\jhall.jar .
>
> System.err
>
> Binding DataSource, name = jdbc/local, url =
> jdbc:idb=/idb/Customer/Customer.prp
>
> Run Test
> ======
>
> System.out
>
> Enhydra InstantDB - Version 3.21
> The Initial Developer of the Original Code is Lutris Technologies Inc.
> Portions created by Lutris are Copyright (C) 1997-2000 Lutris
Technologies,
> Inc.
> All Rights Reserved.
>
> Error.log
>
> Cannot find principal mapping information for data source with JNDI name
> jdbc/local
> javax.ejb.EJBException: java.security.AccessControlException: access
denied
> (java.util.PropertyPermission * read,write)
>
> My connection factory does this:
>
> Context ic = new InitialContext ();
> DataSource ds = (DataSource) ic.lookup (dataSourceName);
> return ds.getConnection ();
>
> Help! Any advice?
>
> Thanks in advance
> Dion
>
>
> --------------------------------------------------------------------------
---
> To unsubscribe from this mailing list, send email to majordomo@enhydra.org
> with the text "unsubscribe instantdb" in the body of the email.
> If you have other questions regarding this mailing list, send email to
> the list admin at owner-instantdb@enhydra.org.
>
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|