Installing Tomcat and Axis Print E-mail
Thursday, 18 August 2005

 

 Web services can be implemented by different programming languages. If you use JAVA, then you will need Axis, the next-generation SOAP (Simple Object Access Protocol). Axis requires installation of other software and packages such as Xerces, an XML Parser, XML Security API, JavaMail, and JavaBeans Activation Framework.

The following is one way to install these software packages and all necessary components to write Web Services using the JAVA technology on a Linux Operating System. Don’t worry about the version number; just make sure to get the latest stable version of these software packages.

1 – Install the Java 2 Runtime Environment --J2RE

· Download: jre-VersionNumber-linux-i586-rpm.bin

· chmod +x jre-VersionNumber-linux-i586-rpm.bin

· rpm -Uvh jre-VersionNumber-linux-i586.rpm

http://java.sun.com/j2se/

2- Install the Java Developer’s Kit -- JDK

· Download: jdk-VersionNumber-linux-i586-rpm.bin

· chmod +x jdk-VersionNumber-linux-i586-rpm.bin

· rpm -Uvh jdk-VersionNumber-linux-i586-rpm.bin

http://java.sun.com/j2se/

3- Download and install Tomcat

· tar -zxvf jakarta-tomcat-VersionNumber.tar.gz

http://jakarta.apache.org/

4- Download and install Axis

·tar -zxvf axis-bin-VersionNumber.tar.gz

· mv axis-VersionNumber/webapps/axis TOMCAT_HOME/webapps/

http://www.apache.org/dyn/closer.cgi/ws/axis/

5- Download and install Xerces

· tar -zxvf Xerces-J-bin.VersionNumber.tar.gz

· mv xerces-VersionNumber/*.jar TOMCAT_HOME/common/lib/

http://www.apache.org/dist/xml/xerces-j/

6- Download and install XML-Security package

· tar -zxvf xml-security-VersionNumber.tar.gz

· mv xml-security-VersionNumber/libs/*.jar TOMCAT_HOME/common/lib/

http://xml.apache.org/security/dist/java-library/

7- Download and install JavaBeans Activation

· Put the activation.jar file in TOMCAT_HOME/common/lib/

http://java.sun.com/products/javabeans/glasgow/jaf.html#download

8- Download and install JavaMail package

· The following are the jar files that come with the JavaMail packages: imap.jar, mail.jar, mailapi.jar, pop3.jar and smtp.jar

· Put the jar files in TOMCAT_HOME/common/lib/

http://java.sun.com/products/javamail/downloads/index.html

9- Set the environment variables

%JAVA_HOME = the path to this directory/jreVersionNumber

Add the /axis directory where you will be developing code to your path.

Test the Installation

1- http://localhost:8080/

This URL should display the default tomcat home page if it was installed correctly.

2- http://localhost:8080/axis/

This URL should display the default Axis home page if it was installed correctly. On this page you should click on “validate” to verify that all the necessary packages were found by Axis and were installed correctly. If any of the software packages was not installed correctly or not seen, an error message will be displayed.

3- Test the java installation and the environment variables setup by creating a hello.java program, and then try to compile and run it.

 

Last Updated ( Wednesday, 26 July 2006 )
Administered by NOAA's National Ocean Service
Center for Operational Oceanographic Products and Services (CO-OPS)
Privacy Policy