Hi,
I'm trying out tapestry 5 web apps, using the tapestry framework itself, but using SQL Server instead of the built in Hibernate. Now, the app itself is building just fine, but I get the following error and can't retrieve data from my database:
[ERROR] util.JDBCExceptionReporter The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused: connect. 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.".
org.hibernate.exception.JDBCConnectionException: Cannot open connection
TCP/IP connections are allowed, I've double checked firewall settings, and enabled every possible option for TCP/IP, and still something is blocking the connection. Even turned off all firewall settings and services, and still no change.
This is the hibernate.cfg.xml:
Code:
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
<property name="hibernate.connection.url">jdbc:sqlserver://localhost;databaseName=testdb;integratedSecurity=true</property>
<property name="hibernate.dialect">org.hibernate.dialect.SQLServer2008Dialect</property>
<property name="hibernate.connection.username">dell-pc\Zoran Mitreski</property>
<property name="hibernate.connection.password"></property>
<property name="hbm2ddl.auto">update</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.format_sql">true</property>
<mapping resource="mappings/hibernate.hbm.xml" />
</session-factory>
</hibernate-configuration>
Anyone have an idea what might be the reason?