Why JBoss Fuse is not able to parse activemq-core tags ?

Solution Verified - Updated -

Issue

  • The followind kind of "camel-context.xml" file is used in the application:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/spring"
    xmlns:cxf="http://camel.apache.org/schema/cxf" xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
    xmlns:security="http://cxf.apache.org/configuration/security" xmlns:cxf-core="http://cxf.apache.org/core" 
        xmlns:amq="http://activemq.apache.org/schema/core" xmlns:jaxws="http://cxf.apache.org/jaxws"
    xsi:schemaLocation="
           http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
           http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
           http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.8.0.xsd       
           http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd       
           http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd       
           http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd       
           http://cxf.apache.org/configuration/security  http://cxf.apache.org/schemas/configuration/security.xsd       
           http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">

    <import resource="classpath:META-INF/spring/camel-cxf.xml" />

        .
        .
        . 

</beans>
  • The following kind of error is encountered in the logs :
Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=account-services-IntegrationBus, config=osgibundle:/META-INF/spring/*.xml)) Stack Trace: org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean namespace mapping: http://activemq.apache.org/schema/core at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:284)[org.apache.xbean:xbean-spring:3.12] at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:156)[org.apache.xbean:xbean-spring:3.12] at org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:49)[org.apache.xbean:xbean-spring:3.12] 1423 1413 184 140 111 493 390 334 302 174 209 180 at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)[org.springframework.osgi:spring-osgi-core:1.2.1] 
at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)[org.springframework.osgi:spring-osgi-core:1.2.1] 131 530 at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[org.springframework.osgi:spring-osgi-core:1.2.1] 
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[org.springframework.osgi:spring-osgi-core:1.2.1] at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[org.springframework.osgi:spring-osgi-core:1.2.1] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[org.springframework.osgi:spring-osgi-core:1.2.1] 
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[org.springframework.osgi:spring-osgi-extender:1.2.1] 
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[org.springframework.osgi:spring-osgi-extender:1.2.1] 
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[org.springframework.osgi:spring-osgi-core:1.2.1] at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[org.springframework.osgi:spring-osgi-extender:1.2.1] at java.lang.Thread.run(Thread.java:724)[:1.7.0_25]

Environment

  • JBoss Fuse
    • 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content