You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ro...@apache.org on 2004/07/20 11:09:59 UTC

cvs commit: ws-axis/site/src/documentation/content/xdocs/cpp lininstall-guide.ihtml

roshan      2004/07/20 02:09:58

  Modified:    site/src/documentation/content/xdocs/cpp
                        lininstall-guide.ihtml
  Log:
  Made the Linux Installation Guide more user friendly.Changed by Rangika
  
  Revision  Changes    Path
  1.15      +37 -26    ws-axis/site/src/documentation/content/xdocs/cpp/lininstall-guide.ihtml
  
  Index: lininstall-guide.ihtml
  ===================================================================
  RCS file: /home/cvs/ws-axis/site/src/documentation/content/xdocs/cpp/lininstall-guide.ihtml,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- lininstall-guide.ihtml	15 Jun 2004 10:40:50 -0000	1.14
  +++ lininstall-guide.ihtml	20 Jul 2004 09:09:58 -0000	1.15
  @@ -20,6 +20,8 @@
   <li>
   <a href="#What">What You Need</a>
   </li>
  +<br>
  +
   <p>
   <a name="Introducti"></a>
   </p>
  @@ -31,21 +33,25 @@
   <a name="What"></a>
   </p>
   <div class="h3">
  -<h3>What You need</h3>
  +<h3>What You Need</h3>
   </div>
  -<p>It needs a few helper libraries, for logging, WSDL processing and introspection. You need to have following in order to run Axis C++ engine.</p>
  -&nbsp &nbsp &nbsp RedHat 9(2.4.20-8) <br>
  -&nbsp &nbsp &nbsp expat-1.95.7(source) <br>
  -&nbsp &nbsp &nbsp xerces-c-src2_2_0(I build xerces from source) <br>
  -&nbsp &nbsp &nbsp httpd-2.0.48(source)<br>
  -&nbsp &nbsp &nbsp apache_1.3.27(source) <p>
  -
  -<p><b>Note: In my environment I have autoconf 2.57, automake 1.6.3, libtool 1.4.3,  gcc 3.2.2</b></p>
  +<p>You need few helper libraries  for logging, WSDL processing and introspection. You need to have the following in order to run Axis C++ engine.</p>
  +&nbsp &nbsp &nbsp RedHat 9 (2.4.20-8) <br>
  +&nbsp &nbsp &nbsp expat-1.95.7 (source) <br>
  +&nbsp &nbsp &nbsp xerces-c-src2_2_0 (I build xerces from source) <br>
  +&nbsp &nbsp &nbsp httpd-2.0.48 (source)<br>
  +&nbsp &nbsp &nbsp apache_1.3.27 (source) <p>
  +
  +<p><b>Note: In my environment I have </b> <br> 
  +autoconf 2.57 <br> 
  +automake 1.6.3 <br>
  +libtool 1.4.3 <br> 
  +gcc 3.2.2</b></p>
   <p> You can download the Axis C++ source or binary from one of the apache mirror sites <br>
  -    http://ws.apache.org/axis/cpp/download.html<br>
  -You can get expat from the uri http://sourceforge.net/projects/expat/<br>
  +    http://ws.apache.org/axis/cpp/download.html<br> <br>
  +You can get expat from the uri http://sourceforge.net/projects/expat/<br> <br>
   
  -You can get xercesc from the uri http://www.xml.apache.org/xerces-c/download.cgi<br>
  +You can get xercesc from the uri http://www.xml.apache.org/xerces-c/download.cgi<br> <br>
   
   You must define some environment variables in order to build.AXISCPP_HOME is where you checkout Axis C++</p>
   <br>
  @@ -62,16 +68,16 @@
   <b>mv /usr/local/deploy /usr/local/Axis</b><br>
   Give read write permissions to /usr/local/Axis<br><br>
   
  -<p>EXPAT_HOME points to where you installed expat <br>
  -XERCESC_HOME points to where you installed xereces-c</p>
  +<p>EXPAT_HOME points to the place where expat is installed  <br>
  +XERCESC_HOME points to the place where xereces-c is installed </p>
   
   <p>Axis C++ core is independant of the parser layer and transport layer.</p>
  -<p>You can write your own transport or parser library according to the APIs provided. Currently Axis C++provides API implementations for Xerces-c and Expat. It also provides it's own client side transport library implementation. In the server side deployment, Axis C++ provides two modules that can be loaded into apache1.3 and apache 2 as shared libraries.</p>
  -<p>So this sums upto two posibilities.<br>
  +<p>You can write your own transport or parser library according to the APIs provided. Currently Axis C++ provides API implementations for Xerces-c and Expat. It also provides it's own client side transport library implementation. In the server side deployment, Axis C++ provides two modules that can be loaded into apache1.3 and apache 2 as shared libraries.</p>
  +<p>So this sums upto two possibilities.<br>
   You can deploy Axis C++ server <br>
   &nbsp &nbsp On Apache2 with xercesc parser or expat parser(Only one parser at a time)<br>
  -&nbsp &nbsp On Apache1.3 with xercesc parer or expat parser<br>
  -So if you use only Expat no need to define XERCESC_HOME vice versa.</p>
  +&nbsp &nbsp On Apache1.3 with xercesc parser or expat parser<br>
  +So if you use only Expat you don't have to define XERCESC_HOME vice versa.</p>
   
   <p><b>When you build Axis C++ you can give options</b></p>
   <p><b>1) Build for Apache2</b><br>
  @@ -97,7 +103,7 @@
   <p><b>#if you need to build only axis_xerces</b></p>
   <p>#AC_OUTPUT(Makefile src/Makefile src/common/Makefile src/soap/Makefile src/wsdd/Makefile src/xml/Makefile<br> src/transport/Makefile src/transport/axis/Makefile src/engine/Makefile src/engine/server/Makefile src/engine/client/Makefile<br>  src/server/Makefile src/server/apache2/Makefile src/server/simple_axis_server/Makefile src/server/adminservice/Makefile<br> src/client/Makefile src/client/adminclient/Makefile src/xml/xerces/Makefile)</p>
   
  -<p><b>#apache2 block ends</b><br>
  +<p><b>#apache2 block ends</b><br> <br>
                                                                                                                                
   #<b>{apache1.3 block starts</b><br>
   <p><b>#if you use apache1.3 and  you need to build both axis_expat and axis_xerces libraries</b></p>
  @@ -109,7 +115,8 @@
   <p><b>#if you need to build only axis_xerces</b></p>
   <p>#AC_OUTPUT(Makefile src/Makefile src/common/Makefile src/soap/Makefile src/wsdd/Makefile src/xml/Makefile<br> src/transport/Makefile src/transport/axis/Makefile src/engine/Makefile src/engine/server/Makefile src/engine/client/Makefile<br>  src/server/Makefile src/server/apache/Makefile src/server/simple_axis_server/Makefile src/server/adminservice/Makefile<br> src/client/Makefile src/client/adminclient/Makefile src/xml/xerces/Makefile)</p>
   
  -<p>#}apache1.3 block ends</p>
  +<p><b>#}apache1.3 block ends</b></p> 
  +<br>
   
   <p>You also need to  do a selection at $AXISCPP_HOME/src/xml/Makefile.am</p>
   <p><b>SUBDIRS = expat xerces #Here I build both expat and xerces libraries</b><br>
  @@ -124,7 +131,10 @@
   <b>#SUBDIRS = apache adminservice</b></p>
   
   <p>Now you need to copy header files from apache and parser that  you use</p>
  -<p>I have installed xercesc at /usr/local/xerces-c, expat at /usr/local/expat1957,apache2 at /usr/local/apache2 and apache1.3 at /usr/local/apache</p>
  +<p>I have installed xercesc at /usr/local/xerces-c <br>
  +&nbsp &nbsp expat at /usr/local/expat1957 <br> 
  +&nbsp &nbsp apache2 at /usr/local/apache2 <br>
  +&nbsp &nbsp apache1.3 at /usr/local/apache </p>
   
   <p>I'm going to build Axis C++ for apache2 and for both xercesc and expat(But I'm going to<br>
   use only one parser. But anyway I can give instructions to build both as you've seen earlier)<br></p>
  @@ -140,7 +150,8 @@
   $AXISCPP_HOME/samples/server/sample_server_build_errors and <br>
   $AXISCPP_HOME/samples/client/sample_client_build_errors to identify any warnings and errors. Most probably you will see many warnings.
   Just ignore them. But if you see any errors it means that build was not successful and check whether you followed the instructions 
  -carefully. Note that if you see errors on build_errors file then client samples will also fail since it depends on libaxiscpp_client.so.</p>
  +carefully. <br> <br>
  +<b> Note that if you see errors on build_errors file then client samples will also fail since it depends on libaxiscpp_client.so.</b></p>
   
   <p>You can see the folder $AXISCPP_HOME/bin to see what are created</p>
   <p>libaxiscpp_mod.so is apache module which is loaded when apache loads <br>
  @@ -157,7 +168,7 @@
   <b>$ vi &lt;apache install directory&gt;/conf/httpd.conf</b></p>
   
   <p>At the bottom of the file you have to include following lines and save it.</p>
  -<p>LoadModule axis_module modules/libaxiscpp_mod2.so (in apache1.3 replace modules with libexec and libaxiscpp_mod2.so with libaxiscpp_mod.so)<br>
  +<p><b>LoadModule axis_module modules/libaxiscpp_mod2.so</b> (in apache1.3 replace modules with libexec and libaxiscpp_mod2.so with libaxiscpp_mod.so)<br> 
   <b>&lt;Location /axis&gt;</b><br>
   <b>SetHandler axis</b><br>
   <b>&lt;/Location&gt;</b></p>
  @@ -198,10 +209,10 @@
   <b>sh deploy_apache.sh</b></p>
   
   <p>When you run the above script all the libraries are copied into corresponding places.<br>
  -libaxiscpp_mod2.so is copied to <your apache home>/modules folder.<br>
  +libaxiscpp_mod2.so is copied to <your apache home>/modules folder.<br> <br>
   libserver_engine.so and libaxis_expat.so is copied to $AXIS_HOME/libs folder(and renamed
  -libaxis_xmlparser.so). Also apache is started and libaxiscpp_mod2.so is loaded into apache.<br>
  -libaxiscpp_mod2.so is the apache module for Axis C++. This will in term load Axis C++ server engine (libserver_engine.so)<br>
  +libaxis_xmlparser.so).<br> Also apache is started and libaxiscpp_mod2.so is loaded into apache.<br> <br>
  +libaxiscpp_mod2.so is the apache module for Axis C++. This will in term load Axis C++ server engine (libserver_engine.so)<br> <br>
   <b>Note that libaxis_xmlparser.so is loaded by the engine dynamically as parsing is required from the engine.</b></p>