You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Gerald Kallas <ca...@mailbox.org> on 2020/09/01 12:47:09 UTC

claimCheck availability within ServiceMix 7.0.1 (Apache Camel 2.16.5)

Dear all,

for a legacy project we're working with Apache Servicemix 7.0.1. This contains Camel 2.16.5.

While trying to use the claimCheck pattern I'm getting

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 106 in XML document from URL [bundle://425.8:0/META-INF/spring/eib.routes.mappings.RDHRDH011.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'claimCheck'.

Is claimCheck not supported with Camel 2.16.5?

The route starts with

<?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:prop="http://camel.apache.org/schema/placeholder"
	xsi:schemaLocation="http://camel.apache.org/schema/spring 
	http://camel.apache.org/schema/spring/camel-spring.xsd
	http://www.springframework.org/schema/beans
	http://www.springframework.org/schema/beans/spring-beans.xsd">

    <bean id="mappingService" class="de.ag.cas.eib.mapping.smx.MappingServiceImpl" />

	<camelContext id="mappings" xmlns="http://camel.apache.org/schema/spring" streamCache="true">

Best
Gerald

Re: claimCheck availability within ServiceMix 7.0.1 (Apache Camel 2.16.5)

Posted by Andrea Cosentino <an...@gmail.com>.
No, ClaimCheck has been introduced in 2.21.0

Il giorno mar 1 set 2020 alle ore 14:47 Gerald Kallas <ca...@mailbox.org>
ha scritto:

> Dear all,
>
> for a legacy project we're working with Apache Servicemix 7.0.1. This
> contains Camel 2.16.5.
>
> While trying to use the claimCheck pattern I'm getting
>
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 106 in XML document from URL
> [bundle://425.8:0/META-INF/spring/eib.routes.mappings.RDHRDH011.xml] is
> invalid; nested exception is org.xml.sax.SAXParseException:
> cvc-complex-type.2.4.a: Invalid content was found starting with element
> 'claimCheck'.
>
> Is claimCheck not supported with Camel 2.16.5?
>
> The route starts with
>
> <?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:prop="
> http://camel.apache.org/schema/placeholder"
>         xsi:schemaLocation="http://camel.apache.org/schema/spring
>         http://camel.apache.org/schema/spring/camel-spring.xsd
>         http://www.springframework.org/schema/beans
>         http://www.springframework.org/schema/beans/spring-beans.xsd">
>
>     <bean id="mappingService"
> class="de.ag.cas.eib.mapping.smx.MappingServiceImpl" />
>
>         <camelContext id="mappings" xmlns="
> http://camel.apache.org/schema/spring" streamCache="true">
>
> Best
> Gerald
>

Re: Rép. : Re: claimCheck availability within ServiceMix 7.0.1 (Apache Camel 2.16.5)

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Actually, ServiceMix is just a Karaf custom distribution.

So, updating etc/org.apache.karaf.features.cfg with Camel 2.21.1 should work.

Even simpler, just create your own Karaf distribution ;)

Regards
JB

> Le 1 sept. 2020 à 15:52, Daniel Langevin <da...@shq.gouv.qc.ca> a écrit :
> 
> Hi Gerald,
> 
> 
> There may be a solution while waiting for the last release of ServiceMix.
> 
> I run ServiceMix 7.0.1 with Camel 2.17.7, with little changes.
> (i make a little test in LAB this morning, with 2.21.1 and it seems to work). ServiceMix cames up without error.
> 
> Here's a Link that explained the workaround,  may be it will work for you, depend of camel features you use and all the dependency.
> but for me it's work fine since 3 years.
> 
> http://servicemix.396122.n5.nabble.com/ServiceMix-7-0-try-to-upgrade-Camel-from-2-16-4-to-2-17-x-td5724329.html
> 
> Hope it's help you
> 
> Regards.
> 
>>>> 
> De : 	Jean-Baptiste Onofre <jb...@nanthrax.net>
> À :	<us...@camel.apache.org>
> Date : 	2020-09-01 09:15
> Objet : 	Re: claimCheck availability within ServiceMix 7.0.1 (Apache Camel 2.16.5)
> 
> Hi
> 
> claimCheck has been introduced on Camel 2.21, so it’s not available on ServiceMix.
> 
> Any chance to update to Karaf with Camel 2.x+ ?
> 
> In the discussion we had on SMX, I proposed to cut a SMX release with updated versions before moving the project to the attic.
> 
> Regards
> JB
> 
>> Le 1 sept. 2020 à 14:47, Gerald Kallas <ca...@mailbox.org> a écrit :
>> 
>> Dear all,
>> 
>> for a legacy project we're working with Apache Servicemix 7.0.1. This contains Camel 2.16.5.
>> 
>> While trying to use the claimCheck pattern I'm getting
>> 
>> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 106 in XML document from URL [bundle://425.8:0/META-INF/spring/eib.routes.mappings.RDHRDH011.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'claimCheck'.
>> 
>> Is claimCheck not supported with Camel 2.16.5?
>> 
>> The route starts with
>> 
>> <?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:prop="http://camel.apache.org/schema/placeholder"
>> 	xsi:schemaLocation="http://camel.apache.org/schema/spring 
>> 	http://camel.apache.org/schema/spring/camel-spring.xsd 
>> 	http://www.springframework.org/schema/beans 
>> 	http://www.springframework.org/schema/beans/spring-beans.xsd">
>> 
>>   <bean id="mappingService" class="de.ag.cas.eib.mapping.smx.MappingServiceImpl" />
>> 
>> 	<camelContext id="mappings" xmlns="http://camel.apache.org/schema/spring" streamCache="true">
>> 
>> Best
>> Gerald
> 


Rép. : Re: claimCheck availability within ServiceMix 7.0.1 (Apache Camel 2.16.5)

Posted by Daniel Langevin <da...@shq.gouv.qc.ca>.
Hi Gerald,


There may be a solution while waiting for the last release of ServiceMix.

I run ServiceMix 7.0.1 with Camel 2.17.7, with little changes.
(i make a little test in LAB this morning, with 2.21.1 and it seems to work). ServiceMix cames up without error.

Here's a Link that explained the workaround,  may be it will work for you, depend of camel features you use and all the dependency.
but for me it's work fine since 3 years.

http://servicemix.396122.n5.nabble.com/ServiceMix-7-0-try-to-upgrade-Camel-from-2-16-4-to-2-17-x-td5724329.html

Hope it's help you

Regards.

>>> 
De : 	Jean-Baptiste Onofre <jb...@nanthrax.net>
À :	<us...@camel.apache.org>
Date : 	2020-09-01 09:15
Objet : 	Re: claimCheck availability within ServiceMix 7.0.1 (Apache Camel 2.16.5)

Hi

claimCheck has been introduced on Camel 2.21, so it’s not available on ServiceMix.

Any chance to update to Karaf with Camel 2.x+ ?

In the discussion we had on SMX, I proposed to cut a SMX release with updated versions before moving the project to the attic.

Regards
JB

> Le 1 sept. 2020 à 14:47, Gerald Kallas <ca...@mailbox.org> a écrit :
> 
> Dear all,
> 
> for a legacy project we're working with Apache Servicemix 7.0.1. This contains Camel 2.16.5.
> 
> While trying to use the claimCheck pattern I'm getting
> 
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 106 in XML document from URL [bundle://425.8:0/META-INF/spring/eib.routes.mappings.RDHRDH011.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'claimCheck'.
> 
> Is claimCheck not supported with Camel 2.16.5?
> 
> The route starts with
> 
> <?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:prop="http://camel.apache.org/schema/placeholder"
> 	xsi:schemaLocation="http://camel.apache.org/schema/spring 
> 	http://camel.apache.org/schema/spring/camel-spring.xsd 
> 	http://www.springframework.org/schema/beans 
> 	http://www.springframework.org/schema/beans/spring-beans.xsd">
> 
>    <bean id="mappingService" class="de.ag.cas.eib.mapping.smx.MappingServiceImpl" />
> 
> 	<camelContext id="mappings" xmlns="http://camel.apache.org/schema/spring" streamCache="true">
> 
> Best
> Gerald


Re: claimCheck availability within ServiceMix 7.0.1 (Apache Camel 2.16.5)

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi

claimCheck has been introduced on Camel 2.21, so it’s not available on ServiceMix.

Any chance to update to Karaf with Camel 2.x+ ?

In the discussion we had on SMX, I proposed to cut a SMX release with updated versions before moving the project to the attic.

Regards
JB

> Le 1 sept. 2020 à 14:47, Gerald Kallas <ca...@mailbox.org> a écrit :
> 
> Dear all,
> 
> for a legacy project we're working with Apache Servicemix 7.0.1. This contains Camel 2.16.5.
> 
> While trying to use the claimCheck pattern I'm getting
> 
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 106 in XML document from URL [bundle://425.8:0/META-INF/spring/eib.routes.mappings.RDHRDH011.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'claimCheck'.
> 
> Is claimCheck not supported with Camel 2.16.5?
> 
> The route starts with
> 
> <?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:prop="http://camel.apache.org/schema/placeholder"
> 	xsi:schemaLocation="http://camel.apache.org/schema/spring 
> 	http://camel.apache.org/schema/spring/camel-spring.xsd
> 	http://www.springframework.org/schema/beans
> 	http://www.springframework.org/schema/beans/spring-beans.xsd">
> 
>    <bean id="mappingService" class="de.ag.cas.eib.mapping.smx.MappingServiceImpl" />
> 
> 	<camelContext id="mappings" xmlns="http://camel.apache.org/schema/spring" streamCache="true">
> 
> Best
> Gerald