0 Replies Latest reply on Jun 10, 2009 4:04 PM by Michael Martinsen

    Dynamic ESB configuration creation - again

    Michael Martinsen Newbie

      Hi

      I would like to run the schema file (http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd) for the jboss-esb.xml through JAXB to create a Java model.

      I have read the following thread where the last post sounds like what I want:
      http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4203409#4203409

      I get the following from the XJC compiler:

      org.xml.sax.SAXParseException: A class/interface with the same name "com.jboss.labs.anonsvn.labs.jbossesb.trunk.product.etc.schemas.xml.jbossesb_1_0_1.BusProvider" is already in use. Use a class customization to resolve this conflict.
      org.xml.sax.SAXParseException: (Relevant to above error) another "BusProvider" is generated from here.
      com.sun.istack.SAXParseException2: Two declarations cause a collision in the ObjectFactory class.
      com.sun.istack.SAXParseException2: (Related to above error) This is the other declaration.
      


      Does anybody know how to make JAXB 'eat' the schema file?

      Thanks

      Michael