4 Replies Latest reply on Sep 24, 2011 8:46 AM by ffang

    BeanDefinitonStoreException

    foxviewn2632

      Back in Jan 30,2010 there was a post called "Problem with simple quartz.xml example in FUSE 4.2.0-SNAPSHOT".    I am using Fuse 4.4.0 00 43. and appear to be facing a similar problem. 

       

      org.springframework.beans.factory.BeanDefinitionStoreException: Failed to create the JAXB binder; nested exception is javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 77 counts of IllegalAnnotationExceptions 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

       

       

      Any ideas...

      Garth

        • 1. Re: BeanDefinitonStoreException
          foxviewn2632

          This runs well in IDE.  But it fails in the servicemix 4.4 container.  Other threads are talking about classpath loader issues with JAXB.   Have there been any solutions to this.  Using Spring DSL with the marshalling and unmarshalling  being done in a bean.

          Garth

          • 2. Re: BeanDefinitonStoreException
            foxviewn2632

            Well I was using jdk 1.6.0_27 and it worked in the IDE but is the problem in the servicemix 4.4.    I put the jdk to 1.6.0_20 and now it works great.   Must be some jaxb stuff added into jdk that is loading up and getting in the way of the bundles that I wanted to use.  Anyway I am up and running.

            Garth

            • 3. Re: BeanDefinitonStoreException
              foxviewn2632

              Upon further research it appears that a few years ago I had added some jaxb jars to the endorsed folder of the jdk 1.6 27 on my system.   These jars did not come with the jdk.   So it appears that I was the problem not the jdk.   I took those jars out and all is well.

               

              Garth

              • 4. Re: BeanDefinitonStoreException
                ffang

                Hi,

                 

                Thanks for telling us this story, it can explain everything,

                 

                Freeman