Forum Home » Fuse Distributions » Fuse ESB

Thread: BeanDefinitonStoreException

 
This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Last Post: Sep 24, 2011 12:46 PM Last Post By: ffang
garths

Posts: 10
Registered: 06/16/10
BeanDefinitonStoreException
Posted: Sep 22, 2011 12:37 PM
 
  Click to reply to this thread Reply
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

garths

Posts: 10
Registered: 06/16/10
Re: BeanDefinitonStoreException
Posted: Sep 22, 2011 6:50 PM   in response to: garths in response to: garths
 
  Click to reply to this thread Reply
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
garths

Posts: 10
Registered: 06/16/10
Re: BeanDefinitonStoreException
Posted: Sep 22, 2011 9:41 PM   in response to: garths in response to: garths
 
  Click to reply to this thread Reply
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
garths

Posts: 10
Registered: 06/16/10
Re: BeanDefinitonStoreException
Posted: Sep 24, 2011 11:43 AM   in response to: garths in response to: garths
 
  Click to reply to this thread Reply
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
ffang

Posts: 1,320
Registered: 12/24/07
Re: BeanDefinitonStoreException
Posted: Sep 24, 2011 12:46 PM   in response to: garths in response to: garths
 
  Click to reply to this thread Reply
Hi,

Thanks for telling us this story, it can explain everything, :-)

Freeman