0

I have added community server connector as Tomcat in vscode. and now my application needs vm_args to run. i have tried adding arguments using setenv.sh file in bin folder.

Tried below approach and it did not work.

export CATALINA_OPTS="$CATALINA_OPTS \
-Druntime.context.environmentType=dev \

export JAVA_OPTS="$JAVA_OPTS \
-Druntime.context.environmentType=dev \

but when i run catalina.sh from terminal it shows it is reading from setenv.sh file and shows arguments i have passed. but my application is not getting vm args to run.

1 Answer 1

0

JAVA_OPTS or server scripts are not supported in VSCode Community Server Connector (reference). You may try this workaround, where

  1. right click at Tomcat/your server -> Edit Server
  2. Change "args.override.boolean" to "true"
  3. Append necessary arguments into "args.vm.override.string"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.