title: HTTP ERROR: 503 Reason: Service Unavailable powered by jetty
body: <p>I am trying to develop a web application using java. I am following broadleaf commerce's tutorials 
  [<a href="http://www.broadleafcommerce.com/docs/core/current/getting-started]" rel="nofollow">http://www.broadleafcommerce.com/docs/core/current/getting-started]</a>. </p>
  
  <p>At the beginning I am able to run my demo site. But after following the documentation for switching to MySql[<a href="http://www.broadleafcommerce.com/docs/core/current/tutorials/getting-started-tutorials/switch-to-mysql-tutorial],I" rel="nofollow">http://www.broadleafcommerce.com/docs/core/current/tutorials/getting-started-tutorials/switch-to-mysql-tutorial],I</a> was not able to run the site.</p>
  
  <p>I got the following error in the browser</p>
  
  <p><strong>HTTP ERROR: 503</strong></p>
  
  <p>Problem accessing /. Reason:</p>
  
  <pre><code>Service Unavailable
  </code></pre>
  
  <p>Powered by Jetty://</p>
  
  <p><strong>Progress at Eclipse console:</strong></p>
  
  <pre><code>[artifact:mvn] [ERROR] 14:59:03 ContextLoader - Context initialization failed
  [artifact:mvn] org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection
  [artifact:mvn] 2014-11-18 14:59:03.673:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080
  [artifact:mvn] 2014-11-18 14:59:03.939:INFO:oejus.SslContextFactory:Enabled Protocols [SSLv2Hello, SSLv3, TLSv1] of [SSLv2Hello, SSLv3, TLSv1]
  
  ....
  ...
  
  [artifact:mvn] [INFO] Started Jetty Server
  [artifact:mvn] 2014-11-18 14:59:03.950:INFO:oejs.AbstractConnector:Started SslSelectChannelConnector@0.0.0.0:8443
  [artifact:mvn] [ WARN] 14:59:08 SqlExceptionHelper - SQL Error: 0, SQLState: null
  [artifact:mvn] [ERROR] 14:59:08 SqlExceptionHelper - Cannot create PoolableConnectionFactory (Communications link failure
  [artifact:mvn] The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)
  [artifact:mvn] [ERROR] 14:59:08 JobRunShell - Job DEFAULT.rebuildIndexJobDetail threw an unhandled Exception: 
  [artifact:mvn] org.springframework.scheduling.quartz.JobMethodInvocationFailedException:       Invocation of method 'rebuildIndex' on target class [class   org.broadleafcommerce.core.search.service.solr.SolrSearchServiceImpl] failed; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection
  </code></pre>
  
  <p><strong>web.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
     &lt;web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
       http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" id="WebApp_ID"&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;heatclinic&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;
              classpath:/applicationContext-servlet-cms-contentClient.xml
              /WEB-INF/applicationContext-servlet.xml
          &lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
   &lt;/servlet&gt;
  
   &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;heatclinic&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
   &lt;/servlet-mapping&gt;
   &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;RESTApiServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/api/v1/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
   &lt;/web-app&gt;
  </code></pre>