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
I've tried to:
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.
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)
stop domain
kill java task
delete folder:
linux: in /home/user who run glassfish/.gfclient
windows: c:\users\user who run glassfish.gfclient
start domain
perhaps you will see other error in upload/deploy about path=null or missing
stop-domain
this you can fix with editing /glassfish/glassfish/modules/console-common.jar (open it with your zip/rar aplication). Find applications/uploadFrame.jsf,
open it, edit the tag <sun:form id="form"> and change it to <sun:form id="form" enctype="multipart/form-data">.
Save the uploadFrame.jsf, update the jar with the "new" jsf.
start domain
I have wasted a lot of time to fix all things upcomming with the new versions, i think this is all.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.