I am attempting to run a https site using grails 2.4.4 with tomcat plugin :
build ':tomcat:7.0.55.2'
Upon first attempt to launch the app I hit the following issue: issue 648
java.lang.ClassNotFoundException: com.ibm.crypto.tools.KeyTool
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.
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.
Whilst this hack is ok for a development machine, I really need something more concrete for when the app is built via jenkins etc.
To recreate this locally, if I do a
grails clean-all
and try
grails run-app -https
I hit the issue for the very first time until I repeat the above steps again.
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.