java.lang.NoClassDefFoundError: com/sun/enterprise/module/bootstrap/BootException

Coderanch | Super Tigre | 3 years ago
  1. 0

    Hello, I am new to Java (I use C#), and simply can not run an easy Web App

    Coderanch | 3 years ago | Super Tigre
    java.lang.NoClassDefFoundError: com/sun/enterprise/module/bootstrap/BootException
  2. 0

    [JDK-8020071] Unable to start Glassfish 3.1.1. with JDK 8 - Java Bug System

    java.net | 11 months ago
    java.lang.NoClassDefFoundError: com/sun/enterprise/module/bootstrap/BootException
  3. 0

    FULL PRODUCT VERSION : C:\Users\andrii_rodionov>java -version java version " 1.8.0-ea " Java(TM) SE Runtime Environment (build 1.8.0-ea-b94) Java HotSpot(TM) Client VM (build 25.0-b36, mixed mode, sharing) C:\Users\andrii_rodionov>c:\Servers\glassfish3\bin\asadmin version Version = GlassFish Server Open Source Edition 3.1.1 (build 12) Command version executed successfully. A DESCRIPTION OF THE PROBLEM : Unable to start Glassfish 3.1.1. with JDK 8 Early Access STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1. Modify the AS_JAVA variable in the GlassFish config file ?asenv.conf? 2. Start glassfish: C:\Users\andrii_rodionov>c:\Servers\glassfish3\bin\asadmin start-domain domain1 EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Glassfish started ACTUAL - Command start-domain failed ERROR MESSAGES/STACK TRACES THAT OCCUR : C:\Users\andrii_rodionov>c:\Servers\glassfish3\bin\asadmin start-domain domain1 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: Bundle jaxb-api [2]: Error starting file:/C:/Servers/glassfish3/glassfish/modules/endorsed/jaxb-api-osgi.jar (org.osg i.framework.BundleException: Unresolved constraint in bundle jaxb-api [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=javax.activation)) ERROR: Bundle org.glassfish.metro.webservices-api-osgi [3]: Error starting file:/C:/Servers/glassfish3/glassfish/modules/end orsed/webservices-api-osgi.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.metro.webs ervices-api-osgi [3]: Unable to resolve 3.0: missing requirement [3.0] package; (&(package=javax.xml.bind)(version>=2.2.0)) [caused by: Unable to resolve 2.0: missing requirement [2.0] package; (package=javax.activation)]) ERROR: Bundle org.glassfish.core.glassfish [103]: Error starting file:/C:/Servers/glassfish3/glassfish/modules/glassfish.jar (org.osgi.framework.BundleException: Activator start error in bundle org.glassfish.core.glassfish [103].) ERROR: Bundle com.sun.enterprise.osgi-adapter [199]: Error starting file:/C:/Servers/glassfish3/glassfish/modules/osgi-adapt er.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle com.sun.enterprise.osgi-adapter [199]: Unable to resolve 199.0: missing requirement [199.0] package; (&(package=com.sun.enterprise.module)(version>=1.1.0)) [caused by: Unab le to resolve 122.0: missing requirement [122.0] package; (&(package=org.jvnet.hk2.config)(version>=1.1.0)) [caused by: Unab le to resolve 38.0: missing requirement [38.0] package; (package=javax.management)]]) org.osgi.framework.BundleException: Unresolved constraint in bundle jaxb-api [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=javax.activation) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443) at org.apache.felix.framework.Felix.startBundle(Felix.java:1727) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:724) org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.metro.webservices-api-osgi [3]: Unable to resolve 3.0: missing requirement [3.0] package; (&(package=javax.xml.bind)(version>=2.2.0)) [caused by: Unable to resolve 2. 0: missing requirement [2.0] package; (package=javax.activation)] at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443) at org.apache.felix.framework.Felix.startBundle(Felix.java:1727) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) 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:629) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1835) at org.apache.felix.framework.Felix.startBundle(Felix.java:1752) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.module.bootstrap.BootException not found by org.glassfish.co re.glassfish [103] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787) at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 7 more org.osgi.framework.BundleException: Unresolved constraint in bundle com.sun.enterprise.osgi-adapter [199]: Unable to resolve 199.0: missing requirement [199.0] package; (&(package=com.sun.enterprise.module)(version>=1.1.0)) [caused by: Unable to re solve 122.0: missing requirement [122.0] package; (&(package=org.jvnet.hk2.config)(version>=1.1.0)) [caused by: Unable to re solve 38.0: missing requirement [38.0] package; (package=javax.management)]] at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443) at org.apache.felix.framework.Felix.startBundle(Felix.java:1727) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:724) 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:491) 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 ava ilable at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:16 4) 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(OSGiGlassFishRuntimeB uilder.java:202) at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:16 2) ... 9 more Error stopping framework: java.lang.NullPointerException java.lang.NullPointerException at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher$1.run(GlassFishMain.java:203) Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0 Command start-domain failed. REPRODUCIBILITY : This bug can be reproduced always.

    JDK Bug System | 3 years ago | Webbug Group
    java.lang.NoClassDefFoundError: com/sun/enterprise/module/bootstrap/BootException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FULL PRODUCT VERSION : C:\Users\andrii_rodionov>java -version java version " 1.8.0-ea " Java(TM) SE Runtime Environment (build 1.8.0-ea-b94) Java HotSpot(TM) Client VM (build 25.0-b36, mixed mode, sharing) C:\Users\andrii_rodionov>c:\Servers\glassfish3\bin\asadmin version Version = GlassFish Server Open Source Edition 3.1.1 (build 12) Command version executed successfully. A DESCRIPTION OF THE PROBLEM : Unable to start Glassfish 3.1.1. with JDK 8 Early Access STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1. Modify the AS_JAVA variable in the GlassFish config file ?asenv.conf? 2. Start glassfish: C:\Users\andrii_rodionov>c:\Servers\glassfish3\bin\asadmin start-domain domain1 EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Glassfish started ACTUAL - Command start-domain failed ERROR MESSAGES/STACK TRACES THAT OCCUR : C:\Users\andrii_rodionov>c:\Servers\glassfish3\bin\asadmin start-domain domain1 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: Bundle jaxb-api [2]: Error starting file:/C:/Servers/glassfish3/glassfish/modules/endorsed/jaxb-api-osgi.jar (org.osg i.framework.BundleException: Unresolved constraint in bundle jaxb-api [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=javax.activation)) ERROR: Bundle org.glassfish.metro.webservices-api-osgi [3]: Error starting file:/C:/Servers/glassfish3/glassfish/modules/end orsed/webservices-api-osgi.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.metro.webs ervices-api-osgi [3]: Unable to resolve 3.0: missing requirement [3.0] package; (&(package=javax.xml.bind)(version>=2.2.0)) [caused by: Unable to resolve 2.0: missing requirement [2.0] package; (package=javax.activation)]) ERROR: Bundle org.glassfish.core.glassfish [103]: Error starting file:/C:/Servers/glassfish3/glassfish/modules/glassfish.jar (org.osgi.framework.BundleException: Activator start error in bundle org.glassfish.core.glassfish [103].) ERROR: Bundle com.sun.enterprise.osgi-adapter [199]: Error starting file:/C:/Servers/glassfish3/glassfish/modules/osgi-adapt er.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle com.sun.enterprise.osgi-adapter [199]: Unable to resolve 199.0: missing requirement [199.0] package; (&(package=com.sun.enterprise.module)(version>=1.1.0)) [caused by: Unab le to resolve 122.0: missing requirement [122.0] package; (&(package=org.jvnet.hk2.config)(version>=1.1.0)) [caused by: Unab le to resolve 38.0: missing requirement [38.0] package; (package=javax.management)]]) org.osgi.framework.BundleException: Unresolved constraint in bundle jaxb-api [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=javax.activation) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443) at org.apache.felix.framework.Felix.startBundle(Felix.java:1727) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:724) org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.metro.webservices-api-osgi [3]: Unable to resolve 3.0: missing requirement [3.0] package; (&(package=javax.xml.bind)(version>=2.2.0)) [caused by: Unable to resolve 2. 0: missing requirement [2.0] package; (package=javax.activation)] at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443) at org.apache.felix.framework.Felix.startBundle(Felix.java:1727) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) 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:629) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1835) at org.apache.felix.framework.Felix.startBundle(Felix.java:1752) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.module.bootstrap.BootException not found by org.glassfish.co re.glassfish [103] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787) at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 7 more org.osgi.framework.BundleException: Unresolved constraint in bundle com.sun.enterprise.osgi-adapter [199]: Unable to resolve 199.0: missing requirement [199.0] package; (&(package=com.sun.enterprise.module)(version>=1.1.0)) [caused by: Unable to re solve 122.0: missing requirement [122.0] package; (&(package=org.jvnet.hk2.config)(version>=1.1.0)) [caused by: Unable to re solve 38.0: missing requirement [38.0] package; (package=javax.management)]] at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443) at org.apache.felix.framework.Felix.startBundle(Felix.java:1727) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:724) 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:491) 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 ava ilable at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:16 4) 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(OSGiGlassFishRuntimeB uilder.java:202) at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:16 2) ... 9 more Error stopping framework: java.lang.NullPointerException java.lang.NullPointerException at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher$1.run(GlassFishMain.java:203) Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0 Command start-domain failed. REPRODUCIBILITY : This bug can be reproduced always.

    JDK Bug System | 3 years ago | Webbug Group
    java.lang.NoClassDefFoundError: com/sun/enterprise/module/bootstrap/BootException
  6. 0

    unable to stop child node with minicloud

    GitHub | 5 years ago | edaubert
    java.lang.NoClassDefFoundError: com/twitter/util/Duration

  1. poroszd 1 times, last 1 month ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.sun.enterprise.module.bootstrap.BootException not found by org.glassfish.core.glassfish [149]

    at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation()
  2. Apache Felix Framework
    ModuleImpl$ModuleClassLoader.loadClass
    1. org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
    2. org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
    3. org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
    3 frames
  3. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    1 frame
  4. Appserver Core
    GlassFishMainActivator.start
    1. com.sun.enterprise.glassfish.bootstrap.osgi.GlassFishMainActivator.start(GlassFishMainActivator.java:103)
    1 frame
  5. Apache Felix Framework
    StartLevelImpl.run
    1. org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
    2. org.apache.felix.framework.Felix.activateBundle(Felix.java:1835)
    3. org.apache.felix.framework.Felix.startBundle(Felix.java:1752)
    4. org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
    5. org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    5 frames
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:722)
    1 frame