Prequisites:
Jdk1.5 or higher
Apache ant
Apache maven
Apache tomcat 6.0(gives error in tomcat 5)
Download and extract(unzip) Axis2 binaries
Steps:
Firstly deploy all the perquisites.
In ubuntu :
sudo apt-get install $package
Note: JDK installed in above manner is not sun jdk but eclipse version of jdk.(this will result in errors)
Specially ant and tomcat are essential.
Method 1: Starting axis2 standalone
Configure :port in axis2.xml file
$axis-home/conf
Set axis2server.sh executable in
$axis-home/bin
sudo chmod +x filename.
Run the script as root.
Test:
Try http://localhost:port in browser should list all the web services available in the server.
Method 2:Deploying in tomcat
Run
ant create.war
There will be a axis2.war in
$axis-home/dist
Copy this war(Web archive) in
$tomcat-root/webapps
Test: Try by http://localhost:tport/axis2 this should show you an axis welcome page.Click validate link on welcome page
Possible practical problems:
1. Wrong version of JDK :this is specially in linux when we use eclipse/gnu/redhat jdk.this problem should be checked by
javac -v
set correct version of javac .
2. Axis 2 gives internal server error with tomcat 5.0
3. For starting tomcat6.0 we need to run setclasspath.sh and then run startup.sh
4. Set all the scripts runnable first.
5. Set JAVA_HOME environment variable correctly.
Tuesday, December 16, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment