Hi Virgile,
Why do you load the routes like and not using by example as you have a
Spring XML File ?
<camelContext id="camelScan" xmlns="http://camel.apache.org/schema/spring">
<packageScan>
<package>org.apache.camel.spring.config.scan</package>
<excludes>**/*Excluded*</excludes>
<includes>**/*</includes>
</packageScan>
or using a <routeBuilder/>
Regards,
Charles Moulliard
Sr. Principal Solution Architect - FuseSource
Apache Committer
Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard
On Thu, May 26, 2011 at 4:44 PM, [email protected]
<[email protected]> wrote:
> Hello,
> I try to load a route dynamically from an xml file with
> camelContext.loadRoutesDefinition.
> Works fine from my unit test but when i tried to run my bundle in
> servicemix, i've got an error:
> Caused by: javax.xml.bind.JAXBException: "org.apache.camel.model.config"
> doesnt contain ObjectFactory.class or jaxb.index
>
> I check the camel-core jar included in the service-mix
> (D:\apache-servicemix-4.3.1-fuse-01-15\system\org\apache\camel\camel-core\2.6.0-fuse-01-15\camel-core-2.6.0-fuse-01-15.jar)
> and it contains org\apache\camel\model\config\jaxb.index.
>
> Now i'm stuck. Can anybody gives me a hint?
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/loadRoutesDefinition-and-jaxb-index-tp4428835p4428835.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>