英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论