Wednesday 27 January 2016

Two classes have the same XML type name {http://camel.apache.org/schema/spring}propertyDefinition.

Two classes have the same XML type name {http://camel.apache.org/schema/spring}propertyDefinition.



Problem:
 org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [behaviour.Error.xml]
Offending resource: class path resource [Config/behaviour/behaviour.TP2.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Failed to create the JAXB binder; nested exception is javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory could not be instantiated: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
Two classes have the same XML type name "{http://camel.apache.org/schema/spring}propertyDefinition". Use @XmlType.name and @XmlType.namespace to assign different names to them.
 this problem is related to the following location:
  at org.apache.camel.model.config.PropertyDefinition
  at private java.util.List org.apache.camel.model.config.PropertiesDefinition.properties
  at org.apache.camel.model.config.PropertiesDefinition
 this problem is related to the following location:
  at org.apache.camel.model.PropertyDefinition
  at private java.util.List org.apache.camel.model.PropertiesDefinition.properties
  at org.apache.camel.model.PropertiesDefinition
  at private org.apache.camel.model.PropertiesDefinition org.apache.camel.spring.CamelContextFactoryBean.properties
  at org.apache.camel.spring.CamelContextFactoryBean
Two classes have the same XML type name "{http://camel.apache.org/schema/spring}propertiesDefinition". Use @XmlType.name and @XmlType.namespace to assign different names to them.
 this problem is related to the following location:


 Solution:
 Different Version of camel jars are loaded , so please check recently edited/added build files with camel version.