0 Replies Latest reply on Dec 19, 2007 6:38 PM by Boleslaw Dawidowicz

    Dependencies clash with jbossxb

    Boleslaw Dawidowicz Master

      I found out that MC and JBossXB duplicates jaxb-api dependency.

      MC 2.0.0.Beta9 depends on javax,xml.binding/jaxb-api (
      JBossXB 2.0.0.CR5 depends on sun-jaxb/jaxb-api

      So same artifact but different groupId...


      And btw. as I'm here... Do you have any idea why I'm seeing this exception? I suspect something wrong in my classpath (as its maven...) but I can't track anything:

      [java] Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: jar:file:/home/bdaw/.m2/repository/org/jboss/unit/jboss-unit-remote/1.1.0-SNAPSHOT/jboss-unit-remote-1.1.0-SNAPSHOT.jar!/org/jboss/unit/remote/driver/jboss-beans.xml@26,49
       [java] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
       [java] at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:139)
       [java] at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:86)
       [java] at org.jboss.unit.remote.driver.RemoteTestDriverClient.initDriver(RemoteTestDriverClient.java:179)
       [java] ... 8 more
       [java] Caused by: java.lang.NullPointerException
       [java] at org.jboss.kernel.plugins.deployment.xml.BeanSchemaBindingHelper.initLazyHandlers(BeanSchemaBindingHelper.java:197)
       [java] at org.jboss.kernel.plugins.deployment.xml.BeanSchemaBinding20.initLazy(BeanSchemaBinding20.java:298)
       [java] at org.jboss.kernel.plugins.deployment.xml.BeanSchemaBinding20.init(BeanSchemaBinding20.java:249)
       [java] at org.jboss.kernel.plugins.deployment.xml.BeanSchemaInitializer20.init(BeanSchemaInitializer20.java:37)


      I'm migrating stuff from ant to maven so its definitely not because of wrong 'jboss-beans.xml'. Currenlty I'm trying with 2.0.0.Beta9, With 2.0.0.Beta4 (worked in ant build) the NPE happens little later in the flow but in the same class.