Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line JVM argument not working #303

Open
AlanGRutter opened this issue Jul 3, 2020 · 0 comments
Open

Command line JVM argument not working #303

AlanGRutter opened this issue Jul 3, 2020 · 0 comments

Comments

@AlanGRutter
Copy link

  • 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

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

No branches or pull requests

1 participant