users@glassfish.java.net

[gf-users] Start-up Exception

From: AlexStuart <shaoshuai.stuart_at_gmail.com>
Date: Sun, 27 Jul 2014 13:55:50 +0800

I am a fresher to glassfish. When i try to configure glassfish (version
4.0) in MyEclipse2014
, following the instructions of help in MyEclipse, I still got an
start-up exceptions below:

Found populator: com.sun.enterprise.v3.server.GFDomainXml
Exception in thread "main"
java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at
com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
     at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)
Caused by: org.glassfish.embeddable.GlassFishException:
com.sun.enterprise.module.bootstrap.BootException: Unable to load service

     at
com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime.newGlassFish(EmbeddedOSGiGlassFishRuntime.java:101)

     at
com.sun.enterprise.glassfish.bootstrap.GlassFishRuntimeDecorator.newGlassFish(GlassFishRuntimeDecorator.java:68)

     at
com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntime.newGlassFish(OSGiGlassFishRuntime.java:91)

     at
com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:113)
     ... 6 more
Caused by: com.sun.enterprise.module.bootstrap.BootException: Unable to
load service
     at
com.sun.enterprise.module.bootstrap.Main.findStartupService(Main.java:228)
     at
com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime.newGlassFish(EmbeddedOSGiGlassFishRuntime.java:96)
     ... 9 more
Caused by: A MultiException has 5 exceptions. They are:
1. org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no
object available for injection at
Injectee(requiredType=Server,parent=SystemTasksImpl,qualifiers={_at_javax.inject.Named(value=default-instance-name)}),position=-1,optional=false,self=false,unqualified=null,1787545049)
2. java.lang.IllegalArgumentException: While attempting to resolve the
dependencies of com.sun.enterprise.v3.server.SystemTasksImpl errors were
found
3. java.lang.IllegalStateException: Unable to perform operation: resolve
on com.sun.enterprise.v3.server.SystemTasksImpl
4. java.lang.IllegalArgumentException: While attempting to resolve the
dependencies of com.sun.enterprise.v3.server.AppServerStartup errors
were found
5. java.lang.IllegalStateException: Unable to perform operation: resolve
on com.sun.enterprise.v3.server.AppServerStartup
     at org.jvnet.hk2.internal.Collector.throwIfErrors(Collector.java:84)
     at
org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:229)
     at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:311)
     at
org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:448)

     at
org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:118)

     at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2204)

     at
org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceLocatorImpl.java:608)

     at
org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:590)

     at
com.sun.enterprise.module.bootstrap.Main.findStartupService(Main.java:221)

     ... 10 more
Caused by: org.glassfish.hk2.api.UnsatisfiedDependencyException: There
was no object available for injection at
Injectee(requiredType=Server,parent=SystemTasksImpl,qualifiers={_at_javax.inject.Named(value=default-instance-name)}),position=-1,optional=false,self=false,unqualified=null,1787545049)
     at
org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:74)
     at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:191)
     at
org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:214)
     at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:311)
     at
org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:448)
     at
org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:163)
     at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2204)
     at
org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:549)

     at
org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:77)

     at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:191)

     at
org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:214)

     ... 17 more
Completed shutdown of GlassFish runtime
We are in non-embedded mode, so org.glassfish.main.core.glassfish [240]
has nothing to do.

Could anyone help me out of these trouble, I've been trying for a few
times, but ..
Thanks in advance.

          Alexander Stuart
            2014/07/17