camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Error Running JUnit Test
Date Tue, 26 Jun 2012 11:20:10 GMT

Are you using Java 7? If so then you will have to wait for Camel 2.10
to support that out of the box.
Older Camel releases requires Java 6.

On Tue, Jun 26, 2012 at 1:17 PM, dgallagher <> wrote:
> Hi
> I ran into an issue while running my junit tests, the error I get is as
> follows
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
> 2844 in XML document from class path resource
> [config/domesticCamel-context.xml] is invalid; nested exception is
> org.xml.sax.SAXParseException: cos-all-limited.1.2: An ''all'' model group
> must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that
> particle must be part of a pair which constitutes the '{'content type'}' of
> a complex type definition.
>        at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(
> The attached file contains the full stack trace
> I am writing some camel routes, but those routes depend on code in another
> maven module internal to our company. When I added the dependency to the
> other module in my code, this error started appearing in my junits
> From looking online, it looks like there is a duplicate version of a jar
> file on the classpath but I cant figure out which jar it is
> I was wondering if anyone has any hints or tips or knows off hand what the
> offending jar file may be?
> I know this is not a specific camel question but would appreciate if anyone
> could offer any assistance
> Cheers
> Damien
> TestError.txt
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message