Quantcast

Issue with testing HelloWorld service

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Issue with testing HelloWorld service

Rupinder Singh
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





test_output.txt (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with testing HelloWorld service

Dennis Kieselhorst-2
Hi!

> 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?

Have you created the class hom.rupipal.cxf.starter.hello.HelloWorldImplTest? It should not make any difference whether running it in Maven or Eclipse.

You can find lots of working samples here: http://cxf.apache.org/docs/sample-projects.html

I suggest that you download the distribution from http://www.apache.org/dyn/closer.lua/cxf/3.1.11/apache-cxf-3.1.11.zip and start with java_first (as code first in your tutorial) or wsdl_first (contract first) from the samples folder. After that compare it with your project.

Regards
Dennis
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with testing HelloWorld service

Rupinder Singh
Hi Dennis,

Somehow mvn archetype:generate -Dfilter=org.apache.cxf.archetype:   did not
generate the project properly. Specifically, it hadn't created the client
source. So I downloaded the CXF distribution, as you suggested, and used
the same project in its samples folder and  repeated the remaining steps.
They work.

Thanks.

Rupinder

On Fri, May 5, 2017 at 11:26 AM, Dennis Kieselhorst <[hidden email]> wrote:

> Hi!
>
> > 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?
>
> Have you created the class hom.rupipal.cxf.starter.hello.HelloWorldImplTest?
> It should not make any difference whether running it in Maven or Eclipse.
>
> You can find lots of working samples here: http://cxf.apache.org/docs/
> sample-projects.html
>
> I suggest that you download the distribution from
> http://www.apache.org/dyn/closer.lua/cxf/3.1.11/apache-cxf-3.1.11.zip and
> start with java_first (as code first in your tutorial) or wsdl_first
> (contract first) from the samples folder. After that compare it with your
> project.
>
> Regards
> Dennis
>
Loading...