adashen / vscode-tomcat

Other
65 stars 35 forks source link

Command line JVM argument not working #303

Open AlanGRutter opened 4 years ago

AlanGRutter commented 4 years ago

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