Web Services with Apache Tomcat and AXIS

smuthhomelyΔιακομιστές

17 Νοε 2013 (πριν από 3 χρόνια και 7 μήνες)

117 εμφανίσεις

Web Services with Apache Tomcat and
AXIS




The objectives of this configuration stage are the following:



to configure TomCat and Axis for running webservices



to present the initial commands to start and activate the Tomcat service and to be ready
for
the next stage (i.e., running a web service)


More documentation can be found on the web on the corresponding project sites:

http://tomcat.apache.org/

and
http://axis.apache.org
/







WARNING

:


The software versions that are made available are not the latest ....
If you want to download the
newest versions, be sure to check the consistency and the eventual changes....


The configuration should be done with a great care

! Any
mistake will lead to unstable
configuration and will have major side effects... If this occurs, do not hesitate to restart the
tomcat server … and if this fails to reinstall completely the environment




Download the archive of the site:

http://public.enst
-
bretagne.fr/ kermarre~/TPDIST/Axis


Save it in your home directory and
unzip/untar

the archives into a directory under your
current directory. Unzip/untar the files located in the sub directories (tomcat and axis directories).


In Tomca
t
-
Axis
-
Distribution2010/Init file:


-

change the value of the environment variable AXIS_INSTALL

to reflect your
configuration.

-

check the version of Java you use
. In the script it is Java 1.5 but you need to check the
consistency of your other initial
settings. You may go to Java 1.6.





execute the configuration file with the following command

:




source Init (or sh Init)


(this command should be executed in each of the terminal in which
you compile or run an application)




then move a few jar files

to the right place:


cp
-
r $AXIS_INSTALL/axis
-
1_4/webapps/axis/ $AXIS_INSTALL/apache
-
tomcat
-
5.5.27/webapps/

cp $AXIS_INSTALL/jar/activation.jar $AXIS_INSTALL/apache
-
tomcat
-
5.5.27/webapps/axis/WEB
-
INF/lib

cp $AXIS_INSTALL/jar/mail.jar $AXIS_INSTALL/apach
e
-
tomcat
-
5.5.27/webapps/axis/WEB
-
INF/lib

cp $AXIS_INSTALL/jar/soap.jar $AXIS_INSTALL/apache
-
tomcat
-
5.5.27/webapps/axis/WEB
-
INF/lib


Once you have initialized your environment, it is possible to start the Tomcat with the
following command

:



$AXIS_INSTALL
/
apache
-
tomcat
-
5.5.27/bin/startup.sh



Using CATALINA_BASE: /homes/kermarre/apache
-
tomcat
-
5.5.27


Using CATALINA_HOME: /homes/kermarre/apache
-
tomcat
-
5.5.27


Using CATALINA_TMPDIR: /homes/kermarre/apache
-
tomcat
-
5.5.27/temp


Using JRE_HOME:
/usr/local/jdk1.5




once you have started the configuration, it is possible to check if your environment is configured
properly so that you can continue the labs with Axis. For this, start FireFow with the following
address:



http://localhost:8080/axis/
.


You will use this web page to monitor the various actions during the labs....


To stop the Tomcat, run the following command

:

$AXIS_INSTALL/
apache
-
tomcat
-
5.5.27/bin/shutdown.sh



Usi
ng CATALINA_BASE: /homes/kermarre/apache
-
tomcat
-
5.5.27


Using CATALINA_HOME: /homes/kermarre/apache
-
tomcat
-
5.5.27


Using CATALINA_TMPDIR: /homes/kermarre/apache
-
tomcat
-
5.5.27/temp


Using JRE_HOME: /usr/local/jdk1.5