Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> JDBC thin Driver Connect fails in Netscape

JDBC thin Driver Connect fails in Netscape

From: Stephan Andreas <Stephan_at_pegas.com>
Date: Fri, 19 Jun 1998 14:57:14 +0200
Message-ID: <DBFA326EF746D111AB660000C0CDA2BF28105D@dc1.pegas.com>


I have written a JAVA Applet and I want to connect to a Oracle database, which is not on my computer.
If I start my applet in an appletviewer, everything works ok. But if I start my applet in Netscape Navigator 4.05 I receive the following exception in the java console

netscape.security.AppletSecurityException: security.Couldn't connect to 'pegas5' with origin from 'local-classpath-classes'.

So it looks like, that I have to configure my Netscape Navigator Security options, that it doesn't throw this exception. But where to do ?

For more detail, this is my JAVA-code 

------------------------------------------------------------------------
------------------------------------------------------------------------


try
{
	szLogIn=p1.getUserName();
	szPassword=p1.getPassword();
	Class.forName("oracle.jdbc.driver.OracleDriver");
	DriverManager.registerDriver(new

oracle.jdbc.driver.OracleDriver());

        co =
DriverManager.getConnection("jdbc:oracle:thin:@pegas5:1526:ORA73",szLogI n,szPassword);
}

catch(SQLException ex)
{

        labelInfo.setText("Connected !");

}

catch(java.lang.ClassNotFoundException ex) {

            labelInfo.setText("Oracle JDBC-ODBC Driver not found !"); }




Thanx
Andi Received on Fri Jun 19 1998 - 07:57:14 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US