2 Replies Latest reply on Mar 12, 2012 8:20 PM by ffang

    ComponentDefinitionException: Failed to create the JAXB binder

    liberman

      Hello,

       

      I am getting the following exception if I try to deploy a blueprint bundle into ESB 4.4.1:

       

      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.internal.bind.v2.runtime.IllegalAnnotationsException: 77 counts of IllegalAnnotationExceptions

       

      I know that there was an issue captured here

       

      https://issues.apache.org/jira/browse/SMX4-921

       

      which seems to be the case with me. However,

       

      1. it refers to using JRE while I am using JDK

      2. it is marked to be fixed but it is not clear how I can obtain the fix

       

      I would appreciate any help.

       

      Thanks in advance

       

      Boris

        • 1. Re: ComponentDefinitionException: Failed to create the JAXB binder
          sgadekar

          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"/>

                              

          snip

           

           

          snip

          15: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

            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