Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-6226

NoClassDefFoundError when deploying DonateEAR.ear to G 3.0-beta-1 server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 3.0-beta-1
    • None
    • Security Level: public (Regular issues)
    • None

    Description

      Recurring steps refer to GERONIMO-6225, just modify the EAR file to remove the demos folder from the ear, and deploy it to G server, you will see an exception on the admin console like this:

      The application was not deployed.
      Could not fully load class: Main
      due to:donate.ejb.interfaces.DonateBeanRemote
      in classLoader:
      org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@45a145a1
      java.lang.NoClassDefFoundError: Could not fully load class: Main
      due to:donate.ejb.interfaces.DonateBeanRemote
      in classLoader:
      org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@45a145a1
      at org.apache.xbean.finder.ClassFinder.(ClassFinder.java:136)
      at org.apache.geronimo.client.builder.AppClientModuleBuilder.createAppClientClassFinder(AppClientModuleBuilder.java:946)
      at org.apache.geronimo.client.builder.AppClientModuleBuilder.addGBeans(AppClientModuleBuilder.java:786)
      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:763)
      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)
      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:140)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      at java.lang.reflect.Method.invoke(Method.java:611)
      at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)
      at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
      at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
      at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
      at java.lang.Thread.run(Thread.java:736)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xiaming Ming Xia
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: