简体   繁体   English

Glassfish 服务器 5 重新启动域在 enable-secure-admin 后显示 NCLS-ADMIN-00010

[英]Glassfish server 5 restart-domain displays NCLS-ADMIN-00010 after enable-secure-admin

With Glassfish server 5, restart-domain displays NCLS-ADMIN-00010 after enable-secure-admin.对于 Glassfish 服务器 5,restart-domain 在 enable-secure-admin 之后显示 NCLS-ADMIN-00010。

C:\glassfish-5.0.1\glassfish5\glassfish\bin>asadmin start-domain
Waiting for domain1 to start .......................
Successfully started the domain : domain1
domain  Location: C:\glassfish-5.0.1\glassfish5\glassfish\domains\domain1
Log File: C:\glassfish-5.0.1\glassfish5\glassfish\domains\domain1\logs\server.log
Admin Port: 4848
Command start-domain executed successfully.

C:\glassfish-5.0.1\glassfish5\glassfish\bin>asadmin change-admin-password
Enter admin user name [default: admin]>admin
Enter the admin password>
Enter the new admin password>
Enter the new admin password again>
Command change-admin-password executed successfully.

C:\glassfish-5.0.1\glassfish5\glassfish\bin>asadmin enable-secure-admin
Enter admin user name>  admin
Enter admin password for user "admin">
You must restart all running servers for the change in secure admin to take effect.
Command enable-secure-admin executed successfully.

C:\glassfish-5.0.1\glassfish5\glassfish\bin>asadmin restart-domain
NCLS-ADMIN-00010
NCLS-ADMIN-00010
NCLS-ADMIN-00010
NCLS-ADMIN-00010
NCLS-ADMIN-00010
NCLS-ADMIN-00010

I've tried to:我试图:

  1. Downgrade Java to 8u152 or earlier.将 Java 降级到 8u152 或更早版本。
  2. Download the latest GlassFish 5.0.1 nightly.每晚下载最新的 GlassFish 5.0.1。

But the above suggestions do not work.但上述建议不起作用。

Also, when I use the enable-secure-admin with stop-domain and start-domain, Glassfish does not display on localhost:4848.此外,当我将 enable-secure-admin 与 stop-domain 和 start-domain 一起使用时,Glassfish 不会显示在 localhost:4848 上。

Can anyone give me any help?谁能给我任何帮助?

I solved this in version 6.1 by: setting correct javajdk in /glassfishX/glassfish/config/asenv.bat or asenv.conf (glassfish 5.0, 5.01 and 5.1 needs jdk 251/252 or LOWEST glassfish 6 needs jdk 9 or 11 - i use 11 and its fine)我在 6.1 版中通过以下方式解决了这个问题:在 /glassfishX/glassfish/config/asenv.bat 或 asenv.conf 中设置正确的 javajdk(glassfish 5.0、5.01 和 5.1 需要 jdk 251/252 或 LOWEST glassfish 6 需要 jdk 9 或 11 - 我使用11和它的罚款)

stop domain停止域

kill java task杀死 java 任务

delete folder:删除文件夹:

linux: in /home/user who run glassfish/.gfclient linux:在 /home/user 中运行 glassfish/.gfclient

windows: c:\users\user who run glassfish.gfclient windows: c:\users\运行 glassfish.gfclient 的用户

start domain起始域

perhaps you will see other error in upload/deploy about path=null or missing也许您会在上传/部署中看到有关path=null 或丢失的其他错误

stop-domain停止域

this you can fix with editing /glassfish/glassfish/modules/console-common.jar (open it with your zip/rar aplication).这个你可以通过编辑 /glassfish/glassfish/modules/console-common.jar 来解决(用你的 zip/rar 应用程序打开它)。 Find applications/uploadFrame.jsf,查找应用程序/uploadFrame.jsf,

open it, edit the tag <sun:form id="form"> and change it to <sun:form id="form" enctype="multipart/form-data">.打开它,编辑标签 <sun:form id="form"> 并将其更改为 <sun:form id="form" enctype="multipart/form-data">。

Save the uploadFrame.jsf, update the jar with the "new" jsf.保存uploadFrame.jsf,用“新”jsf更新jar。

start domain起始域

I have wasted a lot of time to fix all things upcomming with the new versions, i think this is all.我浪费了很多时间来修复所有即将推出的新版本,我想这就是全部。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM