title: Jetty: Error initializing keystore
body: <p>For starters, I have already refereed these questions on stackoverflow and they didn't solve my problem, therefore creating a new one:</p>
  
  <p><a href="https://stackoverflow.com/questions/1052700/java-io-ioexception-invalid-keystore-format">java.io.IOException: Invalid Keystore format</a></p>
  
  <p><a href="https://stackoverflow.com/questions/33196674/tomcat-7-ssl-invalid-keystore-format">tomcat 7 ssl invalid keystore format</a></p>
  
  <p><strong>Problem:</strong></p>
  
  <p>While integrating SAML with my Jetty web app(by following the tutorial at: <a href="https://developer.okta.com/blog/2017/03/16/spring-boot-saml" rel="nofollow noreferrer">https://developer.okta.com/blog/2017/03/16/spring-boot-saml</a>), I get following error:</p>
  
  <pre><code>org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.RuntimeException: Error initializing keystore
  </code></pre>
  
  <p>I have tried creating the keystore from multiple versions of JDK but for all files, I get the same error.</p>
  
  <p>Also I am not using maven.</p>
  
  <p>EDIT:</p>
  
  <p>Exception trace:</p>
  
  <pre><code>unavailable Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.RuntimeException: Error initializing keystore
  FAILED o.e.j.s.ServletContextHandler@550dbc7a{/api,null,STARTING}: javax.servlet.ServletException: org.springframework.web.servlet.DispatcherServlet-7b2bbc3@bef2d67e==org.springframework.web.servlet.DispatcherServlet,-1,false org.springframework.web.servlet.DispatcherServlet-7b2bbc3@bef2d67e==org.springframework.web.servlet.DispatcherServlet,-1,false
  FAILED  
  Error Details:
       org.springframework.web.servlet.DispatcherServlet-7b2bbc3@bef2d67e==org.springframework.web.servlet.DispatcherServlet,-1,false
  Server exiting.
  </code></pre>