title: grails 2.4 java 8 and tomcat 7.0.55.2
body: <p>I am attempting to run a https site using grails 2.4.4 with tomcat plugin :</p>
  
  <pre><code>build ':tomcat:7.0.55.2'
  </code></pre>
  
  <p>Upon first attempt to launch the app I hit the following issue: <a href="https://github.com/grails/grails-core/issues/648" rel="noreferrer">issue 648</a></p>
  
  <pre><code>java.lang.ClassNotFoundException: com.ibm.crypto.tools.KeyTool
  </code></pre>
  
  <p>When I change the tomcat dependency for tomcat to tomcat 8.0.22 and run app again it succeeds and goes beyond i.e. createSSLCertificate(File keystoreDir)  works and although the app does not start up. If I now change it back to tomcat 7.0.55.2 the keys have been generated and the app works.</p>
  
  <p>I guess the question is I was unsure if that fix that Graeme has pointed to only exists in tomcat 8 or is there a later version of tomcat 7 I could use that has a fix for this problem.</p>
  
  <p>Whilst this hack is ok for a development machine, I really need something more concrete for when the app is built via jenkins etc.</p>
  
  <p>To recreate this locally, if I do a </p>
  
  <pre><code>grails clean-all 
  </code></pre>
  
  <p>and try </p>
  
  <pre><code>grails run-app -https 
  </code></pre>
  
  <p>I hit the issue for the very first time until I repeat the above steps again.</p>
  
  <p>Thinking about it Jenkins producing a WAR file may actually be fine, although from a development point of view it still be nice to find a nicer way of making this all work.</p>