File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Axis 2 with maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis 2 with maven" Watch "Axis 2 with maven" New topic

Axis 2 with maven

Trilochan Bharadwaj
Ranch Hand

Joined: Feb 02, 2009
Posts: 100

I am new to Web services and was trying axis2, Here's a summary of steps i followed:
1.) Create a maven project using mvn archetype:generate, use option 36 which was simply myfaces project.
2.) Added following entry :

on plugins element of POM xml.
3.) Create a simple class OMNamahShivayaWebService that has a method praise that passes in a deity name as string and returns a string with praise (OM Namah + deity name) ;)
4.) Added in plugin section (within axis2-java2wsdl-maven-plugin entry) following:

5.) ran command mvn clean axis2-java2wsdl:java2wsdl -e and got this exception (stack trace) :

Any ideas as to what I should be doing or am I missing something? I just want to deploy this service.

Trilochan B.
I agree. Here's the link:
subject: Axis 2 with maven
It's not a secret anymore!