It’s cause by CXF 3.0 removed the cxf-extension-xxx.xml.
I just commit a quick fix for it, please check out the latest camel in action 
code before you run the standalone application.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On February 28, 2015 at 2:23:22 AM, imranrazakhan ([email protected]) 
wrote:
> Hi,
>  
> I tried to run CamelInAction-SourceCode-chapter13-standalone with "mvn
> compile exec:java" and it get failed with following error
>  
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------  
> [INFO] Building Camel in Action :: Chapter 13 :: Running Camel standalone
> 1.0.0
> [INFO]
> ------------------------------------------------------------------------  
> [INFO]
> [INFO] --- cxf-codegen-plugin:3.0.3:wsdl2java (generate-sources) @
> riderautoparts-standalone ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
> riderautoparts-standalone ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 5 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.5:compile (default-compile) @
> riderautoparts-standalone ---
> [INFO] Compiling 10 source files to
> E:\apache-camel\Camel-In-Action\camelinaction-2.14.1\chapter13\standalone\target\classes
>   
> [INFO]
> [INFO] >>> exec-maven-plugin:1.1.1:java (default-cli) > validate @
> riderautoparts-standalone >>>
> [INFO]
> [INFO] <<< exec-maven-plugin:1.1.1:java (default-cli) < validate @
> riderautoparts-standalone <<<
> [INFO]
> [INFO] --- exec-maven-plugin:1.1.1:java (default-cli) @
> riderautoparts-standalone ---
> 2015-02-27 23:10:29,077 [toryMain.main()] INFO MainSupport
> - Apache Camel 2.14.1 starting
> 2015-02-27 23:10:29,173 [toryMain.main()] INFO
> ClassPathXmlApplicationContext - Refreshing
> org.springframework.context.support.ClassPathXml
> ApplicationContext@190d5fd: startup date [Fri Feb 27 23:10:29 PKT 2015];
> root of context hierarchy
> 2015-02-27 23:10:29,221 [toryMain.main()] INFO XmlBeanDefinitionReader
> - Loading XML bean definitions from class path resource [META
> -INF/spring/camel-context.xml]
> 2015-02-27 23:10:29,331 [toryMain.main()] INFO XmlBeanDefinitionReader
> - Loading XML bean definitions from class path resource [META
> -INF/spring/camel-cxf.xml]
> 2015-02-27 23:10:29,345 [toryMain.main()] INFO XmlBeanDefinitionReader
> - Loading XML bean definitions from class path resource [META
> -INF/cxf/cxf.xml]
> 2015-02-27 23:10:29,365 [toryMain.main()] INFO XmlBeanDefinitionReader
> - Loading XML bean definitions from class path resource [META
> -INF/cxf/cxf-extension-soap.xml]
> 2015-02-27 23:10:29,367 [toryMain.main()] INFO MainSupport
> - Apache Camel 2.14.1 stopping
> [INFO]
> ------------------------------------------------------------------------  
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------  
> [INFO] Total time: 5.290 s
> [INFO] Finished at: 2015-02-27T23:10:29+05:00
> [INFO] Final Memory: 22M/53M
> [INFO]
> ------------------------------------------------------------------------  
> [ERROR] Failed to execute goal
> org.codehaus.mojo:exec-maven-plugin:1.1.1:java (default-cli) on project
> riderautoparts-standalone: An excepti
> on occured while executing the Java class. null: InvocationTargetException:
> Configuration problem: Failed to import bean definitions from UR
> L location [classpath:META-INF/spring/camel-cxf.xml]
> [ERROR] Offending resource: class path resource
> [META-INF/spring/camel-context.xml]; nested exception is
> org.springframework.beans.factory.p
> arsing.BeanDefinitionParsingException: Configuration problem: Failed to
> import bean definitions from URL location [classpath:META-INF/cxf/cx
> f-extension-soap.xml]
> [ERROR] Offending resource: class path resource
> [META-INF/spring/camel-cxf.xml]; nested exception is
> org.springframework.beans.factory.BeanD
> efinitionStoreException: IOException parsing XML document from class path
> resource [META-INF/cxf/cxf-extension-soap.xml]; nested exception i
> s java.io.FileNotFoundException: class path resource
> [META-INF/cxf/cxf-extension-soap.xml] cannot be opened because it does not
> exist
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException  
> 2015-02-27 23:10:29,511 [Thread-1 ] INFO
> MainSupport$HangupInterceptor - Received hang up - stopping the main
> instance.
>  
> Regards
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Configuration-problem-in-CamelInAction-source-code-tp5763260.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  

Reply via email to