------=_NextPart_000_0004_01BE2DF0.2BAB2530
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello to all,
I have great troubles with running an applet that uses Database files.
I used the java.sql.Connection and Statements to access my DB(an =
MSAccess one).When i ran the applet with the Sun's & Jbuilder's =
appletViewer,there was absolutely no problems but as soon as i tried to =
deploy my applet and browse it with IE4.0 , the java console warned me =
that:
com.ms.security.SecurityExceptionEx[sun/jdbc/odbc/JdbcOdbcDriver.trusted]=
: cannot access file JdbcOdbcSecurityCheck
at com/ms/security/permissions/FileIOPermission.check =
(FileIOPermission.java)
at com/ms/security/PolicyEngine.deepCheck (PolicyEngine.java)
at com/ms/security/PolicyEngine.checkPermission (PolicyEngine.java)
at com/ms/security/StandardSecurityManager.chk =
(StandardSecurityManager.java)
at com/ms/security/StandardSecurityManager.checkWrite =
(StandardSecurityManager.java)
at sun/jdbc/odbc/JdbcOdbcDriver.trusted (JdbcOdbcDriver.java:502)
at sun/jdbc/odbc/JdbcOdbcDriver.acceptsURL (JdbcOdbcDriver.java:201)
at sun/jdbc/odbc/JdbcOdbcDriver.connect (JdbcOdbcDriver.java:143)
at java/sql/DriverManager.getConnection (DriverManager.java)
at java/sql/DriverManager.getConnection (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit (MoteurTempo2.java:128)
at elisa/temporaire/MoteurTempo2.<init> (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init> (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance =
(BrowserAppletFrame.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
com.ms.security.SecurityExceptionEx[sun/jdbc/odbc/JdbcOdbc.<init>]
at com/ms/security/PolicyEngine.shallowCheck (PolicyEngine.java)
at com/ms/security/PolicyEngine.checkCallersPermission =
(PolicyEngine.java)
at com/ms/security/StandardSecurityManager.chk =
(StandardSecurityManager.java)
at com/ms/security/StandardSecurityManager.checkLink =
(StandardSecurityManager.java)
at java/lang/Runtime.loadLibrary (Runtime.java)
at java/lang/System.loadLibrary (System.java)
at sun/jdbc/odbc/JdbcOdbc.<init> (JdbcOdbc.java:63)
at sun/jdbc/odbc/JdbcOdbcDriver.initialize (JdbcOdbcDriver.java:321)
at sun/jdbc/odbc/JdbcOdbcDriver.connect (JdbcOdbcDriver.java:159)
at java/sql/DriverManager.getConnection (DriverManager.java)
at java/sql/DriverManager.getConnection (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit (MoteurTempo2.java:128)
at elisa/temporaire/MoteurTempo2.<init> (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init> (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance =
(BrowserAppletFrame.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
com.ms.security.SecurityExceptionEx[sun/jdbc/odbc/JdbcOdbcDriver.trusted]=
: cannot access file JdbcOdbcSecurityCheck
at com/ms/security/permissions/FileIOPermission.check =
(FileIOPermission.java)
at com/ms/security/PolicyEngine.deepCheck (PolicyEngine.java)
at com/ms/security/PolicyEngine.checkPermission (PolicyEngine.java)
at com/ms/security/StandardSecurityManager.chk =
(StandardSecurityManager.java)
at com/ms/security/StandardSecurityManager.checkWrite =
(StandardSecurityManager.java)
at sun/jdbc/odbc/JdbcOdbcDriver.trusted (JdbcOdbcDriver.java:502)
at sun/jdbc/odbc/JdbcOdbcDriver.acceptsURL (JdbcOdbcDriver.java:201)
at sun/jdbc/odbc/JdbcOdbcDriver.connect (JdbcOdbcDriver.java:143)
at java/sql/DriverManager.getConnection (DriverManager.java)
at java/sql/DriverManager.getConnection (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit (MoteurTempo2.java:128)
at elisa/temporaire/MoteurTempo2.<init> (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init> (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance =
(BrowserAppletFrame.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
com.ms.security.SecurityExceptionEx[sun/jdbc/odbc/JdbcOdbc.<init>]
at com/ms/security/PolicyEngine.shallowCheck (PolicyEngine.java)
at com/ms/security/PolicyEngine.checkCallersPermission =
(PolicyEngine.java)
at com/ms/security/StandardSecurityManager.chk =
(StandardSecurityManager.java)
at com/ms/security/StandardSecurityManager.checkLink =
(StandardSecurityManager.java)
at java/lang/Runtime.loadLibrary (Runtime.java)
at java/lang/System.loadLibrary (System.java)
at sun/jdbc/odbc/JdbcOdbc.<init> (JdbcOdbc.java:63)
at sun/jdbc/odbc/JdbcOdbcDriver.initialize (JdbcOdbcDriver.java:321)
at sun/jdbc/odbc/JdbcOdbcDriver.connect (JdbcOdbcDriver.java:159)
at java/sql/DriverManager.getConnection (DriverManager.java)
at java/sql/DriverManager.getConnection (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit (MoteurTempo2.java:128)
at elisa/temporaire/MoteurTempo2.<init> (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init> (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance =
(BrowserAppletFrame.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
java.sql.SQLException: No suitable driver
at java/sql/DriverManager.getConnection (DriverManager.java)
at java/sql/DriverManager.getConnection (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit (MoteurTempo2.java:128)
at elisa/temporaire/MoteurTempo2.<init> (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init> (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance =
(BrowserAppletFrame.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
I don't know what kind of #M@!#Soft classes is playing with my nerves =
but i tried all=20
the ideas i had :
to deploy the DB in a Jar file with the applet.
to change the IE4's parameters
to import the com.ms.security classes to grant a FileIO authorisation =
and CLIENTSTORE one too.But i even didn't manage to change the error =
message.
Please help.I said all my friends and people i work with that nothing =
was imposssible even not difficult using java , i know i was right.Just =
let me show 'em that in the worst cases someone can help you quickly.
Thanks in advance.
(Don't say me to change my tools,i'm compulsory to use'em.....)
------=_NextPart_000_0004_01BE2DF0.2BAB2530
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">