Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Getting groovy.lang.MissingMethodException after upgrading to tomcat plugin 2.7.0, was using 2.5 before #210

Open
ethan166 opened this issue Jan 2, 2023 · 1 comment
Labels

Comments

@ethan166
Copy link

ethan166 commented Jan 2, 2023

Java version is 17, tomcatVersion = '7.0.59'

Task :tomcatRun FAILED

FAILURE: Build failed with an exception.
.
.
.

Caused by: groovy.lang.MissingMethodException: No signature of method: static sun.security.tools.keytool.Main.main() is applicable for argument types: ([Ljava.lang.String;) values: [[-genkey, -alias, localhost, -dname, CN=localhost,OU=Test,O=Test,C=US, ...]]
Possible solutions: wait(), wait(long), find(), any(), wait(long, int), each(groovy.lang.Closure)
at com.bmuschko.gradle.tomcat.internal.ssl.SSLKeyStoreImpl.invokeKeyTool(SSLKeyStoreImpl.groovy:81)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at com.bmuschko.gradle.tomcat.internal.ssl.SSLKeyStoreImpl.createSSLCertificate(SSLKeyStoreImpl.groovy:52)
at com.bmuschko.gradle.tomcat.internal.ssl.SSLKeyStore$createSSLCertificate.call(Unknown Source)
at com.bmuschko.gradle.tomcat.tasks.AbstractTomcatRun.startTomcat(AbstractTomcatRun.groovy:347)
... 138 more

@bmuschko
Copy link
Owner

I guess the static method sun.security.tools.keytool.Main.main() doesn't exist anymore in JDK 17. I don't think this is happening because you upgraded the plugin version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants