Whenever I run my project from Netbeans, I get this error:
The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 0 seconds)
Here is the log output:
Launching GlassFish on Felix platform
Oct 30, 2015 3:54:15 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Oct 30, 2015 3:54:15 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Oct 30, 2015 3:54:15 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime#2b936ab9 in service registry.
Found populator: com.sun.enterprise.v3.server.GFDomainXml
#!## LogManagerService.postConstruct : rootFolder=C: \Program Files\glassfish-4.1\glassfish
#!## LogManagerService.postConstruct : templateDir=C: \Program Files\glassfish-4.1\glassfish\lib\templates
#!## LogManagerService.postConstruct : src=C: \Program Files\glassfish-4.1\glassfish\lib\templates\logging.properties
#!## LogManagerService.postConstruct : dest=C: \Users\Jimmyzz\personal_domain1\config\logging.properties
Info: Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)
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.3.15 started in: 58ms - bound to [/0.0.0.0:8080]
Info: Grizzly Framework 2.3.15 started in: 5ms - bound to [/0.0.0.0:8181]
Info: Grizzly Framework 2.3.15 started in: 7ms - bound to [/0.0.0.0:4848]
Info: Grizzly Framework 2.3.15 started in: 5ms - bound to [/0.0.0.0:3700]
Info: GlassFish Server Open Source Edition 4.1 (13) startup time : Felix (1,408ms), startup services(571ms), total(1,979ms)
Info: Grizzly Framework 2.3.15 started in: Ems - bound to [/0.0.0.0:7676]
Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#55f8669d as 0511 service registration: org.apache.felix.framework.ServiceRegistrationImpl#769d513.
Info: JMXStartupService has started JMXConnector on 3MXService URL service:jmx:rmi://100.75.255.36:8686/jndi/rmi://100.75.255.36:8686/jmxrmi
Info: HV000001: Hibernate Validator 5.0.0.Fina1
Info: Grizzly Framework 2.3.15 started in: 8ms - bound to [/0.0.0.0:8181]
Info: Grizzly Framework 2.3.15 started in: 9ms - bound to [/0.0.0.0:8080]I
For anyone who has a similar problem mine got fixed by renaming my project folder,
without spaces or symbols (eg. instead of 'Netbeans project & beans' to NetbeansProjectNBeans).
Related
I have created Enterprise application in netbeans but whenever i run am receiving this error i uninstalled and then install the application so many times even i pointed glassfish server but i have failed. please help an new to java and netbeans. below i attached my server log and the error.
In-place deployment at \Mac\Home\Downloads\EPDAssignment\EPDAssignment-war\build\web
GlassFish Server 4.1, deploy, null, false
\\Mac\Home\Downloads\EPDAssignment\EPDAssignment-war\nbproject\build-impl.xml:1051: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 0 seconds)
Server Log screenshot
Info: Server shutdown initiated
Info: Unregistered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#6014a9ba from service registry.
Info: FileMonitoring shutdown
Info: JMXStartupService: Stopped JMXConnectorServer: null
Info: JMXStartupService and JMXConnectors have been shut down.
Info: JdbcRuntimeExtension, getAllSystemRAResourcesAndPools = [GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool]
Completed shutdown of Log manager service
Info: Shutdown procedure finished
Completed shutdown of GlassFish runtime
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
Listening for transport dt_socket at address: 9009
Launching GlassFish on Felix platform
Dec 18, 2018 9:32:43 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Dec 18, 2018 9:32:43 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Dec 18, 2018 9:32:43 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime#1943da0 in service registry.
Found populator: com.sun.enterprise.v3.server.GFDomainXml
#!## LogManagerService.postConstruct : rootFolder=C:\Program Files\glassfish-4.1\glassfish
#!## LogManagerService.postConstruct : templateDir=C:\Program Files\glassfish-4.1\glassfish\lib\templates
#!## LogManagerService.postConstruct : src=C:\Program Files\glassfish-4.1\glassfish\lib\templates\logging.properties
#!## LogManagerService.postConstruct : dest=C:\Users\nurasahardid\AppData\Roaming\NetBeans\8.0.2\config\GF_4.1\domain1\config\logging.properties
Info: Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)
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: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
Info: Authorization Service has successfully initialized.
Info: Grizzly Framework 2.3.15 started in: 31ms - bound to [/0.0.0.0:8080]
Info: Grizzly Framework 2.3.15 started in: 0ms - bound to [/0.0.0.0:8181]
Info: Grizzly Framework 2.3.15 started in: 0ms - bound to [/0.0.0.0:4848]
Info: Grizzly Framework 2.3.15 started in: 15ms - bound to [/0.0.0.0:3700]
Info: GlassFish Server Open Source Edition 4.1 (13) startup time : Felix (2,138ms), startup services(1,059ms), total(3,197ms)
Info: Grizzly Framework 2.3.15 started in: 78ms - bound to [/0.0.0.0:7676]
Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#6014a9ba as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl#107f4980.
Info: JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://10.211.55.3:8686/jndi/rmi://10.211.55.3:8686/jmxrmi
Info: HV000001: Hibernate Validator 5.0.0.Final
Info: Grizzly Framework 2.3.15 started in: 31ms - bound to [/0.0.0.0:8181]
Info: Grizzly Framework 2.3.15 started in: 0ms - bound to [/0.0.0.0:8080]
I'm not able to start my GlassFish server in netbeans to view my JSP and HTML files. I keep getting this error. I tried to delete and create the server but no point.
GlassFish Server
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
objc[87677]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bin/java (0x10b9314c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10d9bb4e0). One of the two will be used. Which one is undefined.
Launching GlassFish on Felix platform
Mar 24, 2017 12:19:31 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Mar 24, 2017 12:19:31 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Mar 24, 2017 12:19:31 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime#7a5428ab in service registry.
Found populator: com.sun.enterprise.v3.server.GFDomainXml
#!## LogManagerService.postConstruct : rootFolder=/Users/apple/GlassFish_Server/glassfish
#!## LogManagerService.postConstruct : templateDir=/Users/apple/GlassFish_Server/glassfish/lib/templates
#!## LogManagerService.postConstruct : src=/Users/apple/GlassFish_Server/glassfish/lib/templates/logging.properties
#!## LogManagerService.postConstruct : dest=/Users/apple/GlassFish_Server/glassfish/domains/dd/config/logging.properties
Info: Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)
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 4.1 (13) startup time : Felix (32,095ms), startup services(741ms), total(32,836ms)
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:132)
at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bind(TCPNIOBindingHandler.java:88)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:236)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:225)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:85)
at org.glassfish.grizzly.config.GenericGrizzlyListener.start(GenericGrizzlyListener.java:180)
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:329)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:377)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147)
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:745)
Info: HV000001: Hibernate Validator 5.0.0.Final
Info: Server shutdown initiated
Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#629adce as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl#30c0d731.
Info: Unregistered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#629adce from service registry.
Info: FileMonitoring shutdown
Completed shutdown of Log manager service
Info: Shutdown procedure finished
Console:
ant -f /Users/apple/NetBeansProjects/MYLAB6 -Dnb.internal.action.name=run -Ddirectory.deployment.supported=true -DforceRedeploy=false -Dnb.wait.for.caches=true -Dbrowser.context=/Users/apple/NetBeansProjects/MYLAB6 run
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Starting GlassFish Server
GlassFish Server is running.
In-place deployment at /Users/apple/NetBeansProjects/MYLAB6/build/web
GlassFish Server, deploy, null, false
/Users/apple/NetBeansProjects/MYLAB6/nbproject/build-impl.xml:1045: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 36 seconds)
The console is pointing at this line:
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
please help
it causes due to MaxPermSize Java 8 removes MaxPermSize from configuration and take care itself. Please remove MaxPermSize from configuration.
Connecting to Glassfish from ASADMIN terminal works fine but whenever I try to connect to Glassfish from Netbeans I get this error
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
objc[86481]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x107a3f4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x108aa94e0). One of the two will be used. Which one is undefined.
Launching GlassFish on Felix platform
Feb 15, 2017 12:43:19 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Feb 15, 2017 12:43:19 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Feb 15, 2017 12:43:19 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Feb 15, 2017 12:43:19 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner startBundles
WARNING: Can not start bundle file:/Applications/NetBeans/glassfish-4.1.1/glassfish/modules/core.jar because it is not contained in the list of installed bundles.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime#7ff366d0 in service registry.
#!## LogManagerService.postConstruct : rootFolder=/Applications/NetBeans/glassfish-4.1.1/glassfish
#!## LogManagerService.postConstruct : templateDir=/Applications/NetBeans/glassfish-4.1.1/glassfish/lib/templates
#!## LogManagerService.postConstruct : src=/Applications/NetBeans/glassfish-4.1.1/glassfish/lib/templates/logging.properties
#!## LogManagerService.postConstruct : dest=/Applications/NetBeans/glassfish-4.1.1/glassfish/domains/domain1/config/logging.properties
Info: Running GlassFish Version: GlassFish Server Open Source Edition 4.1.1 (build 1)
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
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-1, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-2, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=admin-listener, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Info: GlassFish Server Open Source Edition 4.1.1 (1) startup time : Felix (31,891ms), startup services(594ms), total(32,485ms)
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: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:745)
Info: HV000001: Hibernate Validator 5.1.2.Final
Info: Server shutdown initiated
Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#30a7c98f as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl#7e1f584d.
Info: Unregistered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#30a7c98f from service registry.
Info: FileMonitoring shutdown
Completed shutdown of Log manager service
Info: Shutdown procedure finished
Sometimes I get this error:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
objc[86884]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10f98b4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1119fe4e0). One of the two will be used. Which one is undefined.
Launching GlassFish on Felix platform
Feb 15, 2017 12:49:41 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Feb 15, 2017 12:49:41 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Feb 15, 2017 12:49:41 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Feb 15, 2017 12:49:41 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner startBundles
WARNING: Can not start bundle file:/Applications/NetBeans/glassfish-4.1.1/glassfish/modules/core.jar because it is not contained in the list of installed bundles.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime#583c0b34 in service registry.
#!## LogManagerService.postConstruct : rootFolder=/Applications/NetBeans/glassfish-4.1.1/glassfish
#!## LogManagerService.postConstruct : templateDir=/Applications/NetBeans/glassfish-4.1.1/glassfish/lib/templates
#!## LogManagerService.postConstruct : src=/Applications/NetBeans/glassfish-4.1.1/glassfish/lib/templates/logging.properties
#!## LogManagerService.postConstruct : dest=/Applications/NetBeans/glassfish-4.1.1/glassfish/domains/domain1/config/logging.properties
Info: Running GlassFish Version: GlassFish Server Open Source Edition 4.1.1 (build 1)
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
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-1, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Info: Grizzly Framework 2.3.23 started in: 31ms - bound to [/0.0.0.0:8080]
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-2, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Info: Grizzly Framework 2.3.23 started in: 1ms - bound to [/0.0.0.0:8181]
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=admin-listener, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Info: Grizzly Framework 2.3.23 started in: 0ms - bound to [/0.0.0.0:4848]
Info: Grizzly Framework 2.3.23 started in: 1ms - bound to [/0.0.0.0:3700]
Info: GlassFish Server Open Source Edition 4.1.1 (1) startup time : Felix (32,118ms), startup services(724ms), total(32,842ms)
Info: JTS5014: Recoverable JTS instance, serverId = [100]
Info: HV000001: Hibernate Validator 5.1.2.Final
Info: Grizzly Framework 2.3.23 started in: 1ms - bound to [/0.0.0.0:7676]
Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#2822c6ff as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl#60d1b21f.
Info: JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://172.18.76.116:8686/jndi/rmi://172.18.76.116:8686/jmxrmi
After this phase, it should normally say Grizzly framework started but it gets stuck here for a while and then pops up an error asking me to check Admin username and password or to check server logs. I have tried empty username and password field as well as adding "admin" in username and empty password as well as adding both username and password but it still gives same error.
I am currently using Macbook pro for this and I keep getting this error whenever I try to connect using Netbeans while connecting with ASADMIN works.
I have tried re-installing everything from scratch but it still gives me the same error.
The first exception is a port binding issue. It means that there is already something running (probably another GlassFish instance).
The second issue you're having isn't a problem with GlassFish per se, but almost certainly a problem with the .gfclient which you'll find stored in your user's home directory (on Mac, I believe that's something like /Users/yourName/.gfclient)
Try removing .gfclient totally, so any cached user/password credentials are removed. You may also need to remove and re-add the GlassFish server to Netbeans.
I am currently attempting to get neo4j installed properly on an EC2 instance with RHEL. Currently I can not hit the server on port 7474 from a browser to see the neo4j webadmin or browser. As of right now I can successfully access localhost:7474 which leads me to believe it is some level of access issue with remote connections.
What I have done so far:
Installed Oracle Java 1.7 on the EC2 instance
Installed neo4j-community-2.0.1
Added org.neo4j.server.webserver.address=0.0.0.0 to the neo4j-server.properties
Added a custom TCP rule in EC2 UI for port 7474 allowing 0.0.0.0/0
Added 7474 to iptables
Restarted the instance
run neo4j start
Looking at netstat I see the process listening on port 7474, so I am unsure what else would be preventing external traffic from hitting the public EC2 DNS for the server on port 7474.
console.log
2014-02-24 20:25:24.572+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2014-02-24 20:25:27.226+0000 INFO [API] Successfully started database
2014-02-24 20:25:28.924+0000 INFO [API] Starting HTTP on port :7474 with 10 threads available
2014-02-24 20:25:29.387+0000 INFO [API] Enabling HTTPS on port :7473
2014-02-24 20:25:30.077+0000 INFO [API] Mounted discovery module at [/]
2014-02-24 20:25:30.088+0000 INFO [API] Mounted REST API at [/db/data/]
2014-02-24 20:25:30.097+0000 INFO [API] Mounted management API at [/db/manage/]
2014-02-24 20:25:30.099+0000 INFO [API] Mounted webadmin at [/webadmin]
2014-02-24 20:25:30.100+0000 INFO [API] Mounted Neo4j Browser at [/browser]
2014-02-24 20:25:30.202+0000 INFO [API] Mounting static content at [/webadmin] from [webadmin-html]
2014-02-24 20:25:30.326+0000 INFO [API] Mounting static content at [/browser] from [browser]
15:25:30.328 [main] WARN o.e.j.server.handler.ContextHandler - o.e.j.s.ServletContextHandler#164cc9b7{/,null,null} contextPath ends with /
15:25:30.328 [main] WARN o.e.j.server.handler.ContextHandler - Empty contextPath
15:25:30.331 [main] INFO org.eclipse.jetty.server.Server - jetty-9.0.5.v20130815
15:25:30.387 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.MovedContextHandler#5e9c3ce7{/,null,AVAILABLE}
15:25:30.780 [main] INFO o.e.j.w.StandardDescriptorProcessor - NO JSP Support for /webadmin, did not find org.apache.jasper.servlet.JspServlet
15:25:30.802 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.w.WebAppContext#488a358e{/webadmin,jar:file:/opt/neo4j-community-2.0.1/system/lib/neo4j-server-2.0.1-static-web.jar!/webadmin-html,AVAILABLE}
15:25:31.964 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler#750e589{/db/manage,null,AVAILABLE}
15:25:32.759 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler#1480606f{/db/data,null,AVAILABLE}
15:25:32.787 [main] INFO o.e.j.w.StandardDescriptorProcessor - NO JSP Support for /browser, did not find org.apache.jasper.servlet.JspServlet
15:25:32.789 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.w.WebAppContext#3f773163{/browser,jar:file:/opt/neo4j-community-2.0.1/system/lib/neo4j-browser-2.0.1.jar!/browser,AVAILABLE}
15:25:33.047 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler#164cc9b7{/,null,AVAILABLE}
15:25:33.078 [main] INFO o.e.jetty.server.ServerConnector - Started ServerConnector#14cfe45e{HTTP/1.1}{0.0.0.0:7474}
15:25:34.498 [main] INFO o.e.jetty.server.ServerConnector - Started ServerConnector#44590060{SSL-HTTP/1.1}{0.0.0.0:7473}
2014-02-24 20:25:34.500+0000 INFO [API] Remote interface ready and available at [http://0.0.0.0:7474/]
neo4j.0.0.log:
Feb 24, 2014 3:25:24 PM org.neo4j.server.logging.Logger log
INFO: Setting startup timeout to: 120000ms based on -1
Feb 24, 2014 3:25:27 PM org.neo4j.server.logging.Logger log
INFO: Successfully started database
Feb 24, 2014 3:25:28 PM org.neo4j.server.logging.Logger log
INFO: Starting HTTP on port :7474 with 10 threads available
Feb 24, 2014 3:25:29 PM org.neo4j.server.logging.Logger log
INFO: Enabling HTTPS on port :7473
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounted discovery module at [/]
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounted REST API at [/db/data/]
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounted management API at [/db/manage/]
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounted webadmin at [/webadmin]
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounted Neo4j Browser at [/browser]
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounting static content at [/webadmin] from [webadmin-html]
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounting static content at [/browser] from [browser]
Feb 24, 2014 3:25:31 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'
Feb 24, 2014 3:25:31 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'
Feb 24, 2014 3:25:32 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'
Feb 24, 2014 3:25:34 PM org.neo4j.server.logging.Logger log
INFO: Remote interface ready and available at [http://0.0.0.0:7474/]
Is your EC2 instance part of a security group within a VPC?
As a troubleshooting technique - you can try to put nginx as a proxy that does 80<->7474, and see if that gives you a way to at least access it while you work through the issues...
I had the exact same problem, which turned out to result from how security groups are administered in EC2. Basically I had to go to "Network Interfaces", select "Actions", then "Change Security Groups", and then add my newly created security group.
I'm pretty familiar with Java SE and am just starting to learn Java EE and doing the First Cup Tutorial. I followed all of the instructions carefully. I am running this on my work computer (Windows 7) with a work firewall (Windows Firewall).
When I attempt to launch the GlassFish server I get this output in NetBeans:
Launching GlassFish on Felix platform
INFO: Running GlassFish Version: GlassFish Server Open Source Edition 3.1.2.2 (build 5)
INFO: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
INFO: Grizzly Framework 1.9.50 started in: 9ms - bound to [0.0.0.0:3700]
INFO: Grizzly Framework 1.9.50 started in: 19ms - bound to [0.0.0.0:4848]
INFO: Grizzly Framework 1.9.50 started in: 51ms - bound to [0.0.0.0:8080]
INFO: Grizzly Framework 1.9.50 started in: 33ms - bound to [0.0.0.0:8181]
INFO: Grizzly Framework 1.9.50 started in: 2ms - bound to [0.0.0.0:7676]
INFO: The Admin Console is already installed, but not yet loaded.
INFO: SEC1002: Security Manager is OFF.
INFO: SEC1010: Entering Security Startup Service
INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
INFO: SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
INFO: SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
INFO: SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
INFO: SEC1011: Security Service(s) Started Successfully
INFO: WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]
INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]
INFO: WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848]
INFO: WEB0171: Created virtual server [server]
INFO: WEB0171: Created virtual server [__asadmin]
INFO: WEB0172: Virtual server [server] loaded default web module []
INFO: Registering the Jersey servlet application, named org.netbeans.rest.application.config.ApplicationConfig, at the servlet mapping, /resources/*, with the Application class of the same name
INFO: WEB0671: Loading application [dukes-age] at [/DukesAgeService]
INFO: CORE10010: Loading application dukes-age done in 2,585 ms
INFO: GlassFish Server Open Source Edition 3.1.2.2 (5) startup time : Felix (1,388ms), startup services(3,239ms), total(4,627ms)
INFO: HV000001: Hibernate Validator 4.3.0.Final
INFO: Created EjbThreadPoolExecutor with thread-core-pool-size 16 thread-max-pool-size 32 thread-keep-alive-seconds 60 thread-queue-capacity 2147483647 allow-core-thread-timeout false
INFO: WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]
INFO: Grizzly Framework 1.9.50 started in: 3ms - bound to [0.0.0.0:8080]
INFO: Initiating Jersey application, version 'Jersey: 1.11.1 03/31/2012 06:49 PM'
INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]
INFO: Grizzly Framework 1.9.50 started in: 2ms - bound to [0.0.0.0:8181]
INFO: REST00001: Listening to REST requests at context: /management/domain
INFO: The Admin Console is already installed, but not yet loaded.
INFO: The Admin Console is starting. Please wait.
**SEVERE: Exception while deploying the app [__admingui]
SEVERE: Failed to start Bundle Id [336] State [INSTALLED] [org.glassfish.main.admingui.glassfish-osgi-console-plugin(Glassfish OSGI Console Plugin):3.1.2.1-SNAPSHOT]
com.sun.enterprise.module.ResolveError: Failed to start Bundle Id [336] State [INSTALLED] [org.glassfish.main.admingui.glassfish-osgi-console-plugin(Glassfish OSGI Console Plugin):3.1.2.1-SNAPSHOT]
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:177)
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl$2$1$1.loadClass(OSGiModuleImpl.java:344)
at com.sun.hk2.component.LazyInhabitant.loadClass(LazyInhabitant.java:124)
at com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:111)
at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:135)
at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:78)
at com.sun.enterprise.v3.server.ClassLoaderHierarchyImpl.createApplicationParentCL(ClassLoaderHierarchyImpl.java:200)
at org.glassfish.deployment.common.DeploymentContextImpl.createClassLoader(DeploymentContextImpl.java:216)
at org.glassfish.deployment.common.DeploymentContextImpl.createDeploymentClassLoader(DeploymentContextImpl.java:199)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:346)
at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375)
at com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:210)
at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:108)
Caused by: org.osgi.framework.BundleException: Cannot start bundle org.glassfish.main.admingui.glassfish-osgi-console-plugin [336] because its start level is 2, which is greater than the framework's start level of 1.
at org.apache.felix.framework.Felix.startBundle(Felix.java:1807)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:169)
... 12 more
SEVERE: Exception while deploying the app [__admingui]
INFO: The Admin Console application is loaded.
INFO: JMX005: JMXStartupService had Started JMXConnector on JMXService URL service:jmx:rmi://MW7FVCH7MQLSJX.dir.svc.accenture.com:8686/jndi/rmi://MW7FVCH7M**QLSJX.dir.svc.accenture.com:8686/jmxrmi
INFO: Registered org.glassfish.osgi.felixwebconsoleextension.GlassFishBrandingPlugin#591e1b
INFO: defaultVirtualServer = server
INFO: No default web.xml
INFO: standardContext = StandardEngine[glassfish-web].StandardHost[server].StandardContext[/osgi]
INFO: No default web.xml
INFO: standardContext = StandardEngine[glassfish-web].StandardHost[__asadmin].StandardContext[/osgi]
The output lines that begin with "SEVERE:" look pretty bad. But then again, I'm a Java EE newbie.
The ultimate caused by in the stack you posted says:
Cannot start bundle org.glassfish.main.admingui.glassfish-osgi-console-plugin [336] because its start level is 2, which is greater than the framework's start level of 1.
You may want to do some research on the start level of the framework. Check out:
How is the OSGi bundle start level defined? or https://issues.apache.org/jira/browse/FELIX-2942.
There is also a GlassFish JIRA issue on this with a workaround:
http://java.net/jira/browse/GLASSFISH-18880