Today, I will share with you a good experience with linux Mint. Last Night, I tried to prepare Tomcat and Axis2 to create and test web services.
The implementation was easy and it only took some minutes.
The implementation was easy and it only took some minutes.
Follow the 3 steps below to install Tomcat 6 and Axis2 on linux Mint:
- Installation of Tomcat6 packages:
With Linux Mint, you will find java version 1.6.* installed. You have only to install tomcat6 packages with this command
sudo apt-get install tomcat6 tomcat6-admin tomcat6-docs tomcat6-examples
Now, you can try accessing localhost:8080/ in your browser - Tomcat's Configuration
Tomcat6 default install hasn’t the admin user parameters in config file, you’ll have to edit tomcat-users.xml file
sudo gedit /etc/tomcat6/tomcat-users.xml
you’ll have to add next lines:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="tomcat"/>
<role rolename="admin"/>
<user username="admin" password="password" roles="manager,tomcat,admin"/>
</tomcat-users>
Don't forget to change “password” with your own :-).Finally, you will need to restart tomcat6 with this command
sudo service tomcat6 restart
- AXIS2 Deployment
In this step, we will try to deploy axis2 on our installed tomcat6. First, download the WAR archive from this link: http://axis.apache.org/axis2/java/core/download.cgi
Open Tomcat Web Application Manager with this URL: http://localhost:8080/manager/html and deploy the WAR archive on tomcat from the "WAR file to deploy" menu.If all works fine, you can access it through this link : http://localhost:8080/axis2/
Good Bye :-)
sudo chmod -R 777 /var/lib/tomcat6/webapps/axis2/WEB-INF/
No comments:
Post a Comment