JDBC error and MS SQL Server
Posted: Fri Feb 28, 2014 2:08 am
I think I set up JDBC for SQL Server correct and all the other requirements from this guide:
http://docs.broadleafcommerce.org/core/current/broadleaf-concepts/key-aspects-and-configuration/database-configuration/ms-sql-server
but when I run site's jetty-start, I get this error:
JdbcServicesImpl - HHH000342: Could not obtain connection to query metadata : Cannot load JDBC driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
here is my jett-env.xml (the same thing in 3 spots in two xml docs):
<New class="org.apache.commons.dbcp.BasicDataSource">
<Set name="driverClassName">com.microsoft.sqlserver.jdbc.SQLServerDriver</Set>
<Set name="url">jdbc:sqlserver://SKYSTRIDER-PC\SKYSTRIDER:1433;DatabaseName=heatclinic</Set>
<Set name="username">heat</Set>
<Set name="password">**********</Set>
</New>
http://docs.broadleafcommerce.org/core/current/broadleaf-concepts/key-aspects-and-configuration/database-configuration/ms-sql-server
but when I run site's jetty-start, I get this error:
JdbcServicesImpl - HHH000342: Could not obtain connection to query metadata : Cannot load JDBC driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
here is my jett-env.xml (the same thing in 3 spots in two xml docs):
<New class="org.apache.commons.dbcp.BasicDataSource">
<Set name="driverClassName">com.microsoft.sqlserver.jdbc.SQLServerDriver</Set>
<Set name="url">jdbc:sqlserver://SKYSTRIDER-PC\SKYSTRIDER:1433;DatabaseName=heatclinic</Set>
<Set name="username">heat</Set>
<Set name="password">**********</Set>
</New>