camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-10205) camel-example-spring-dm - Cannot install in Karaf 4.0.x
Date Mon, 22 Aug 2016 13:24:21 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-10205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-10205.
---------------------------------
    Resolution: Fixed
      Assignee: Claus Ibsen

> camel-example-spring-dm - Cannot install in Karaf 4.0.x
> -------------------------------------------------------
>
>                 Key: CAMEL-10205
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10205
>             Project: Camel
>          Issue Type: Bug
>          Components: examples, karaf
>    Affects Versions: 2.18.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.18.0
>
>
> In a vanilla Karaf 4.0.5, then following the readme.md file of camel-example-spring-dm
it fails with some lovely classloading
> {code}
> 2016-07-29 13:39:34,713 | ERROR | ExtenderThread-1 | ContextLoaderListener          
 | 83 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=camel-example-spring-dm,
config=osgibundle:/META-INF/spring/*.xml))
> org.springframework.beans.factory.BeanDefinitionStoreException: Failed to create the
JAXB binder; nested exception is javax.xml.bind.JAXBException: "org.apache.camel.model.config"
doesnt contain ObjectFactory.class or jaxb.index
> 	at org.apache.camel.spring.handler.CamelNamespaceHandler$CamelContextBeanDefinitionParser.doParse(CamelNamespaceHandler.java:378)[61:org.apache.camel.camel-spring:2.18.0.SNAPSHOT]
> 	at org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.parseInternal(AbstractSingleBeanDefinitionParser.java:85)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:59)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1432)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1422)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:187)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:147)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:101)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:495)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)[70:org.apache.servicemix.bundles.spring-beans:3.2.14.RELEASE_1]
> 	at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)[82:org.springframework.osgi.core:1.2.1]
> 	at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)[82:org.springframework.osgi.core:1.2.1]
> 	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[72:org.apache.servicemix.bundles.spring-context:3.2.14.RELEASE_1]
> 	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:539)[72:org.apache.servicemix.bundles.spring-context:3.2.14.RELEASE_1]
> 	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[82:org.springframework.osgi.core:1.2.1]
> 	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[82:org.springframework.osgi.core:1.2.1]
> 	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[82:org.springframework.osgi.core:1.2.1]
> 	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[82:org.springframework.osgi.core:1.2.1]
> 	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[83:org.springframework.osgi.extender:1.2.1]
> 	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[83:org.springframework.osgi.extender:1.2.1]
> 	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[82:org.springframework.osgi.core:1.2.1]
> 	at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[83:org.springframework.osgi.extender:1.2.1]
> 	at java.lang.Thread.run(Thread.java:745)[:1.8.0_31]
> Caused by: javax.xml.bind.JAXBException: "org.apache.camel.model.config" doesnt contain
ObjectFactory.class or jaxb.index
> 	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:281)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_31]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_31]
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_31]
> 	at java.lang.reflect.Method.invoke(Method.java:483)[:1.8.0_31]
> 	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:143)[:2.7.0]
> 	at javax.xml.bind.ContextFinder.find(ContextFinder.java:310)[:2.7.0]
> 	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:446)[:2.7.0]
> 	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:409)[:2.7.0]
> 	at org.apache.camel.impl.DefaultModelJAXBContextFactory.newJAXBContext(DefaultModelJAXBContextFactory.java:31)[55:org.apache.camel.camel-core:2.18.0.SNAPSHOT]
> 	at org.apache.camel.spring.handler.CamelNamespaceHandler.getJaxbContext(CamelNamespaceHandler.java:215)[61:org.apache.camel.camel-spring:2.18.0.SNAPSHOT]
> 	at org.apach
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message