【问题标题】:JBOSS Tools for Indigo can't make connection to SQLServer 2008 databaseIndigo 的 JBOSS 工具无法连接到 SQLServer 2008 数据库
【发布时间】:2012-08-08 17:22:35
【问题描述】:

我正在尝试在 Eclipse 中连接到 SQL Server 2008 数据库。

我已经用 Eclipse Juno 进行了尝试,只是使用了数据源浏览器,添加了一个新的连接,选择了驱动程序(从微软的网站下载),一切都很完美。

当我想使用 JBoss 工具(仅适用于 Eclipse Indigo)时,问题就来了。 我做同样的事情,我得到了这个:

com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host xxx.xxx.xxx.xxx, port 1433 has failed. Error: "Connect timed out. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:190)


at com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:241)
at com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2243)
at com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:491)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1309)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:991)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:827)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1012)
at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.createConnection(JDBCConnection.java:214)
at org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverConnectionBase.java:105)
at org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:54)
at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:73)
at org.eclipse.datatools.enablement.msft.internal.sqlserver.connection.JDBCSQLServerConnectionFactory.createConnection(JDBCSQLServerConnectionFactory.java:27)
at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83)
at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359)
at org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java:76)
at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

关于这可能是什么的任何想法? JBoss Tools 有什么 Juno 的 WTP 没有的(我正在考虑不使用 Eclipse Tools,我正在为 JBOSS 7.0 和 7.1 开发)。

编辑:我试过没有 JBOSS 工具的 Eclipse Indigo,它运行良好。所以问题应该出在 JBoss 工具上。有没有其他方法可以做到这一点?我只是想使用 Hivernate 将数据库反向工程为实体。

【问题讨论】:

    标签: sql-server eclipse database-connection jboss7.x jboss-tools


    【解决方案1】:

    好的,我想通了,我仍然会使用 JBoss Tools。 问题出在 Eclipse 中的代理定义中,现在已经解决了 :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多