Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7288

AnnotationMetaDataDeployer failing with NoClassDefFoundError

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.0.0.M1
    • Component/s: None
    • Labels:
      None

      Description

      OSGi bundle deployments fail related to unwanted annotation processing

      Caused by: java.lang.NoClassDefFoundError: javax/persistence/PersistenceContext
      at org.jboss.metadata.annotation.creator.AbstractPersistenceContextProcessor.getAnnotationTypes(AbstractPersistenceContextProcessor.java:107)
      at org.jboss.metadata.annotation.creator.AbstractProcessor.getProcessorMetaDataType(AbstractProcessor.java:322)
      at org.jboss.metadata.annotation.creator.AbstractProcessor.addFieldProcessor(AbstractProcessor.java:92)
      at org.jboss.metadata.annotation.creator.jboss.AbstractComponentProcessor.<init>(AbstractComponentProcessor.java:85)
      at org.jboss.metadata.annotation.creator.ejb.jboss.AbstractEnterpriseBeanProcessor.<init>(AbstractEnterpriseBeanProcessor.java:60)
      at org.jboss.metadata.annotation.creator.ejb.jboss.AbstractSessionBeanProcessor.<init>(AbstractSessionBeanProcessor.java:52)
      at org.jboss.metadata.annotation.creator.ejb.jboss.StatefulProcessor.<init>(StatefulProcessor.java:49)
      at org.jboss.metadata.annotation.creator.ejb.jboss.JBoss50Creator.<init>(JBoss50Creator.java:74)
      at org.jboss.metadata.annotation.creator.ejb.jboss.JBoss50Creator.<init>(JBoss50Creator.java:84)
      at org.jboss.deployment.OptAnnotationMetaDataDeployer.processJBossMetaData(OptAnnotationMetaDataDeployer.java:132)
      at org.jboss.deployment.OptAnnotationMetaDataDeployer.processMetaData(OptAnnotationMetaDataDeployer.java:84)
      at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:177)
      at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:93)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

        Gliffy Diagrams

          Activity

          Hide
          thomas.diesler Thomas Diesler added a comment -

          Done

          // Allow deployment units to say that they are metadata complete
          // in terms of annotation processing
          if (isComplete == false)

          { Boolean unitComplete = unit.getAttachment(ANNOTATION_META_DATA_COMPLETE, Boolean.class); isComplete = Boolean.TRUE.equals(unitComplete); }
          Show
          thomas.diesler Thomas Diesler added a comment - Done // Allow deployment units to say that they are metadata complete // in terms of annotation processing if (isComplete == false) { Boolean unitComplete = unit.getAttachment(ANNOTATION_META_DATA_COMPLETE, Boolean.class); isComplete = Boolean.TRUE.equals(unitComplete); }

            People

            • Assignee:
              thomas.diesler Thomas Diesler
              Reporter:
              thomas.diesler Thomas Diesler
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development