GlassFish V3.1.2 Configure Problem

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of support-swapna support-swapna 5 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #325911 Reply
    Profile photo of gto168

    Hello everybody, I want to project runs by GlassFish V3.1.2 . When I will configure server with GlassFish V3.1.2 ,but Myeclipse can’t “Apply”

    Please ,How can I do ?

    MyEclipse 10.1
    GlassFish V3.1.2

    #325929 Reply
    Profile photo of support-swapna


    Sorry that you are seeing this issue.

    Can you please recheck the path for the domain directory? If the path is incorrect the apply button greys out.

    Attached is the screenshot for the GlassFish connector for your reference.

    You must be logged in to view attached files.
    #325988 Reply
    Profile photo of gto168

    Thinks! ,I can apply GlassFish now, but when I start to run glassfish , it will be exception ….. How can I do ?

    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(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(
    at com.sun.enterprise.glassfish.bootstrap.ASMain.main(
    Caused by: org.jvnet.hk2.component.ComponentException: Failed to create a habitat

    at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(
    at com.sun.enterprise.module.bootstrap.Main.createHabitat(
    at org.jvnet.hk2.osgiadapter.HK2Main.createHabitat(

    at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime.newGlassFish(
    at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(
    … 6 more
    Caused by: java.lang.NullPointerException
    at com.sun.hk2.component.ExistingSingletonInhabitant.<init>(
    at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.populateConfig(
    at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(
    … 10 more
    Completed shutdown of GlassFish runtime

    #325999 Reply
    Profile photo of support-swapna

    gto168 ,

    Please check your server configuration in MyEclipse. The server name has to be by default “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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: GlassFish V3.1.2 Configure Problem