Do not use the osgi namespace but just spring instead

eg
http://camel.apache.org/schema/osgi

should be
http://camel.apache.org/schema/spring

And if you use OSGi blueprint instead you use
http://camel.apache.org/schema/blueprint



On Wed, Mar 30, 2011 at 11:15 AM, Naira & Kobo <lekkie.ay...@gmail.com> wrote:
> Hi,
>
> After following the steps describes in Camel in Action to set up a unit
> test, I keep getting the following error when I try to
> test run my unit case:
>
> Invalid NamespaceHandler class [org.apache.camel.osgi.CamelNamespaceHandler]
> for namespace [http://camel.apache.org/schema/osgi]: problem with handler
> class file or dependent class; nested exception is
> java.lang.NoClassDefFoundError:
> org/springframework/osgi/context/BundleContextAware
>
> See my camel context:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>        ${header.soapAction}
>        ${header.contenttype}
>        ${header.serviceurl}
>        ${header.httpmethod}
>        ${header.sslenabled}
>
>
>
>
>
>
>
>
>
>
>
> And I have these in my dependencies:
>
>
>
>      commons-logging
>      commons-logging
>      ${commons.logging.version}
>      provided
>
>
>      org.apache.camel
>      camel-core
>      ${camel-version}
>
>
>            org.apache.camel
>            camel-cxf
>            ${camel-version}
>
>
>
>                org.apache.camel
>                camel-test
>                ${camel-version}
>                test
>
>
>                org.slf4j
>                slf4j-api
>                1.5.6
>                test
>
>
>                org.slf4j
>                slf4j-log4j12
>                1.5.6
>                test
>
>
>                org.springframework
>                spring-test
>                2.5.6.SEC01
>                test
>
>
>                junit
>                junit
>                4.4
>                test
>
>
>
> What am I missing?
>
> Regards.
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Unit-Testing-with-Spring-tp4271068p4271068.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



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

Reply via email to