org.glassfish.osgijavaeebase.DeploymentException: Deployment of com.mybundle.ejb [386] failed because of following reason: Failed while deploying bundle com.mybundle.ejb [386] : java.lang.RuntimeException: Failed to deploy bundle [ com.mybundle.ejb [386] ], root cause: Exception while loading the app

Oracle Community | cinhtau Guest | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Re: HybridApplication WeldBootstrap Error

    Oracle Community | 5 years ago | cinhtau Guest
    org.glassfish.osgijavaeebase.DeploymentException: Deployment of com.mybundle.ejb [386] failed because of following reason: Failed while deploying bundle com.mybundle.ejb [386] : java.lang.RuntimeException: Failed to deploy bundle [ com.mybundle.ejb [386] ], root cause: Exception while loading the app

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class org.jboss.weld.bootstrap.WeldBootstrap

      at org.glassfish.weld.WeldDeployer.load()
    2. Embedded GlassFish Web
      WeldDeployer.load
      1. org.glassfish.weld.WeldDeployer.load(WeldDeployer.java:345)
      2. org.glassfish.weld.WeldDeployer.load(WeldDeployer.java:99)
      2 frames
    3. Private APIs of Glassfish
      ApplicationInfo.load
      1. org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186)
      2. org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:257)
      2 frames
    4. Kernel Classes
      ApplicationLifecycle.deploy
      1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
      2. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
      2 frames
    5. Embedded GlassFish Web
      JavaEEExtender$HybridBundleTrackerCustomizer$1.call
      1. org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
      2. org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
      3. org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
      4. org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
      5. org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)
      6. org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
      7. org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)
      8. org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)
      8 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      5. java.lang.Thread.run(Thread.java:662)
      5 frames