facebook

Cannot start Glassfish from MyEclipse 10.

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #321181 Reply

    Alin Dan
    Member

    Launching 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 habitat

    at 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 runtime

    #321204

    support-swapna
    Participant

    alindan ,

    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 ?

    #321222

    Alin Dan
    Member

    1. 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.

    #321267

    support-tony
    Keymaster

    alinden,

    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.

    #321278

    Alin Dan
    Member

    Thank you for your suggestion, it worked. I did change the name of the server back to Server and it works now.

    #321287

    support-tony
    Keymaster

    alindan,

    I’m glad it’s working for you now and thanks for letting us know.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Cannot start Glassfish from MyEclipse 10.

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in