GlassFish server start failed

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

GlassFish server start failed

Meedoo
Hello, at school we started to use GlassFish on NetBeans. But I cannot on my MacBook Pro start Glassfish server.

When I firstly started NetBeans, and tried to Start GlassFish server, i got two outputs, one Java DB Database Process and GlassFish Server.




Java DB Output looked like:
Thu Nov 02 12:37:01 CET 2017 : DRDA_SecurityInstalled.I
Thu Nov 02 12:37:12 CET 2017 : DRDA_ListenPort.S, <1527>, <localhost>, <java.net.BindException: Address already in use (Bind failed)>




And GlassFish Output:

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
objc[12630]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin/java (0x1064874c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10654f4e0). One of the two will be used. Which one is undefined.
Launching GlassFish on Felix platform
Lis 02, 2017 12:37:02 ODP. com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@5bd84c18 in service registry.
#!## LogManagerService.postConstruct : rootFolder=/Users/meedoo/glassfish5/glassfish
#!## LogManagerService.postConstruct : templateDir=/Users/meedoo/glassfish5/glassfish/lib/templates
#!## LogManagerService.postConstruct : src=/Users/meedoo/glassfish5/glassfish/lib/templates/logging.properties
#!## LogManagerService.postConstruct : dest=/Users/meedoo/glassfish5/glassfish/domains/domain1/config/logging.properties
Info:   Running GlassFish Version: GlassFish Server Open Source Edition  5.0  (build 25)
Info:   Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
Info:   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.
Info:   Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
Info:   GlassFish Server Open Source Edition  5.0  (25) startup time : Felix (32 269ms), startup services(811ms), total(33 080ms)
Severe:   Shutting down server due to startup exception
java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:433)
        at sun.nio.ch.Net.bind(Net.java:425)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bindToChannelAndAddress(TCPNIOBindingHandler.java:131)
        at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bind(TCPNIOBindingHandler.java:88)
        at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:239)
        at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:228)
        at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:77)
        at org.glassfish.grizzly.config.GenericGrizzlyListener.start(GenericGrizzlyListener.java:186)
        at com.sun.enterprise.v3.services.impl.GlassfishNetworkListener.start(GlassfishNetworkListener.java:108)
        at com.sun.enterprise.v3.services.impl.GrizzlyProxy.start0(GrizzlyProxy.java:267)
        at com.sun.enterprise.v3.services.impl.GrizzlyProxy.start(GrizzlyProxy.java:241)
        at com.sun.enterprise.v3.services.impl.GrizzlyService.createNetworkProxy(GrizzlyService.java:619)
        at com.sun.enterprise.v3.services.impl.GrizzlyService.postConstruct(GrizzlyService.java:542)
        at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:327)
        at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:375)
        at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
        at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:305)
        at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
        at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2126)
        at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:116)
        at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:90)
        at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1237)
        at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1168)
        at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpOneLevel.run(CurrentTaskFuture.java:786)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

Info:   HV000001: Hibernate Validator 6.0.2.Final
Info:   Server shutdown initiated
Info:   Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@181e72d3 as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@a0f53fc.
Info:   Unregistered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@181e72d3 from service registry.
Info:   FileMonitoring shutdown
Completed shutdown of Log manager service
Info:   Shutdown procedure finished







So I killed processes, that were using port 1527. Restarted NetBeans, and tried to Start GlassFish Server again. But it again did not work. I got this messeges:



Java DB Output:

Thu Nov 02 12:39:49 CET 2017 : DRDA_SecurityInstalled.I
Thu Nov 02 12:40:00 CET 2017 : Síťový server Apache Derby - 10.10.2.0 - (1582446): spuÅ¡těn a připraven přijímat připojení na portu 1527 v {3}     This to English is something like: "Started and ready for connection on port 1527"






GlassFish output was like:

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
objc[12975]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin/java (0x10558f4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1065fe4e0). One of the two will be used. Which one is undefined.
Launching GlassFish on Felix platform
Lis 02, 2017 12:39:50 ODP. com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@5c2e549d in service registry.
#!## LogManagerService.postConstruct : rootFolder=/Users/meedoo/glassfish5/glassfish
#!## LogManagerService.postConstruct : templateDir=/Users/meedoo/glassfish5/glassfish/lib/templates
#!## LogManagerService.postConstruct : src=/Users/meedoo/glassfish5/glassfish/lib/templates/logging.properties
#!## LogManagerService.postConstruct : dest=/Users/meedoo/glassfish5/glassfish/domains/domain1/config/logging.properties
Info:   Running GlassFish Version: GlassFish Server Open Source Edition  5.0  (build 25)
Info:   Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
Info:   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.
Info:   Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
Info:   Grizzly Framework 2.4.1 started in: 33ms - bound to [/0.0.0.0:8080]
Info:   Grizzly Framework 2.4.1 started in: 3ms - bound to [/0.0.0.0:8181]
Info:   Grizzly Framework 2.4.1 started in: 1ms - bound to [/0.0.0.0:4848]
Info:   Grizzly Framework 2.4.1 started in: 0ms - bound to [/0.0.0.0:3700]
Info:   GlassFish Server Open Source Edition  5.0  (25) startup time : Felix (32 395ms), startup services(829ms), total(33 224ms)
Info:   JTS5014: Recoverable JTS instance, serverId = [100]
Info:   HV000001: Hibernate Validator 6.0.2.Final
Info:   Grizzly Framework 2.4.1 started in: 2ms - bound to [/0.0.0.0:7676]
Info:   Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@15dd5ac2 as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@4f8b4bd0.
Info:   JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://192.168.0.101:8686/jndi/rmi://192.168.0.101:8686/jmxrmi




Here it stoped, for almost 10 min and then I got Warning message:
GlassFish Server start failed Please check server admin user name and password properties. Also please check the server log filw for other possible causes.






So, I would be glad for every help, because I am lost if it wont work.   :(  :(  
In Attachment you can see my warning message.

Thanks for help.




Attachments:
http://forums.netbeans.org//files/snmek_obrazovky_2017_11_02_v124856_102.png

Reply | Threaded
Open this post in threaded view
|

Re: GlassFish server start failed

Alied Pérez Martínez
See my answer below. Looks like you already have GlassFish running?
Close Netbeans and see if there is a glassfish process already running.

On 11/02/2017 09:35 AM, Meedoo wrote:
> Java DB Output looked like:
> Thu Nov 02 12:37:01 CET 2017 : DRDA_SecurityInstalled.I
> Thu Nov 02 12:37:12 CET 2017 : DRDA_ListenPort.S, <1527>, <localhost>, <java.net.BindException: Address already in use (Bind failed)>
Someone is already using that port in your machine.
netstat -na might give you a hint.

> Severe:   Shutting down server due to startup exception
> java.net.BindException: Address already in use
> at sun.nio.ch.Net.bind0(Native Method)
> at sun.nio.ch.Net.bind(Net.java:433)
> at sun.nio.ch.Net.bind(Net.java:425)
> at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
> at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bindToChannelAndAddress(TCPNIOBindingHandler.java:131)
> at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bind(TCPNIOBindingHandler.java:88)
> at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:239)
> at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:228)
> at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:77)
> at org.glassfish.grizzly.config.GenericGrizzlyListener.start(GenericGrizzlyListener.java:186)
> at com.sun.enterprise.v3.services.impl.GlassfishNetworkListener.start(GlassfishNetworkListener.java:108)
> at com.sun.enterprise.v3.services.impl.GrizzlyProxy.start0(GrizzlyProxy.java:267)
> at com.sun.enterprise.v3.services.impl.GrizzlyProxy.start(GrizzlyProxy.java:241)
> at com.sun.enterprise.v3.services.impl.GrizzlyService.createNetworkProxy(GrizzlyService.java:619)
> at com.sun.enterprise.v3.services.impl.GrizzlyService.postConstruct(GrizzlyService.java:542)
> at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:327)
> at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:375)
> at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
> at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:305)
> at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
> at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2126)
> at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:116)
> at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:90)
> at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1237)
> at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1168)
> at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpOneLevel.run(CurrentTaskFuture.java:786)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
Same. That port is already being used.