[jboss-dev-forums] [Design of POJO Server] - aop-mc-int JAXB classes are invalid in AS 5

kabir.khan@jboss.com do-not-reply at jboss.com
Wed May 14 04:30:40 EDT 2008


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 at jboss.com">Kabir Khan</a>
  |  * @version $Revision: 1.1 $
  |  */
  | public class AspectJAXBDeployer extends JAXBDeployer<AOPDeployment>
  | {
  | 
  |    public AspectJAXBDeployer()
  |    {
  |       super(AOPDeployment.class);
  |       setSuffix("-aop.xml");
  |       setStage(DeploymentStages.DESCRIBE);  
  |    }
  | }
  | 

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? 

anonymous wrote : 
  | 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=

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150625#4150625

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150625



More information about the jboss-dev-forums mailing list