This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271659 - GlassFish server start failed - NetBeans 8.2 - macOS High Sierra 10.13
Summary: GlassFish server start failed - NetBeans 8.2 - macOS High Sierra 10.13
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Servlet (show other bugs)
Version: 8.2
Hardware: Macintosh Mac OS X
: P1 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-17 15:08 UTC by Kous92
Modified: 2017-10-17 15:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: java.net.BindException: Address already in use


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kous92 2017-10-17 15:08:32 UTC
I have a big problem and I'm blocked, so I can't do in my engineering school Java EE labs exercises due to a major problem with GlassFish server configuration.

I use a MacBook PRO mid-2012 with the lastest macOS 10.13 high Sierra and the latest NetBeans 8.2 version.
I have created a Java Web Project with a Servlet and when I want to run the Java file, it's impossible to run the GlassFish Server and display the browser with the result.
Please give me a good issue to solve the problem, otherwise I can't practice and improve my Java EE skills.

GlassFish server log:

Launching GlassFish on Felix platform
oct. 17, 2017 4:51:26 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFOS: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
oct. 17, 2017 4:51:26 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
AVERTISSEMENT: Skipping entry  because it is not an absolute URI.
oct. 17, 2017 4:51:26 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
AVERTISSEMENT: Skipping entry  because it is not an absolute URI.
oct. 17, 2017 4:51:31 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner startBundles
AVERTISSEMENT: Can not start bundle file:/Users/Kous92/GlassFish_Server/glassfish/modules/core.jar because it is not contained in the list of installed bundles.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@3813b47 in service registry.
#!## LogManagerService.postConstruct : rootFolder=/Users/Kous92/GlassFish_Server/glassfish
#!## LogManagerService.postConstruct : templateDir=/Users/Kous92/GlassFish_Server/glassfish/lib/templates
#!## LogManagerService.postConstruct : src=/Users/Kous92/GlassFish_Server/glassfish/lib/templates/logging.properties
#!## LogManagerService.postConstruct : dest=/Users/Kous92/GlassFish_Server/glassfish/domains/domain1/config/logging.properties
Infos:   Running GlassFish Version: GlassFish Server Open Source Edition  4.1.1  (build 1)
Infos:   Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
Infos:   Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Infos:   Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Infos:   Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
Infos:   HV000001: Hibernate Validator 5.1.2.Final
Infos:   Authorization Service has successfully initialized.
Infos:   Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
Avertissement:   Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-1, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Avertissement:   Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-2, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Avertissement:   Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=admin-listener, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Infos:   GlassFish Server Open Source Edition  4.1.1  (1) startup time : Felix (56 626ms), startup services(2 296ms), total(58 922ms)
Grave:   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:248)
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:237)
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:86)
	at org.glassfish.grizzly.config.GenericGrizzlyListener.start(GenericGrizzlyListener.java:184)
	at com.sun.enterprise.v3.services.impl.GlassfishNetworkListener.start(GlassfishNetworkListener.java:109)
	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:567)
	at com.sun.enterprise.v3.services.impl.GrizzlyService.postConstruct(GrizzlyService.java:490)
	at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:326)
	at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:374)
	at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
	at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:228)
	at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
	at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2072)
	at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
	at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:88)
	at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
	at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
	at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpOneLevel.run(CurrentTaskFuture.java:762)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)

Infos:   Server shutdown initiated
Infos:   Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@5995851e as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@5b40de43.
Infos:   Unregistered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@5995851e from service registry.
Infos:   FileMonitoring shutdown
Completed shutdown of Log manager service
Infos:   Shutdown procedure finished
Completed shutdown of GlassFish runtime

My project run log with default Java Servlet file:
ant -f /Users/Kous92/NetBeansProjects/JavaEnt1 -Dnb.internal.action.name=run -Ddirectory.deployment.supported=true -DforceRedeploy=false -Dnb.wait.for.caches=true -Dbrowser.context=/Users/Kous92/NetBeansProjects/JavaEnt1 run
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
Copying 1 file to /Users/Kous92/NetBeansProjects/JavaEnt1/build/web/WEB-INF/lib
library-inclusion-in-manifest:
compile:
compile-jsps:
Starting GlassFish Server
<html>GlassFish Server start failed<br/>Please check server admin user name and password properties.<br/>Also please check the server log file for other possible causes.</html>
/Users/Kous92/NetBeansProjects/JavaEnt1/nbproject/build-impl.xml:1048: Deployment error: <html>GlassFish Server start failed<br/>Please check server admin user name and password properties.<br/>Also please check the server log file for other possible causes.</html>
See the server log for details.
BUILD FAILED (total time: 8 minutes 12 seconds)