0

我试图连接到Eclipse中的SQL Server 2008数据库。用于Indigo的JBOSS工具无法连接到SQLServer 2008数据库

我已经用Eclipse Juno试过了,只是简单地使用了数据源资源管理器,添加了一个新的连接,选择了驱动程序(从微软网站下载),一切都完美了。

问题出现在我想使用JBoss Tools(只存在于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将数据库逆向工程化为实体。

回答

0

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