title: got java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty when using cas
body: <p>we get the following exception in our application under tomcat which is using cas.</p>
  
  <blockquote>
    <p>java.security.InvalidAlgorithmParameterException:
    the trustAnchors parameter must be
    non-empty</p>
  </blockquote>
  
  <p>when I google for it I found some guess and solutions but no one can help me .</p>
  
  <p>here is a part of our tomcat server.xml file:</p>
  
  <pre><code>&lt;Connector SSLEnabled="true" clientAuth="false" keystoreFile="conf/.keystore" maxThreads="150" port="8443" protocol="HTTP/1.1" scheme="https" secure="true" sslProtocol="TLS"/&gt;
  </code></pre>
  
  <p>we point to our generated keystore.</p>