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 Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.0.0.M1
    • Component/s: None
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Similar Issues:
      Show 9 results 

      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)

        Activity

        Hide
        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
        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
            Reporter:
            Thomas Diesler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: