如何在Community Server Connection VSCODE扩展中停止Glassfish的特定域。

huangapple go评论54阅读模式
英文:

How to stop a specific domain from Glassfish within Community Server Connection VSCODE extension

问题

Working with VSCode and GlassFish 5 via the Community Server Connector extension, I am trying to work with my own domain (sfeaapp), instead of the default domain (domain1).

To this goal, from a terminal I have successfully created my 'sfeaapp' domain, with the asadmin create-domain sfeaapp command.

Also, from VSCode I have been able to customize the start, thanks to editing 2 lines in the JSON that appears when 'Edit Server' is clicked, so that it starts gently on my 'sfeaapp' domain when I click the 'Start Server' action:

"args.override.boolean": "true",
"args.program.override.string": "start-domain --verbose sfeaapp",

But, the problem is that, when I try to stop the server, with 'Stop Server' option, I get the following message and it doesn't know which domain to stop:

The domains directory C:\Installed\glassfish5.0.1\glassfish\domains
contains multiple domains. Please specify a domain.
Available domains: domain1, sfeaapp
Command stop-domain failed.

Any help will be appreciatted.

英文:

Working with VSCode and GlassFish 5 via the Community Server Connector extension, I am trying to work with my own domain (sfeaapp), instead of the default domain (domain1).

To this goal, from a terminal I have successfully created my 'sfeaapp' domain, with the asadmin create-domain sfeaapp command.

Also, from VSCode I have been able to customize the start, thanks to editing 2 lines in the JSON that appears when 'Edit Server' is clicked, so that it starts gentently on my 'sfeaapp' domain when I click the 'Start Server' action:

   "args.override.boolean": "true",
   "args.program.override.string": "start-domain --verbose sfeaapp",

But, the problem is that, when I try to stop the server, with 'Stop Server' option, I get the following message and it doesn't know which domain to stop:

The domains directory C:\Installed\glassfish5.0.1\glassfish\domains
contains multiple domains. Please specify a domain.
Available domains: domain1, sfeaapp
Command stop-domain failed.

Any help will be appreciatted.

答案1

得分: 0

最新版本的GlassFish连接器支持变量glassfish.domain - 在编辑服务器中,将其从domain1更改为sfeaapp并将args.override.boolean设置为false。变量glassfish.domain将在默认启动和停止命令中得到尊重。

或者,您可以像以前一样使用args覆盖,但还需要更改args.shutdown.program.override.string的值为stop-domain sfeaapp

英文:

The latest version of GlassFish connector supports variable glassfish.domain - in Edit Server, change it from domain1 to sfeaapp and set args.override.boolean to false. The variable glassfish.domain will be respected in the default start and stop commands.

Alternatively, you can use args overrides as you did but you also need to change the value of args.shutdown.program.override.string to stop-domain sfeaapp

huangapple
  • 本文由 发表于 2023年5月26日 00:11:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/76334333.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定