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

Home -> Community -> Usenet -> c.d.o.tools -> Oracle JDBC Thin driver /JavaWebServer

Oracle JDBC Thin driver /JavaWebServer

From: Yong QIan <qiany_at_grc.nia.nih.gov>
Date: 2000/02/17
Message-ID: <88h8pn$d13$1@bob.news.rcn.net>#1/1

Hi,

I am using Sun's Java Webserver and the JDBC driver (class12.zip) downloaded from Oracle site. The Oracle version is 8.1.5. The code is:

      jdbc_class = "oracle.jdbc.driver.OracleDriver";
      jdbc_url    = "jdbc:oracle:thin:@lgmouse3:1521:msko8i";

      DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
      Class.forName(jdbc_class);
      con = DriverManager.getConnection(jdbc_url,"userid","passwd");


The DriverManager.getConnection will always prompt the error messages on the window that launches the javawebserver:

     javawebserver: java.security.AccessControlException: access denied
                            (java.net.SocketPermission lgmouse3 resolve)
     javawebserver: at java.lang.Throwable.fillInStackTrace(Native Method)
     javawebserver: at java.lang.Throwable.fillInStackTrace(Compiled Code)
...

What should I do?

Thanks.

Yong Received on Thu Feb 17 2000 - 00:00:00 CST

Original text of this message

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