vscode-tomcat icon indicating copy to clipboard operation
vscode-tomcat copied to clipboard

Command line JVM argument not working

Open AlanGRutter opened this issue 4 years ago • 0 comments

  • VSCode Version: 1.46.1
  • OS Version: Linux Mint (Linux x64 4.15.0-109-generic)
  • Tomcat Extension Version: 0.11.2

Steps to Reproduce:

1.Go to Customize JVM options in Tomcat extension 2.Add -Djdk.internal.httpclient.disableHostnameVerification=true 3.Start WAR package (that contains an invalid cert)

The Output shows an entry

INFO: Command line argument: -Djdk.internal.httpclient.disableHostnameVerification=true

however I still get a SSLHandshakeException.

Running a separate test project under debugger produces same exception unless I put the following line into the Launch.json configuration.

"vmArgs": [ "-Djdk.internal.httpclient.disableHostnameVerification=true" ]

When re-running the test, the exception is gone.

Hence the command-line argument is not being applied to the Tomcat instance.

Regards Alan

AlanGRutter avatar Jul 03 '20 00:07 AlanGRutter