camel-users mailing list archives

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

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 <damien.gallagher@gmail.com> 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(XmlBeanDefinitionReader.java:396)
>
> 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
> http://camel.465427.n5.nabble.com/file/n5715106/TestError.txt TestError.txt
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Error-Running-JUnit-Test-tp5715106.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message