Skip to main content

Unable to start glassfish

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
policier
Offline
Joined: 2014-02-21

Hi,
I am a newbie in glassfish.

After I had installed glassfish I got the followed error while starting glassfish

Feb 21, 2014 7:50:44 PM BundleProvisioner install
WARNING: Failed to install file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-jta.jar
org.osgi.framework.BundleException: Unable to cache bundle: file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-jta.jar
at org.apache.felix.framework.Felix.installBundle(Felix.java:2703) at org.apache.felix.framework.BundleContextImpl.installBundle(BundleCont extImpl.java:165)
at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.install(BundleProvisioner.java:446)
at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.install Bundles(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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.io.IOException: Unable to create archive directory.
at org.apache.felix.framework.cache.BundleArchive.initialize(BundleArchive.java:786)
at org.apache.felix.framework.cache.BundleArchive.(BundleArchive.java:150)
at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
at org.apache.felix.framework.Felix.installBundle(Felix.java:2699)
... 13 more

Feb 21, 2014 7:50:44 PM BundleProvisioner install
WARNING: Failed to install file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-ee-resources.jar
org.osgi.framework.BundleException: Unable to cache bundle: file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-ee-resources.jar
at org.apache.felix.framework.Felix.installBundle(Felix.java:2703)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.io.IOException: Unable to create archive directory.
at org.apache.felix.framework.cache.BundleArchive.initialize(BundleArchive.java:786)
at org.apache.felix.framework.cache.BundleArchive.(BundleArchive.java:150)
at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
at org.apache.felix.framework.Felix.installBundle(Felix.java:2699)
... 13 more

Feb 21, 2014 7:50:44 PM BundleProvisioner install
WARNING: Failed to install file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-cdi.jar
org.osgi.framework.BundleException: Unable to cache bundle: file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-cdi.jar
at org.apache.felix.framework.Felix.installBundle(Felix.java:2703)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.io.IOException: Unable to create archive directory.
at org.apache.felix.framework.cache.BundleArchive.initialize(BundleArchive.java:786)
at org.apache.felix.framework.cache.BundleArchive.(BundleArchive.java:150)
at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
at org.apache.felix.framework.Felix.installBundle(Felix.java:2699)
... 13 more

Feb 21, 2014 7:50:44 PM BundleProvisioner startBundles
WARNING: Can not start bundle file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-web-container.jar because it is not contained in the list of installe d bundles
Feb 21, 2014 7:50:44 PM BundleProvisioner startBundles
WARNING: Can not start bundle file:/home/tools/glassfish3/glassfish/modules/autostart/org.apache.felix.eventadmin.jar because it is not contained in the list of installed bundles
Feb 21, 2014 7:50:44 PM BundleProvisioner startBundles
WARNING: Can not start bundle file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-jpa.jar because it is not contained in the list of instal led bundles
Feb 21, 2014 7:50:44 PM BundleProvisioner startBundles
WARNING: Can not start bundle file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-jdbc.jar because it is not contained in the list of insta lled bundles
Feb 21, 2014 7:50:44 PM BundleProvisioner startBundles
WARNING: Can not start bundle file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-ejb-container.jar because it is not contained in the list of installe d bundles
Feb 21, 2014 7:50:44 PM BundleProvisioner startBundles
WARNING: Can not start bundle file:/home/tools/glassfish3/glassfish/modules/autostart/org.apache.felix.scr.jar because it is not contained in the li st of instal led bundles
Feb 21, 2014 7:50:44 PM BundleProvisioner startBundles
WARNING: Can not start bundle file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-http.jar because it is not contained in the list of insta lled bundles
Feb 21, 2014 7:50:44 PM BundleProvisioner startBundles
WARNING: Can not start bundle file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-javaee-base.jar because it is not contained in the list o f installed bundles
Feb 21, 2014 7:50:44 PM BundleProvisioner startBundles
WARNING: Can not start bundle file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-jta.jar because it is not contained in the list of instal led bundles
Feb 21, 2014 7:50:44 PM BundleProvisioner startBundles
WARNING: Can not start bundle file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-ee-resources.jar because it is not contained in the list of installed bundles
Feb 21, 2014 7:50:44 PM BundleProvisioner startBundles
WARNING: Can not start bundle file:/home/tools/glassfish3/glassfish/modules/autostart/osgi-cdi.jar because it is not contained in the list of instal led bundles
org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.hk2.osgi-adapter [112]: Unable to resolve 112.0: missing requireme nt [112.0] o sgi.wiring.package; (&(osgi.wiring.package=com.sun.enterprise.module)(version>=1 .1.0))
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) ls
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
at java.lang.Thread.run(Thread.java:724)
java.lang.NoClassDefFoundError: com/sun/enterprise/module/bootstrap/BootException
at com.sun.enterprise.glassfish.bootstrap.osgi.GlassFishMainActivator.start(GlassFishMainActivator.java:103)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:641)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
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:724)
Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.module.bootstrap.BootException not found by org.glassfish.main.core.glassfish [126]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.glassfish.embeddable.GlassFishException: org.glassfish.embeddable.GlassFishException: No GlassFishRuntime available
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:164)
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)
... 6 more
Caused by: org.glassfish.embeddable.GlassFishException: No GlassFishRuntime available
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.getGlassFishRuntime(OSGiGlassFishRuntimeBuilder.java:202)
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:162)
... 9 more
Error stopping framework: java.lang.NullPointerException
java.lang.NullPointerException
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher$1.run(GlassFishMain.java:203)

Command start-domain failed.

I hope someone help me

Thank you