4 Replies Latest reply on May 14, 2008 11:12 AM by Kabir Khan

    aop-mc-int JAXB classes are invalid in AS 5

    Kabir Khan Master

      I am attempting to create a JAXBDeployer for -aop.xml files using the AOPDeployment and related classes I wrote in the MC/aop-mc-int project. My deployer looks like

      package org.jboss.aop.asintegration.jboss5.temp;
      import org.jboss.aop.microcontainer.beans.metadata.AOPDeployment;
      import org.jboss.deployers.spi.deployer.DeploymentStages;
      import org.jboss.deployers.vfs.spi.deployer.JAXBDeployer;
       * Parses the AOP information contained in the -aop.xml file
       * @author <a href="kabir.khan@jboss.com">Kabir Khan</a>
       * @version $Revision: 1.1 $
      public class AspectJAXBDeployer extends JAXBDeployer<AOPDeployment>
       public AspectJAXBDeployer()

      Now when I add this deployer to bootstrap-beans.xml in AS 5 I get the huge error message shown below. Before trying to resolve all the things it mentions, I am curious why this works in the mc testsuite and not in the JAXBDeployer?

      09:38:20,138 ERROR [AbstractKernelController] Error installing to Create: name=AspectJAXBDeployer state=Configured
      com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 56 counts of IllegalAnnotationExceptions
      org.jboss.aop.microcontainer.beans.metadata.AOPDeployment#beanFactories has mutually exclusive annotations @javax.xml.bind.annotation.XmlElements and @javax.xml.bind.annotation.XmlAnyElement
      this problem is related to the following location:
      at @javax.xml.bind.annotation.XmlElements(value=[@javax.xml.bind.annotation.XmlElement(namespace=##default, defaultValue=