Hi I just started to put Camel into our project and hit this exception which I couldn't find a solution from googling many hours and I wonder if I didn't something wrong since others is not complaining.
I used spring bean configuration files to config camel context, etc. When I start my application, it throws exception: java.lang.ClassNotFoundException: org.apache.xbean.spring.context.v2.XBeanNamespaceHandler So I grabbed the xbean-spring-2.6.jar file from http://geronimo.apache.org/xbean/download.html http://geronimo.apache.org/xbean/download.html , which then gives me another exception: java.lang.ClassNotFoundException: org.springframework.beans.factory.support.ComponentDefinition Which I could not find from the Spring distribution (v2.5.6) at all. Does anyone know what is the problem? Here is my spring config file: <?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:context="http://www.springframework.org/schema/context" xmlns:camel="http://camel.apache.org/schema/spring" xmlns:broker="http://activemq.apache.org/schema/core" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://camel.apache.org/schema/spring classpath:camel-spring.xsd http://activemq.apache.org/schema/core classpath:activemq.xsd"> <!-- declare a camel context that scans for classes that is RouteBuilder --> <camel:camelContext id="camel"> <camel:packageScan> <camel:package>com.mypackage</camel:package> </camel:packageScan> <!-- enable JMX connector so we can connect to the server and browse mbeans --> <!-- Camel will log at INFO level the service URI to use for connecting with jconsole --> <camel:jmxAgent id="agent" createConnector="true" /> </camel:camelContext> <!-- configure the ActiveMQ JMS broker server --> <broker:broker useJmx="false" persistent="false" brokerName="localhost"> <broker:transportConnectors> <broker:transportConnector name="vm" uri="vm://localhost" /> </broker:transportConnectors> </broker:broker> <!-- configure the Camel ActiveMQ to use the ActiveMQ broker declared above --> <bean id="jms" class="org.apache.activemq.camel.component.ActiveMQComponent"> <property name="brokerURL" value="vm://localhost" /> </bean> </beans> -- View this message in context: http://www.nabble.com/Missing-dependeng-classes-using-spring-bean-xml-to-configure-camel-tp25143590p25143590.html Sent from the Camel - Users mailing list archive at Nabble.com.
