For a full tutorial that shows how to
work with Axis2 web services in the NetBeans IDE,
see:
In order to deploy Axis2 web services to an application server, that server has to deploy a copy of an axis2.war file. For the IDE to deploy Axis2 web services, it has to have the application server's axis2.war file on its path.
To set up Axis2 web service deployment:
Navigate to your Axis2 installation /webapps directory. Open a command prompt and run ant in that directory. This creates a /dist directory containing axis2.war in your Axis2 installation directory.
Copy axis2.war to your application server.
For Tomcat, copy the file to your Catalina base /webapps directory.
For GlassFish, copy the file to your GlassFish domain /autodeploy directory.
In the IDE, open Tools -> Options and click the Axis2 icon.
Type or browse to the location of the application server's axis2.war file or the directory where that file will be unpacked.
For Tomcat, set the location as your Catalina base /webapps/axis2 folder. This is where axis2.war is unpacked. You will have to run Tomcat to generate this file if it does not yet exist.
For GlassFish, set the location as your GlassFish domain /autodeploy/axis2.war file.
Make certain that the Axis2 URL is set to the correct port number for your server.
If you are using Tomcat, select Use Tomcat Manager for deployment and type the username and password of a user with manager privileges. By default, username "tomcat" password "tomcat" has these privileges.