The problem that arises is
The error line is:
At this point the status of the server is:
The status of the normal server is:
When you start the server normally, the GlassFish server window displays:
Launching GlassFish on Felix Platform April 01, 2018 10:34:43 PM Com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner Createbundleprovisioner Information: Create bundle Provisioner
class = Class Com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
April 01, 2018 10:34:43 PM Com.sun.enterprise.glassfish.bootstrap.osgi.bundleprovisioner$defaultcustomizer getLocations
Warning: Skipping entry because it is isn't an absolute URI.
April 01, 2018 10:34:43 PM Com.sun.enterprise.glassfish.bootstrap.osgi.bundleprovisioner$defaultcustomizer getLocations
Warning: Skipping entry because it is isn't an absolute URI.
Registered Com.sun.enterprise.glassfish.bootstrap.osgi.embeddedosgiglassfishruntime@7d513edb in service registry. Found populator:com.sun.enterprise.v3.server.GFDomainXml #!## logmanagerservice.postconstruct:rootfolder=d:\ Software\glassfish4\glassfish #!## logmanagerservice.postconstruct:templatedir=d:\software\glassfish4\glassfish\ Lib\templates #!## Logmanagerservice.postconstruct:src=d:\soFtware\glassfish4\glassfish\lib\templates\logging.properties #!## logmanagerservice.postconstruct:dest=d:\ Software\glassfish4\glassfish\domains\domain1\config\logging.properties information: Running glassfish version:glassfish Server Open Source Edition 4.1 (build 13) Information: Server log file is using Formatter Class:com.sun.enterprise.server.logg Ing. Odllogformatter information: Realm [Admin-realm] of ClassType [Com.sun.enterprise.security.auth.realm.file.FileRealm]
Successfully created.
Info: Realm [file] of ClassType [Com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created. Info: Realm [certificate] of ClassType [Com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
Successfully created.
Info: Authorization Service has successfully initialized. Information: hv000001:hibernate Validator 5.0.0.Final information: Registered Org.glassfish.ha.store.adapter.cache.ShoalBackingStorePr Oxy for persistence-type = replicated in Backingstorefactoryregistry information: Grizzly Framework 2.3.15 started In:1,460ms-bound to [/0.0.0.0:8080] information: Grizzly Framework 2.3.15 started In:3ms-bound to [/0.0.0.0:8181] Info: Grizzly Framework 2.3.15 started In:4ms-bound to [/0.0.0.0:4848] Information: Grizzly Framework 2.3.15 started -bound to [/0.0.0.0:3700] Info: GlassFish Server Open Source Edition 4.1 (Time:felix), startup s Ervices (6,830ms), Total (16,014ms) Information: Grizzly Framework 2.3.15 started In:2ms-bound to [/0.0.0.0:7676] information: Grizzly Framework 2.3.15 started In:369ms-bound to [/0.0.0.0:8181] Information: Registered COM.SUN.ENTERPRISE.GLASSFISH.BOOTSTRAP.OSGI . Embeddedosgiglassfishimpl@610d28b8 as OSGi service Registration:org.apache.felix.framework.ServiceRegistrationImpl
@682abca7. Info: Grizzly Framework 2.3.15 started In:3ms-bound to [/0.0.0.0:8080] information: Jmxstartupservice has started On Jmxservice URL Service:jmx:rmi://2011-20131227sj:8686/jndi/rmi://2011-20131227sj:8686/jmxrmi
Under normal circumstances there should be more than one child node under the GlassFish server node, and when this happens, there will be no nodes under GlassFish. So just remove the server and reload it.
See the method of reloading: https://yq.aliyun.com/articles/35444
A slightly simpler way to do this is to back up a glassfish, and then when you encounter this problem, replace the glassfish in the broken GlassFish directory with the one on the backup.
PS. Listen to the classmate say reload NetBeans can solve this problem completely