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

查看:161
本文介绍了Glassfish server 5 restart-domain 在 enable-secure-admin 后显示 NCLS-ADMIN-00010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Glassfish 服务器 5,restart-domain 在 enable-secure-admin 后显示 NCLS-ADMIN-00010.

With Glassfish server 5, restart-domain displays NCLS-ADMIN-00010 after enable-secure-admin.

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

我尝试过:

  1. 将 Java 降级到 8u152 或更早版本.
  2. 每晚下载最新的 GlassFish 5.0.1.

但上述建议不起作用.

此外,当我将 enable-secure-admin 与 stop-domain 和 start-domain 一起使用时,Glassfish 不会在 localhost:4848 上显示.

Also, when I use the enable-secure-admin with stop-domain and start-domain, Glassfish does not display on localhost:4848.

有人可以帮我吗?

推荐答案

我在 6.1 版中通过以下方式解决了这个问题:在/glassfishX/glassfish/config/asenv.bat 或 asenv.conf 中设置正确的 javajdk(glassfish 5.0、5.01 和 5.1 需要 jdk 251/252 或最低glassfish 6 需要 jdk 9 或 11 - 我使用 11 并且很好)

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)

停止域

杀死java任务

删除文件夹:

linux: 在/home/user who run glassfish/.gfclient

linux: in /home/user who run glassfish/.gfclient

windows: c:\users\user who run glassfish.gfclient

windows: c:\users\user who run glassfish.gfclient

起始域

也许您会在上传/部署中看到其他关于path=null 或丢失

perhaps you will see other error in upload/deploy about path=null or missing

停止域

这个你可以通过编辑/glassfish/glassfish/modules/console-common.jar来解决(用你的zip/rar应用程序打开它).查找应用程序/uploadFrame.jsf,

this you can fix with editing /glassfish/glassfish/modules/console-common.jar (open it with your zip/rar aplication). Find applications/uploadFrame.jsf,

打开它,编辑标签 并将其更改为 <sun:form id="form";enctype="multipart/form-data">.

open it, edit the tag <sun:form id="form"> and change it to <sun:form id="form" enctype="multipart/form-data">.

保存uploadFrame.jsf,用new"更新jarjsf.

Save the uploadFrame.jsf, update the jar with the "new" jsf.

起始域

我已经浪费了很多时间来修复新版本即将到来的所有问题,我想这就是全部.

I have wasted a lot of time to fix all things upcomming with the new versions, i think this is all.

这篇关于Glassfish server 5 restart-domain 在 enable-secure-admin 后显示 NCLS-ADMIN-00010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆