Error in startup of glassfish in eclipse - asadmin path not found, bootstrap and no domain

1

After a lot of unanswered search, I come here to ask for help. I use Eclipse Kepler and glashfish 3.1. What happens is that when I start the glassfish server, usually or by debugging, the server returns the error "Launch process failed with exit code 1".

Server Log:

    Listening for transport dt_socket at address: 9009
    Launching GlassFish on Felix platform
    ERROR: Error parsing system bundle export statement: org.osgi.framework;         version=1.6.0, org.osgi.framework.launch; version=1.0.0, org.osgi.framework.wiring;         version=1.0.0, org.osgi.framework.startlevel; version=1.0.0,         org.osgi.framework.hooks.bundle; version=1.0.0, org.osgi.framework.hooks.resolver;         version=1.0.0, org.osgi.framework.hooks.service; version=1.1.0,         org.osgi.framework.hooks.weaving; version=1.0.0, org.osgi.service.packageadmin;         version=1.2.0, org.osgi.service.startlevel; version=1.1.0, org.osgi.service.url;         version=1.0.0, org.osgi.util.tracker; version=1.5.0, ,         org.glassfish.embeddable;org.glassfish.embeddable.spi;version=3.1.1         (org.osgi.framework.BundleException: Exported package names cannot be zero length.)
    org.osgi.framework.BundleException: Exported package names cannot be zero length.
        at         org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeExportClauses(Manife        stParser.java:729)
        at org.apache.felix.framework.util.manifestparser.ManifestParser.<init>        (ManifestParser.java:191)
        at org.apache.felix.framework.ExtensionManager.<init>        (ExtensionManager.java:220)
        at org.apache.felix.framework.Felix.<init>(Felix.java:374)
        at         org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
        at         com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher.launchOSGiFrameWork(OSGiF        rameworkLauncher.java:77)
        at         com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFish        RuntimeBuilder.java:128)
        at         org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:157)
        at         org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:110)
        at         com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:112        )
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at                 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at         com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
    mai 27, 2014 1:26:08 PM BundleProvisioner install
    ADVERT�NCIA: Failed to install         file:/C:/Users/Luccas/Documents/Servidor/glassfish3/glassfish/modules/flashlight-extra-jdk-        packages.jar
    org.osgi.framework.BundleException: Could not create bundle object.
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2785)
        at         org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
        at         com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.install(BundleProvisioner.jav        a:446)
        at         com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisio        ner.java:208)
        at         com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFish        RuntimeBuilder.java:139)
        at         org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:157)
        at         org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:110)
        at         com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:112        )
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at         com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
    Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(ArrayList.java:638)
        at java.util.ArrayList.get(ArrayList.java:414)
        at         org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:401)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2751)
        ... 13 more

Any help is welcome

Edit:

It seems that when the glassfish was installed the domain had not been created. How to fix the problem - link

Then began to accuse that the boostrap was missing, a simple error, check Server Runtime More information and how to resolve (also in English) - link

    
asked by anonymous 27.05.2014 / 18:36

1 answer

1

The AP solved the question:

The problem .

The solution .

Check the folder where Glassfish is the same one configured in Eclipse.

  

Preferences > Server > Runtime Environments

    
23.05.2017 / 14:37