-
1. Re: ComponentDefinitionException: Failed to create the JAXB binder
sgadekar Mar 12, 2012 6:02 PM (in response to liberman)Mar12, 2012 and with the latest version 4.4.1 also, I am getting the same exception:
I am on OS X(Lion) with Java 6 and here is an example quickstart.xml I copied to deploy directory, and the respective bundle entered "Failed" state with the exception below in logs:
snip<log message="Moving $ to the output directory"/>
snipsnip15:54:33,612 | ERROR | rint Extender: 3 | BlueprintContainerImpl | 10 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint container for bundle quickstart.xml
org.osgi.service.blueprint.container.ComponentDefinitionException: Failed to create the JAXB binder : javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 79 counts of IllegalAnnotationExceptions
org.apache.camel.spi.AggregationRepository is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at org.apache.camel.spi.AggregationRepository
at public org.apache.camel.spi.AggregationRepository org.apache.camel.model.AggregateDefinition.getAggregationRepository()
at org.apache.camel.model.AggregateDefinition
org.apache.camel.spi.AggregationRepository does not have a no-arg default constructor.
this problem is related to the following location:
at org.apache.camel.spi.AggregationRepository
at public org.apache.camel.spi.AggregationRepository org.apache.camel.model.AggregateDefinition.getAggregationRepository()
at org.apache.camel.model.AggregateDefinition
org.apache.camel.processor.aggregate.AggregationStrategy is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at org.apache.camel.processor.aggregate.AggregationStrategy
at public org.apache.camel.processor.aggregate.AggregationStrategy org.apache.camel.model.AggregateDefinition.getAggregationStrategy()
at org.apache.camel.model.AggregateDefinition
org.apache.camel.processor.aggregate.AggregationStrategy does not have a no-arg default constructor.
this problem is related to the following location:
at org.apache.camel.processor.aggregate.AggregationStrategy
at public org.apache.camel.processor.aggregate.AggregationStrategy org.apache.camel.model.AggregateDefinition.getAggregationStrategy()
at org.apache.camel.model.AggregateDefinition
org.apache.camel.Expression is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at org.apache.camel.Expression
at public org.apache.camel.Expression org.apache.camel.model.ExpressionSubElementDefinition.getExpression()
at org.apache.camel.model.ExpressionSubElementDefinition
at public org.apache.camel.model.ExpressionSubElementDefinition org.apache.camel.model.AggregateDefinition.getCompletionPredicate()
at org.apache.camel.model.AggregateDefinition
org.apache.camel.Expression does not have a no-arg default constructor.
this problem is related to the following location:
at org.apache.camel.Expression
at public org.apache.camel.Expression org.apache.camel.model.ExpressionSubElementDefinition.getExpression()
at org.apache.camel.model.ExpressionSubElementDefinition
at public org.apache.camel.model.ExpressionSubElementDefinition org.apache.camel.model.AggregateDefinition.getCompletionPredicate()
at org.apache.camel.model.AggregateDefinition
org.apache.camel.Predicate is an interface, and JAXB can't handle interfaces.
snipp -
2. Re: ComponentDefinitionException: Failed to create the JAXB binder
ffang Mar 12, 2012 8:20 PM (in response to sgadekar)Hi,
We know there is a similar issue(SMX4-921) and fixed it in specs 1.9.0 when use jre but not jdk.
I test on my machine but I can't see this problem, I'm using JDK.
Could you please check your JAVA_HOME?
Also the FUSE ESB 4.4.x still use spec 1.8.0, next major FUSE ESB release should pick up specs 1.9.0.
Freeman