EasyBeans
  1. EasyBeans
  2. EZB-162

NoClassDefFoundError when using an EjbJar that uses a class provided in a RAR

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EasyBeans 1.0 M6
    • Fix Version/s: EasyBeans 1.0 RC1
    • Component/s: Core
    • Labels:
      None
    • Environment:
      JOnAS 4.8.5 out of the box
    • Global Rank:
      166

      Description

      A NoClassDefFound occurs when using my application.

      Here is the structure of my ear:

      StringApp.ear
      +--StringAsker.jar (the EjbJar with an MDB)
      +--StringGiver.rar (the Rar that emit messages to the MDB)

        Activity

        Hide
        Guillaume Sauthier
        added a comment -

        2007-06-18 17:51:12,502 : JOnASDeployer.deployEAR : Deploying EARDeployableImpl[archive=/tmp/EasyBeans-Deployer-sauthieg/EAR/StringApp.ear]
        2007-06-18 17:51:12,590 : Rar.processRar : Starting deployment of /tmp/EasyBeans-Deployer-sauthieg/EAR/StringApp.ear/StringGiver.rar
        2007-06-18 17:51:12,599 : Rar.processRar : /tmp/EasyBeans-Deployer-sauthieg/EAR/StringApp.ear/StringGiver.rar available
        2007-06-18 17:51:12,888 : ENCManager.getInterceptorClass : Detecting JOnAS: using JOnAS ENC for the naming.
        2007-06-18 17:51:13,195 : JoramAdapter.createUser : - User [anonymous] has been created.
        2007-06-18 17:51:13,284 : JContainer3.start : Container started in : 568 ms
        2007-06-18 17:51:13,327 : JOnASDeployer.deployEAR : 'EARDeployableImpl[archive=/tmp/EasyBeans-Deployer-sauthieg/EAR/StringApp.ear]' EAR Deployable is now deployed
        Sending...
        Message received; asking a string...
        Exception in thread "WorkThread-1/0" java.lang.NoClassDefFoundError: test/Giver
        at test.Asker.original$EasyBeans$onMessage(Asker.java:16)
        at org.objectweb.easybeans_gen.invocationcontext.test.Asker.EasyBeansInvocationContextImplonMessageAROUNDINVOKE-258474723.proceed(Unknown Source)
        at org.objectweb.easybeans.transaction.interceptors.CMTRequiredTransactionInterceptor.intercept(CMTRequiredTransactionInterceptor.java:110)
        at org.objectweb.easybeans_gen.invocationcontext.test.Asker.EasyBeansInvocationContextImplonMessageAROUNDINVOKE-258474723.proceed(Unknown Source)
        at org.objectweb.easybeans.naming.interceptors.JOnASENCInterceptor.intercept(JOnASENCInterceptor.java:141)
        at org.objectweb.easybeans_gen.invocationcontext.test.Asker.EasyBeansInvocationContextImplonMessageAROUNDINVOKE-258474723.proceed(Unknown Source)
        at test.Asker.onMessage(Asker.java)
        at org.objectweb.easybeans.container.mdb.MDBMessageListenerEndPoint.onMessage(MDBMessageListenerEndPoint.java:95)
        at org.objectweb.joram.client.connector.InboundSession.onMessage(InboundSession.java:175)
        at org.objectweb.joram.client.jms.MessageConsumerListener.activateListener(MessageConsumerListener.java:449)
        at org.objectweb.joram.client.jms.MultiSessionConsumer.onMessage(MultiSessionConsumer.java:168)
        at org.objectweb.joram.client.jms.Session.onMessage(Session.java:1835)
        at org.objectweb.joram.client.jms.Session.run(Session.java:878)
        at org.objectweb.joram.client.connector.InboundSession.run(InboundSession.java:159)
        at org.objectweb.jonas_lib.JWorkManager.doMyWork(JWorkManager.java:386)
        at org.objectweb.jonas_lib.JWorkManager.nextWork(JWorkManager.java:443)
        at org.objectweb.jonas_lib.JWorkManager$WorkThread.run(JWorkManager.java:536)

        Show
        Guillaume Sauthier
        added a comment - 2007-06-18 17:51:12,502 : JOnASDeployer.deployEAR : Deploying EARDeployableImpl [archive=/tmp/EasyBeans-Deployer-sauthieg/EAR/StringApp.ear] 2007-06-18 17:51:12,590 : Rar.processRar : Starting deployment of /tmp/EasyBeans-Deployer-sauthieg/EAR/StringApp.ear/StringGiver.rar 2007-06-18 17:51:12,599 : Rar.processRar : /tmp/EasyBeans-Deployer-sauthieg/EAR/StringApp.ear/StringGiver.rar available 2007-06-18 17:51:12,888 : ENCManager.getInterceptorClass : Detecting JOnAS: using JOnAS ENC for the naming. 2007-06-18 17:51:13,195 : JoramAdapter.createUser : - User [anonymous] has been created. 2007-06-18 17:51:13,284 : JContainer3.start : Container started in : 568 ms 2007-06-18 17:51:13,327 : JOnASDeployer.deployEAR : 'EARDeployableImpl [archive=/tmp/EasyBeans-Deployer-sauthieg/EAR/StringApp.ear] ' EAR Deployable is now deployed Sending... Message received; asking a string... Exception in thread "WorkThread-1/0" java.lang.NoClassDefFoundError: test/Giver at test.Asker.original$EasyBeans$onMessage(Asker.java:16) at org.objectweb.easybeans_gen.invocationcontext.test.Asker.EasyBeansInvocationContextImplonMessageAROUNDINVOKE-258474723.proceed(Unknown Source) at org.objectweb.easybeans.transaction.interceptors.CMTRequiredTransactionInterceptor.intercept(CMTRequiredTransactionInterceptor.java:110) at org.objectweb.easybeans_gen.invocationcontext.test.Asker.EasyBeansInvocationContextImplonMessageAROUNDINVOKE-258474723.proceed(Unknown Source) at org.objectweb.easybeans.naming.interceptors.JOnASENCInterceptor.intercept(JOnASENCInterceptor.java:141) at org.objectweb.easybeans_gen.invocationcontext.test.Asker.EasyBeansInvocationContextImplonMessageAROUNDINVOKE-258474723.proceed(Unknown Source) at test.Asker.onMessage(Asker.java) at org.objectweb.easybeans.container.mdb.MDBMessageListenerEndPoint.onMessage(MDBMessageListenerEndPoint.java:95) at org.objectweb.joram.client.connector.InboundSession.onMessage(InboundSession.java:175) at org.objectweb.joram.client.jms.MessageConsumerListener.activateListener(MessageConsumerListener.java:449) at org.objectweb.joram.client.jms.MultiSessionConsumer.onMessage(MultiSessionConsumer.java:168) at org.objectweb.joram.client.jms.Session.onMessage(Session.java:1835) at org.objectweb.joram.client.jms.Session.run(Session.java:878) at org.objectweb.joram.client.connector.InboundSession.run(InboundSession.java:159) at org.objectweb.jonas_lib.JWorkManager.doMyWork(JWorkManager.java:386) at org.objectweb.jonas_lib.JWorkManager.nextWork(JWorkManager.java:443) at org.objectweb.jonas_lib.JWorkManager$WorkThread.run(JWorkManager.java:536)
        Hide
        Florent Benoit
        added a comment -

        Problem is fixed

        Show
        Florent Benoit
        added a comment - Problem is fixed
        Hide
        Loïc Albertin
        added a comment -

        Closing old resolved issues

        Show
        Loïc Albertin
        added a comment - Closing old resolved issues
        Hide
        Loïc Albertin
        added a comment -

        JIRA migration: re-import attachments

        Show
        Loïc Albertin
        added a comment - JIRA migration: re-import attachments

          People

          • Assignee:
            Florent Benoit
            Reporter:
            Guillaume Sauthier
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Issue deployment