title: Using hibernate and ms sql server driver
body: <p>Microsoft doesn't supply jdbc jar to central maven repository. It needs register driver manually.
  But I make something wrong. I saw same exception trace:</p>
  
  <pre><code>Initial SessionFactory creation failed.org.hibernate.service.classloading.spi.ClassLoadingException: Specified JDBC Driver "com.microsoft.sqlserver.jdbc.SQLServerDriver" class not found
  Exception in thread "main" java.lang.ExceptionInInitializerError
      at logic.HibernateUtil.buildSessionFactory(HibernateUtil.java:22)
      at logic.HibernateUtil.&lt;clinit&gt;(HibernateUtil.java:8)
      at logic.Main.main(Main.java:12)
  Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: Specified JDBC Driver "com.microsoft.sqlserver.jdbc.SQLServerDriver" class not found
      at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:107)
      at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
      at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
      at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
      at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)
      at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)
      at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
      at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
      at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
      at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2277)
      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2273)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1742)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1782)
      at logic.HibernateUtil.buildSessionFactory(HibernateUtil.java:17)
      ... 2 more
  Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: Unable to load class ["com.microsoft.sqlserver.jdbc.SQLServerDriver"]
      at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:141)
      at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:104)
      ... 16 more
  Caused by: java.lang.ClassNotFoundException: Could not load requested class : "com.microsoft.sqlserver.jdbc.SQLServerDriver"
      at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$1.findClass(ClassLoaderServiceImpl.java:99)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:138)
      ... 17 more
  </code></pre>
  
  <p>I use STS(eclipse product)
  in maven dependencies :
  <img src="https://i.stack.imgur.com/kZtU2.jpg" alt="enter image description here"></p>
  
  <p>What do I make wrong?</p>