Skip to Main Content

no glassfish runtime available with jdk8

k.RamuFeb 18 2016 — edited Feb 18 2016

'm trying to use glassfish-3.1.2-windows.exe with java 1.8v on windows 7. But at the time of starting server .

I'm getting errors like this in cmd, Please help me in this matter, Whether Glassfish3.1.2 does supports jdk1.8 or not?



C:\glassfish3\glassfish\lib>asadmin-start-domain.bat

Waiting for domain1 to start .Error starting domain domain1.

The server exited prematurely with exit code 1.

Before it died, it produced the following output:

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

ework.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.h

ooks.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.servic

e.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.)

ERROR: Bundle jaxb-api [2] Error starting file:/C:/glassfish3/glassfish/modules/endorsed/jaxb-api-osgi.jar (org.osgi.framework.BundleException:

Unresolved constraint in bundle jaxb-api [2]: Unable to resolve 2.0: missing requirement [2.0] osgi.wiring.package; (osgi.wiring.package=javax

.activation))

ERROR: Bundle org.glassfish.metro.webservices-api-osgi [3] Error starting file:/C:/glassfish3/glassfish/modules/endorsed/webservices-api-osgi.j

ar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.metro.webservices-api-osgi [3]: Unable to resolve 3.0: mi

ssing requirement [3.0] osgi.wiring.package; (&(osgi.wiring.package=javax.xml.bind)(version>=2.2.0)) [caused by: Unable to resolve 2.0: missing

requirement [2.0] osgi.wiring.package; (osgi.wiring.package=javax.activation)])

ERROR: Bundle org.glassfish.main.core.glassfish [101] Error starting file:/C:/glassfish3/glassfish/modules/glassfish.jar (org.osgi.framework.Bu

ndleException: Activator start error in bundle org.glassfish.main.core.glassfish [101].)

ERROR: Bundle org.glassfish.hk2.osgi-adapter [203] Error starting file:/C:/glassfish3/glassfish/modules/osgi-adapter.jar (org.osgi.framework.Bu

ndleException: Unresolved constraint in bundle org.glassfish.hk2.osgi-adapter [203]: Unable to resolve 203.0: missing requirement [203.0] osgi.

wiring.package; (&(osgi.wiring.package=com.sun.enterprise.module)(version>=1.1.0)) [caused by: Unable to resolve 121.0: missing requirement [12

1.0] osgi.wiring.package; (&(osgi.wiring.package=org.jvnet.hk2.config)(version>=1.1.0)) [caused by: Unable to resolve 37.0: missing requirement

[37.0] osgi.wiring.package; (osgi.wiring.package=javax.management)]])

org.osgi.framework.BundleException: Exported package names cannot be zero length.

        at org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeExportClauses(ManifestParser.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(OSGiFrameworkLauncher.java:77)

        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.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)

Feb 17, 2016 7:12:39 PM BundleProvisioner install

WARNING: Failed to install file:/C:/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.java:446)

        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:208)

        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.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:653)

        at java.util.ArrayList.get(ArrayList.java:429)

        at org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:401)

        at org.apache.felix.framework.Felix.installBundle(Felix.java:2751)

        ... 13 more

Feb 17, 2016 7:12:39 PM BundleProvisioner install

WARNING: Failed to install file:/C:/glassfish3/glassfish/modules/glassfish-corba-omgapi.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.java:446)

        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:208)

        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.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:653)

        at java.util.ArrayList.get(ArrayList.java:429)

        at org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:401)

        at org.apache.felix.framework.Felix.installBundle(Felix.java:2751)

        ... 13 more

Feb 17, 2016 7:12:39 PM BundleProvisioner install

WARNING: Failed to install file:/C:/glassfish3/glassfish/modules/glassfish-extra-jre-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.java:446)

        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:208)

        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.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:653)

        at java.util.ArrayList.get(ArrayList.java:429)

        at org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:401)

        at org.apache.felix.framework.Felix.installBundle(Felix.java:2751)

        ... 13 more

Feb 17, 2016 7:12:39 PM BundleProvisioner install

WARNING: Failed to install file:/C:/glassfish3/glassfish/modules/glassfish-oracle-jdbc-driver-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.java:446)

        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:208)

        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.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:653)

        at java.util.ArrayList.get(ArrayList.java:429)

        at org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:401)

        at org.apache.felix.framework.Felix.installBundle(Felix.java:2751)

        ... 13 more

Feb 17, 2016 7:12:39 PM BundleProvisioner install

WARNING: Failed to install file:/C:/glassfish3/glassfish/modules/javax.transaction.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.java:446)

        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:208)

        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.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:653)

        at java.util.ArrayList.get(ArrayList.java:429)

        at org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:401)

        at org.apache.felix.framework.Felix.installBundle(Felix.java:2751)

        ... 13 more

Feb 17, 2016 7:12:39 PM BundleProvisioner install

WARNING: Failed to install file:/C:/glassfish3/glassfish/modules/webservices-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.java:446)

        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:208)

        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.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:653)

        at java.util.ArrayList.get(ArrayList.java:429)

        at org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:401)

        at org.apache.felix.framework.Felix.installBundle(Felix.java:2751)

        ... 13 more

org.osgi.framework.BundleException: Unresolved constraint in bundle jaxb-api [2]: Unable to resolve 2.0: missing requirement [2.0] osgi.wiring.

package; (osgi.wiring.package=javax.activation)

        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)

        at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)

        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)

        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)

        at java.lang.Thread.run(Thread.java:745)

org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.metro.webservices-api-osgi [3]: Unable to resolve 3.0: missin

g requirement [3.0] osgi.wiring.package; (&(osgi.wiring.package=javax.xml.bind)(version>=2.2.0)) [caused by: Unable to resolve 2.0: missing req

uirement [2.0] osgi.wiring.package; (osgi.wiring.package=javax.activation)]

        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)

        at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)

        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)

        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)

        at java.lang.Thread.run(Thread.java:745)

java.lang.NoClassDefFoundError: org/osgi/framework/BundleActivator

        at java.lang.ClassLoader.defineClass1(Native Method)

        at java.lang.ClassLoader.defineClass(ClassLoader.java:760)

Comments
Post Details
Added on Feb 18 2016
0 comments
4,498 views