a99492b2309704a9349d29c2de38d9234e344a2a
[jabaws.git] / website / docs / v_2_2_0 / war.html
1
2
3 <!DOCTYPE html>
4 <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
5 <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
6 <head>
7   <meta charset="utf-8">
8   
9   <meta name="viewport" content="width=device-width, initial-scale=1.0">
10   
11   <title>Web Application Archive (WAR) &mdash; JABAWS 2.2 documentation</title>
12   
13
14   
15   
16   
17   
18
19   
20
21   
22   
23     
24
25   
26
27   
28   
29     <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
30   
31
32   
33
34   
35         <link rel="index" title="Index"
36               href="genindex.html"/>
37         <link rel="search" title="Search" href="search.html"/>
38     <link rel="top" title="JABAWS 2.2 documentation" href="index.html"/>
39         <link rel="next" title="Virtual Appliance (VA)" href="va.html"/>
40         <link rel="prev" title="Command Line Client (CLI)" href="client.html"/> 
41
42   
43   <script src="_static/js/modernizr.min.js"></script>
44
45 </head>
46
47 <body class="wy-body-for-nav" role="document">
48
49    
50   <div class="wy-grid-for-nav">
51
52     
53     <nav data-toggle="wy-nav-shift" class="wy-nav-side">
54       <div class="wy-side-scroll">
55         <div class="wy-side-nav-search">
56           
57
58           
59             <a href="index.html" class="icon icon-home"> JABAWS
60           
61
62           
63           </a>
64
65           
66             
67             
68               <div class="version">
69                 2.2
70               </div>
71             
72           
73
74           
75 <div role="search">
76   <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
77     <input type="text" name="q" placeholder="Search docs" />
78     <input type="hidden" name="check_keywords" value="yes" />
79     <input type="hidden" name="area" value="default" />
80   </form>
81 </div>
82
83           
84         </div>
85
86         <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
87           
88             
89             
90               
91             
92             
93               <p class="caption"><span class="caption-text">Contents:</span></p>
94 <ul class="current">
95 <li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a></li>
96 <li class="toctree-l1"><a class="reference internal" href="included_tools.html">Included Tools</a></li>
97 <li class="toctree-l1"><a class="reference internal" href="client.html">Command Line Client (CLI)</a></li>
98 <li class="toctree-l1 current"><a class="current reference internal" href="#">Web Application Archive (WAR)</a><ul>
99 <li class="toctree-l2"><a class="reference internal" href="#installing">Installing</a></li>
100 <li class="toctree-l2"><a class="reference internal" href="#usage">Usage</a></li>
101 <li class="toctree-l2"><a class="reference internal" href="#troubleshooting">Troubleshooting</a></li>
102 </ul>
103 </li>
104 <li class="toctree-l1"><a class="reference internal" href="va.html">Virtual Appliance (VA)</a></li>
105 <li class="toctree-l1"><a class="reference internal" href="advanced.html">Advanced Usage</a></li>
106 <li class="toctree-l1"><a class="reference internal" href="develop.html">For Developers</a></li>
107 <li class="toctree-l1"><a class="reference internal" href="stats.html">Usage Statistics</a></li>
108 <li class="toctree-l1"><a class="reference internal" href="citations.html">Citations</a></li>
109 <li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
110 </ul>
111
112             
113           
114         </div>
115       </div>
116     </nav>
117
118     <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
119
120       
121       <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
122         
123           <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
124           <a href="index.html">JABAWS</a>
125         
126       </nav>
127
128
129       
130       <div class="wy-nav-content">
131         <div class="rst-content">
132           
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148 <div role="navigation" aria-label="breadcrumbs navigation">
149
150   <ul class="wy-breadcrumbs">
151     
152       <li><a href="index.html">Docs</a> &raquo;</li>
153         
154       <li>Web Application Archive (WAR)</li>
155     
156     
157       <li class="wy-breadcrumbs-aside">
158         
159             
160             <!-- <a href="_sources/war.rst.txt" rel="nofollow"> View page source</a> -->
161             <a href="../../">Return to the JABAWS homepage</a>
162           
163         
164       </li>
165     
166   </ul>
167
168   
169   <hr/>
170 </div>
171           <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
172            <div itemprop="articleBody">
173             
174   <div class="section" id="web-application-archive-war">
175 <h1>Web Application Archive (WAR)<a class="headerlink" href="#web-application-archive-war" title="Permalink to this headline">¶</a></h1>
176 <p>JABAWS Web Application aRchive can run on any host operating system that supports <a class="reference external" href="http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html">Java</a> and <a class="reference external" href="http://tomcat.apache.org/download-80.cgi">Apache-Tomcat</a>. JABAWS requires a Java web application server compliant with version 2.4 of the Java Servlet specification, and a <a class="reference external" href="http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html">Java</a> 7 runtime environment. We recommend using an official Oracle Java 7 runtime environment, and <a class="reference external" href="http://tomcat.apache.org/download-80.cgi">Apache-Tomcat</a> web application server version 8.5, but older Tomcat versions above 5.5 will work too.</p>
177 <div class="admonition danger">
178 <p class="first admonition-title">Danger</p>
179 <p class="last">The JABAWS WAR is not generally compatible with older Mac systems based on the PowerPC architecture, since Java 1.7 is not available to run JABAWS.</p>
180 </div>
181 <p>However JABAWS depends on a number of third party programs which are not available for all operating systems. In particular, not all web services are currently available for MS Windows platform. JABAWS comes with pre-compiled MS Windows and Linux x86 binaries, as well as the source code and build scripts necessary to recompile them.</p>
182 <p>To run JABAWS on the cluster you must have shared disk space accessible from all cluster nodes.</p>
183 <hr class="docutils" />
184 <div class="section" id="installing">
185 <span id="war-installing"></span><h2>Installing<a class="headerlink" href="#installing" title="Permalink to this headline">¶</a></h2>
186 <div class="admonition tip">
187 <p class="first admonition-title">Tip</p>
188 <p class="last">Check if you are running the recommended versions of Java and Apache-Tomcat.</p>
189 </div>
190 <p>JABAWS is distributed as a web application archive (WAR). To deploy JABAWS in <a class="reference external" href="http://tomcat.apache.org/download-80.cgi">Apache-Tomcat</a> - simply drop the war file into the webapps directory of a running Tomcat, and it will do the rest. If you used this deployment procedure, do not remove the Jabaws WAR file, otherwise Tomcat will undeploy your application! The context path for your deployed application will be the same as the name of the war file. For example, assuming the Tomcat server is running on the <code class="docutils literal"><span class="pre">localhost:8080</span></code> and <em>jaba.war</em> file is put into the <code class="docutils literal"><span class="pre">&lt;tomcat</span> <span class="pre">server</span> <span class="pre">root&gt;/webapps</span></code> directory, the deployed application from the jabaws.war file then can be accessed by this URL <code class="docutils literal"><span class="pre">http://localhost:8080/jabaws</span></code>.</p>
191 <p>For any other web application server, please follow your server&#8217;s specific deployment procedure for &#8216;WAR&#8217; files. If you install JABAWS on a MS Windows machine, then at this point your JABAWS installation will already be up and running, and you can try its services out as described here in the <a class="reference external" href="advanced.html#testing-the-jabaws-server">documentation</a>. If you install JABAWS on Linux you will need to compile the binaries for your system and set an executable flag for binaries (<a class="reference external" href="advanced.html#pre-compiled-binaries">more details here</a> and <a class="reference external" href="advanced.html#recompiling-binaries-for-your-system">here</a>).</p>
192 <hr class="docutils" />
193 </div>
194 <div class="section" id="usage">
195 <span id="war-usage"></span><h2>Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
196 <p><strong>Running many JABAWS instances on the same server</strong></p>
197 <p>JABAWS is supplied as a Web Application aRchive which can be dealt with as any other web applications. So it is perfectly possible to run two JABAWS instances from the same server. Just make two different contexts on your application server and unpack JABAWS in both of them. For example if your server name is <a class="reference external" href="http://www.align.ac.uk">http://www.align.ac.uk</a>, and the context names are public and private. Than one group of users could be given a URL <a class="reference external" href="http://www.align.ac.uk/public">http://www.align.ac.uk/public</a> and another <a class="reference external" href="http://www.align.ac.uk/private">http://www.align.ac.uk/private</a>. These contexts will be served by two independent JABAWS instances, and could be configured differently. If you keep local engine enabled, make sure you reduce the number of threads local engine is allowed to use to avoid overloading the server. Alternatively two completely separate web application server instances (e.g. Apache-Tomcat) could be used. This will give you a better resilience and more flexibility in memory settings.</p>
198 <p><strong>JABAWS on a single server</strong></p>
199 <p>You can run JABAWS on a single server. Obviously the capacity will be limited, but it may be sufficient for a small lab. Installed on a single server, JABAWS executes tasks in parallel, so the more cores the server has the more requests it will be able to handle.</p>
200 <p><strong>JABAWS supported cluster batch management systems</strong></p>
201 <p>JABAWS uses <a class="reference external" href="http://www.drmaa.org/">DRMAA</a> v1.0 library to send and manage jobs on the cluster. DRMAA supports many different cluster job management systems. Namely Sun Grid Engine, Condor, PBS, GridWay, Globus 2/4, PBSPro, LSF. For up to date information please consult DRMAA web site. We found that DRMAA implementation differ from platform to platform and were trying to use only the basic functions. We have only tested JABAWS on Sun Grid Engine v 6.2. Please let use know if you have any experience of running JABAWS on other platforms.</p>
202 <hr class="docutils" />
203 </div>
204 <div class="section" id="troubleshooting">
205 <span id="war-troubleshooting"></span><h2>Troubleshooting<a class="headerlink" href="#troubleshooting" title="Permalink to this headline">¶</a></h2>
206 <p><strong>If Apache-Tomcat fails to deploy jabaws.war file:</strong></p>
207 <ul class="simple">
208 <li>Make sure Tomcat has sufficient access rights to read your war file.</li>
209 <li>Restart the Tomcat, sometimes it will not restart after the new war file is added without restart</li>
210 <li>If Tomcat still refuses to unpack the war file, unpack it manually into web application folder (the war file is just a zip archive). Restart the Tomcat.</li>
211 </ul>
212 <p><strong>If Tomcat undeployes your application:</strong></p>
213 <p>If the war file is automatically removed by Tomcat use an explicit application descriptor. Add a context descriptor file into <code class="docutils literal"><span class="pre">&lt;tomcatRoot&gt;conf/Catalina/localhost</span></code> directory. Name your context file the same as your application folder e.g. if your JABAWS resides in <code class="docutils literal"><span class="pre">webapps/jabaws</span></code> folder, then call the context file jabaws.xml. Below is an example of content this file might have.</p>
214 <div class="highlight-xml"><div class="highlight"><pre><span></span><span class="cp">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</span>
215 <span class="nt">&lt;Context</span> <span class="na">antiResourceLocking=</span><span class="s">&quot;false&quot;</span> <span class="na">privileged=</span><span class="s">&quot;true&quot;</span> <span class="nt">/&gt;</span>
216 </pre></div>
217 </div>
218 <p>This should be sufficient to prevent Tomcat from removing your JABAWS from WEBAPPS. For more information about the Tomcat deployer read this documentation on the Apache-Tomcat web site.</p>
219 </div>
220 </div>
221
222
223            </div>
224            <div class="articleComments">
225             
226            </div>
227           </div>
228           <footer>
229   
230     <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
231       
232         <a href="va.html" class="btn btn-neutral float-right" title="Virtual Appliance (VA)" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
233       
234       
235         <a href="client.html" class="btn btn-neutral" title="Command Line Client (CLI)" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
236       
237     </div>
238   
239
240   <hr/>
241
242   <div role="contentinfo">
243     <p><a href="../../">JABAWS 2.2</a>
244         &copy; Copyright 2017, Peter Troshin, Alexander Sherstnev, Jim Procter, Daniel Barton, Fábio Madeira, Alexey Drozdetskiy, Suzanne Duce and Geoff Barton.
245
246     </p>
247   </div>
248   Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 
249
250 </footer>
251         </div>
252       </div>
253
254     </section>
255
256   </div>
257   
258
259
260   
261
262     <script type="text/javascript">
263         var DOCUMENTATION_OPTIONS = {
264             URL_ROOT:'./',
265             VERSION:'2.2',
266             LANGUAGE:'None',
267             COLLAPSE_INDEX:false,
268             FILE_SUFFIX:'.html',
269             HAS_SOURCE:  true,
270             SOURCELINK_SUFFIX: '.txt'
271         };
272     </script>
273       <script type="text/javascript" src="_static/jquery.js"></script>
274       <script type="text/javascript" src="_static/underscore.js"></script>
275       <script type="text/javascript" src="_static/doctools.js"></script>
276
277   
278
279   
280   
281     <script type="text/javascript" src="_static/js/theme.js"></script>
282   
283
284   
285   
286   <script type="text/javascript">
287       jQuery(function () {
288           SphinxRtdTheme.StickyNav.enable();
289       });
290   </script>
291    
292
293 </body>
294 </html>