On Sun, Nov 7, 2010 at 5:24 AM, Willem Jiang <[email protected]> wrote: > I just checked the code of camel-cxf, it doesn't support to take the > schemaLocation, so I create a JIRA[1] for it and will work on quick fix for > it shortly. > > [1]https://issues.apache.org/activemq/browse/CAMEL-3319 >
Willem can you double check the other options works as well? I can se the CXF schema has many options. We need to have unit tests for all those :) > On 11/7/10 12:53 AM, Marco Zapletal wrote: >> >> http://camel.apache.org/schema/cxf is the namespace, which has >> http://camel.apache.org/schema/cxf/camel-cxf.xsd defined as its >> schemaLocation. >> >> I've checked the schema, the element is defined there. >> >> regards, >> marco >> >> Am 06.11.2010 17:52, schrieb Christian Müller: >>> >>> Which namespace do you use for the "cxf" prefix? >>> >>> Christian >>> >>> Am 06.11.2010 17:40 schrieb "Marco Zapletal"<[email protected]>: >>> >>> Hello, >>> >>> I am defining my CXF services in camel config (using 2.5.0) as follows: >>> >>> <cxf:cxfEndpoint id="myService" address="/myService" >>> serviceClass="com.example.MyService"> >>> <cxf:properties> >>> <entry key="schema-validation-enabled" value="true" /> >>> <entry key="schemaLocations" value="wsdl/*.xsd"/> >>> </cxf:properties> <cxf:schemaLocations> >>> >>> <cxf:schemaLocation>classpath:wsdl/Message.xsd</cxf:schemaLocation> >>> </cxf:schemaLocations> >>> </cxf:cxfEndpoint> >>> >>> When starting my Camel application an exception as shown below is >>> thrown. It >>> seems that the CXF bean parser does not know what to do with the >>> cxf:schemaLocation element. >>> >>> Do I have any configuration error or is this a potential bug? Then I >>> would >>> file a JIRA issue. >>> >>> thanks, >>> marco >>> >>> >>> >>> SCHWERWIEGEND: Exception sending context initialized event to listener >>> instance of class org.springframework.web.context.ContextLoaderListener >>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: >>> Configuration problem: Cannot locate BeanDefinitionParser for element >>> [schemaLocation] >>> Offending resource: class path resource [camel-config.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:84) >>> >>> at >>> >>> org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73) >>> >>> at >>> >>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1335) >>> >>> at >>> >>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseNestedCustomElement(BeanDefinitionParserDelegate.java:1388) >>> >>> at >>> >>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertySubElement(BeanDefinitionParserDelegate.java:956) >>> >>> at >>> >>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCollectionElements(BeanDefinitionParserDelegate.java:1140) >>> >>> at >>> >>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseListElement(BeanDefinitionParserDelegate.java:1116) >>> >>> at >>> >>> org.apache.camel.component.cxf.spring.CxfEndpointBeanDefinitionParser.mapElement(CxfEndpointBeanDefinitionParser.java:70) >>> >>> at >>> >>> org.apache.cxf.configuration.spring.AbstractBeanDefinitionParser.parseChildElements(AbstractBeanDefinitionParser.java:118) >>> >>> at >>> >>> org.apache.cxf.configuration.spring.AbstractBeanDefinitionParser.doParse(AbstractBeanDefinitionParser.java:71) >>> >>> at >>> >>> org.apache.camel.component.cxf.spring.AbstractCxfBeanDefinitionParser.doParse(AbstractCxfBeanDefinitionParser.java:57) >>> >>> at >>> >>> org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.parseInternal(AbstractSingleBeanDefinitionParser.java:85) >>> >>> at >>> >>> org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:59) >>> >>> at >>> >>> org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73) >>> >>> ... >>> >> >> > > > -- > Willem > ---------------------------------- > FuseSource > Web: http://www.fusesource.com > Blog: http://willemjiang.blogspot.com (English) > http://jnn.javaeye.com (Chinese) > Twitter: willemjiang > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
