由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - JDBC & Firewall
相关主题
Re: SQL Server 2000 Driver for JDBC - Erquestion about install jdbc
a question regarding JDBC driver?请问个从windows通过jdbc连server的问题
java dumb question[合集] TexPen question
求助,哪儿能找到一些实用的面试习题?JDBC or SQL-C?
Re: How to compile a Java program with import my own package in UNIX真诚求助 (JAVA校友录)
Re: Desperately need help on DB2 connection through jdbc in jsp page MS SQL Server JDBC Driver Problem
入门Java CLASSPATH问题:请教高手一个JDBC的问题!
help for JDBC driver我只能抗议OracleJDBC了!: 请教一个关于JDBC的问题,实在太烦了!
相关话题的讨论汇总
话题: jdbc话题: driver话题: firewall话题: classname话题: sql
进入Java版参与讨论
1 (共1页)
b*********d
发帖数: 20
1
I used to use JDBC to connect to SQL server. It worked well. Recently, I
reinstalled my computer(including Jdk1.3 Microsoft SQL 2000 Jdbc driver), and
firewall is stalled into the server with SQL database.
When I run the Java program, it can not work. The error messages are as
follows:
I wonder if the server is configured with firewall, can I still use the JDBC
to access the server?
Thanks a lot!
DriverManager.initialize: jdbc.drivers = null
JDBC DriverManager initialized
registerDriver:
driver[
f********h
发帖数: 149
2
it seems the jvm can't find the jdbc driver. make sure it is in your classpath.

【在 b*********d 的大作中提到】
: I used to use JDBC to connect to SQL server. It worked well. Recently, I
: reinstalled my computer(including Jdk1.3 Microsoft SQL 2000 Jdbc driver), and
: firewall is stalled into the server with SQL database.
: When I run the Java program, it can not work. The error messages are as
: follows:
: I wonder if the server is configured with firewall, can I still use the JDBC
: to access the server?
: Thanks a lot!
: DriverManager.initialize: jdbc.drivers = null
: JDBC DriverManager initialized

m******t
发帖数: 2416
3

classpath.
I think his jdbc driver is fine, as you can see in the log message it's
registered and instantiated. The NoClassDefError was caused by something else
(which is weird indeed).
To bigbaldhead, looks like you have to punch a hole in your firewall for port
1433. You might want to reconsider your architecture, though. It's not a
good idea to expose your db server.
JDBC
driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jd
[...]

【在 f********h 的大作中提到】
: it seems the jvm can't find the jdbc driver. make sure it is in your classpath.
w********c
发帖数: 2632
4
look for msutil.jar and make sure it's in ur classpath or ext dir

and
driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jd
DriverManager.getConnection("jdbc:microsoft:sqlserver://128.196.***.***:1433;d
driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jd

【在 b*********d 的大作中提到】
: I used to use JDBC to connect to SQL server. It worked well. Recently, I
: reinstalled my computer(including Jdk1.3 Microsoft SQL 2000 Jdbc driver), and
: firewall is stalled into the server with SQL database.
: When I run the Java program, it can not work. The error messages are as
: follows:
: I wonder if the server is configured with firewall, can I still use the JDBC
: to access the server?
: Thanks a lot!
: DriverManager.initialize: jdbc.drivers = null
: JDBC DriverManager initialized

b*********d
发帖数: 20
5
I check it again and find msutil.jar msbase.jar mssqlserver.jar are all in the
classpath.

JDBC
driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jd
DriverManager.getConnection("jdbc:microsoft:sqlserver://128.196.***.***:1433;d
driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jd
com.microsoft.jdbc.base.BaseDriver.setupExceptionHandling(Unknown

【在 w********c 的大作中提到】
: look for msutil.jar and make sure it's in ur classpath or ext dir
:
: and
: driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jd
: DriverManager.getConnection("jdbc:microsoft:sqlserver://128.196.***.***:1433;d
: driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jd

b*********d
发帖数: 20
6
I reinstall SQL Jdbc driver and set the classpath again. Now that part works,
but I have the new problem.
Thank everyone.

the
driver),
driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jd
DriverManager.getConnection("jdbc:microsoft:sqlserver://128.196.***.***:1433;d
driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jd

【在 b*********d 的大作中提到】
: I check it again and find msutil.jar msbase.jar mssqlserver.jar are all in the
: classpath.
:
: JDBC
: driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jd
: DriverManager.getConnection("jdbc:microsoft:sqlserver://128.196.***.***:1433;d
: driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jd
: com.microsoft.jdbc.base.BaseDriver.setupExceptionHandling(Unknown

1 (共1页)
进入Java版参与讨论
相关主题
我只能抗议OracleJDBC了!: 请教一个关于JDBC的问题,实在太烦了!Re: How to compile a Java program with import my own package in UNIX
HELP! SQL Server vs JDBC questionRe: Desperately need help on DB2 connection through jdbc in jsp page
JDBC如何获取新加入的记录的索引入门Java CLASSPATH问题:
改写(migrate) stored proc 问题help for JDBC driver
Re: SQL Server 2000 Driver for JDBC - Erquestion about install jdbc
a question regarding JDBC driver?请问个从windows通过jdbc连server的问题
java dumb question[合集] TexPen question
求助,哪儿能找到一些实用的面试习题?JDBC or SQL-C?
相关话题的讨论汇总
话题: jdbc话题: driver话题: firewall话题: classname话题: sql