activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dr.jeff" <jlans...@systechnologies.com>
Subject Re: [camel] using camel spring container
Date Mon, 30 Apr 2007 15:58:52 GMT

If I use the example at:

http://svn.apache.org/repos/asf/activemq/camel/trunk/camel-spring/src/test/resources/org/apache/camel/spring/routingUsingCamelContextFactoryWithNamespacesTest.xml

then I get this exception

Exception in thread "main"
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
26 in XML document from class path resource [test-spring.xml] is invalid;
nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c:
The matching wildcard is strict, but no declaration can be found for element
'camelContext'.
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The
matching wildcard is strict, but no declaration can be found for element
'camelContext'.

because there is no schema document at
http://activemq.apache.org/camel/schema/camel-1.0.xsd

If I fix that and host the schema locally, then I get this exception:

Exception in thread "main"
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Cannot locate BeanDefinitionParser for element
[camelContext]
Offending resource: class path resource [test-spring.xml]
	at
org.springframework.beans.factory.parsing.FailFastProblemReporter.fatal(FailFastProblemReporter.java:59)
	at
org.springframework.beans.factory.parsing.ReaderContext.fatal(ReaderContext.java:68)
	at
org.springframework.beans.factory.parsing.ReaderContext.fatal(ReaderContext.java:55)
	at
org.springframework.beans.factory.xml.NamespaceHandlerSupport.findParserForElement(NamespaceHandlerSupport.java:79)
...

Is there perhaps something not checked in?


James.Strachan wrote:
> 
> BTW to try and avoid future confusion, I've added some Spring
> documentation...
> 
> http://cwiki.apache.org/CAMEL/spring.html
> 
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/-camel--using-camel-spring-container-tf3663875s2354.html#a10255927
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message