redhat-developer / vscode-server-connector

📦 Connects Visual Studio Code to your server adapters and run, deploy apps !!
Eclipse Public License 2.0
56 stars 26 forks source link

Problem with vm args for a JBoss EAP 7.1.0 #519

Closed leonix94 closed 2 years ago

leonix94 commented 2 years ago

Hi, I've a problem with an istance of a JBoss EAP 7.1.0.GA (WildFly Core 3.0.10.Final-redhat-1) and your plugin.

Unfortunately all my vm args are not working on the startup launch configuration. I add the same string used in the eclipse plugin too after the "args.program.override.string" argument in the xml file opened after clicked on Edit Server.

The server start properly and the software deployed but some arguments needed aren't loaded.

hoffm473 commented 2 years ago

You must set args.override.boolean to true in order for the other args.override properties to be applied.

leonix94 commented 2 years ago

I've already set it on true

leonix94 commented 2 years ago
"args.override.boolean": "true",

"args.program.override.string": "-mp \"c:/jboss-eap-7.1-Gded/modules\" org.jboss.as.standalone -b localhost -server-config=standalone.xml -Dswa.properties=\"C:/dev/samplea.properties\" -Dswb.properties=\"C:/dev/sampleb.properties\" "

i tried putting those args in different ways (with or without "", with \ or /...everything) but it doesn't load the properties file there

robstryker commented 2 years ago

Once the process is launched, have you verified that the process was actually launched with the correct arguments? You should be able to see this in the task manager.

leonix94 commented 2 years ago

using wmic.exe path Win32_Process where handle='****' get Commandline /format:list

I can confirm they're correctly loaded. I'm using the same args present in the eclipse plugin (fixing the //)

robstryker commented 2 years ago

Oh! I should have noticed this before. We have a different flag for vm args! "args.program.override.string" is for program arguments. "args.vm.override.string" is for VM arguments.

Try this! I hope it helps!

robstryker commented 2 years ago

Closing issue!