Hi,
Following the simple tutorial at
http://www.cse.unsw.edu.au/~cs9322/labs/lab01/  I have created project
named HelloWorldCXF in my CXF working directory cxfwrk using maven. Then ,
I built it with mvn clean install. I copied the generated
war HelloWorldCXF-1.0-SNAPSHOT.war to webapps folder
of apache-tomcat-8.5.14. And re-started Tomcat. The soap service is
available at http://localhost:8080/HelloWorldCXF-1.0-SNAPSHOT. Finally, I
'm trying to test it with client available in the project using maven, but
not eclipse (as in that tutorial). I'm seeing build failure as in the
output attached. Although, it refers to the other logs, I feel the slip is
simpler, but I'm unable to figure it. Any help?
Rupinder
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\nwe>cd /D D:\cxfwrk

D:\cxfwrk>cd HelloWorldCXF

D:\cxfwrk\HelloWorldCXF>mvn exec:java -Dexec.mainClass=hom.rupipal.cxf.starter.h
ello.HelloWorldImplTest
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Simple CXF Java-first SOAP project using Spring configuration 1.
0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ HelloWorldCXF ---
[WARNING]
java.lang.ClassNotFoundException: hom.rupipal.cxf.starter.hello.HelloWorldImplTe
st
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:270)
        at java.lang.Thread.run(Thread.java:745)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.693 s
[INFO] Finished at: 2017-05-05T03:22:11+05:30
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (d
efault-cli) on project HelloWorldCXF: An exception occured while executing the J
ava class. hom.rupipal.cxf.starter.hello.HelloWorldImplTest -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

D:\cxfwrk\HelloWorldCXF>

Reply via email to