Skip to Content.
Sympa Menu

freetds - Driver loads in Netscape but not IE

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Daniel J. Helm" <c-dan.helm AT wcom.com>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: Driver loads in Netscape but not IE
  • Date: Thu, 8 Mar 2001 23:15:25 -0500


I developed an applet the uses the freetds driver, but for some reason, it
is only
loads and works in Netscape. I use the following statements in my applet
code:

Class.forName("com.internetcds.jdbc.tds.Driver");
Connection
connection=DriverManager.getConnection("jdbc:freetds:sqlserver://166.37.179.223:1433/pubs",
"myuserid", "mypassword");

I get back "java.sql.SQLException: No suitable driver"

Detailed log output follows:

*****
about to forName.
DriverManager.initialize: jdbc.drivers = null
JDBC DriverManager initialized
about to getConnection.
DriverManager.getConnection("jdbc:freetds:sqlserver://166.36.179.223:1433/pubs")

getConnection: no suitable driver
java.sql.SQLException: No suitable driver
at java/sql/DriverManager.getConnection (DriverManager.java)
at getaccount2.action (getaccount2.java:310)
at java/awt/Component.handleEvent (Component.java)
at java/awt/Component.postEvent (Component.java)
at java/awt/Component.postEvent (Component.java)
at java/awt/Component.dispatchEventImpl (Component.java)
at java/awt/Component.dispatchEvent (Component.java)
at java/awt/EventDispatchThread.run (EventDispatchThread.java)
SQLException: SQLState(08001)
*****

-- and my HTML page is:

*****
<HTML>
<HEAD>
<TITLE>Registry GET-ACCOUNT Demo</TITLE>
</HEAD>
<BODY LINK="#0000ff" VLINK="#800080">
<P ALIGN="CENTER"><B><FONT SIZE=5>Registry GET-ACCOUNT Demo</B></FONT>
<BR>
<applet
name="Registry GET-ACCOUNT Demo"
archive="freetds_jdbc.jar"
code="getaccount2.class"
codebase="."
width="500"
height="500"
align="top"
alt="You do not have a java enabled browser"
>
</applet>
</BODY>
</HTML>
*****

Is there anything special that needs to be done for IE? I am using SQL
Server 7.0 on NT 4.0. Netscape 4.51 browser works but IE 5 does not.

Thanks, Dan




Archive powered by MHonArc 2.6.24.

Top of Page