For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 5 replies, 3 voices, and was last updated 14 years, 9 months ago by
support-tony.
-
AuthorPosts
-
Alin DanMemberLaunching GlassFish on Felix platform
Exception in thread “main”
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
Caused by: org.jvnet.hk2.component.ComponentException: Failed to create a habitatat com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:169)
at com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:425)
at org.jvnet.hk2.osgiadapter.HK2Main.createHabitat(HK2Main.java:96)
at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime.newGlassFish(EmbeddedOSGiGlassFishRuntime.java:89)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:113)
… 6 more
Caused by: java.lang.NullPointerException
at com.sun.hk2.component.ExistingSingletonInhabitant.<init>(ExistingSingletonInhabitant.java:57)
at org.glassfish.config.support.DomainXml.decorate(DomainXml.java:148)
at org.glassfish.config.support.DomainXml.run(DomainXml.java:142)at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.populateConfig(AbstractModulesRegistryImpl.java:176)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:158)
… 10 more
Completed shutdown of GlassFish runtimeNovember 17, 2011 at 11:46 pm #321204alindan ,
Sorry that you are seeing this issue with MyEclipse.
Can you answer some more questions for us to investigate further ?
1) Can you share your Operating System and version details ? Also share your Build ID for MyEclipse from Help > MyEclipse Enterprise Edition > Build ID.
2) Can you please elaborate on what exactly is ‘Felix platform’ and how did you set it up with MyEclipse ?
3) Which version of GlassFish are you working with ? Can you clarify if the GlassFish is starting perfectly outside the MyEclipse ?
November 18, 2011 at 8:01 am #321222
Alin DanMember1. I am running Windows 7 64 bits, and MyEclispe 10.0-20111028. I have the Glassfish support for MyEclipse installed, same version 10.0.
2. Felix is the OSGi module management, integral part of the Glassfish. It is responsible for many things, including the bootstrap mechanism for the Glassfish sever.
3. I am using Glassfish 3.1 (open source version). It stars correctly using the asadmin console, and also bootstrap from Netbeans 7.1
I was trying to find some additional logs to point me into the direction of what is wrong, but I had no success. I have also tried different versions of the java SDK, with the same result.
Many thanks for your help.
November 21, 2011 at 4:08 am #321267
support-tonyKeymasteralinden,
Please check your server configuration in MyEclipse. I was able to replicate your problem by changing the server name to something other than the default of “server”. If it has changed, please reset that field to “server” and try again.
It’s possible that you’ve created more server instances with glassfish (I haven’t tried to do this), in which case, you may have the server name wrong in the configuration.
Please let us know if this works for you.
November 21, 2011 at 11:02 am #321278
Alin DanMemberThank you for your suggestion, it worked. I did change the name of the server back to Server and it works now.
November 21, 2011 at 2:46 pm #321287
support-tonyKeymasteralindan,
I’m glad it’s working for you now and thanks for letting us know.
-
AuthorPosts

