Wednesday, September 29, 2010

Setup tomcat and deploy axis2

First you better download the Apache Tomcat server from here(direct download).
Extract the zip file where ever you want. Then set an environment variable named JAVA_HOME. Right click computer -> Properties -> Advanced System Settings -> Environment Variables. Select New on "system variables" part. Then give JAVA_HOME as variable name and give the jdk directory (e.g. C:\Program Files\Java\jdk1.6.0_01) for variable value.
Now Tomcat is set properly.
Then you can download Axis2.war file containing zip from here(direct download). Extract the zip and place the .war file in apache/webapps folder(e.g. C:\apache-tomcat-6.0.29\webapps\axis2.war). Now you can start up the tomcat server and see whether axis2 has been deployed successfully. Run startup.bat file in apache-tomcat-6.0.29\bin folder. Then tomcat will start, then type "http://localhost:8080/axis2/" on your web browser and check whether following web page display to you.

Run shutdown.bat in apache-tomcat-6.0.29\bin folder and server will be shutdown.
So now lets move to write web services, in this case I ll be using netbeans IDE and the server settings and all that will be done on it. Everything will be described step by step on next post.

No comments:

Post a Comment