updates to web site
[jabaws.git] / website / manual_qs_war.html
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE html PUBLIC "XHTML 1.0 Strict" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
3 <html xmlns="http://www.w3.org/1999/xhtml">\r
4 <head>\r
5 <meta name="Last-modified" content="Mon, 4 Apr 2011 12:00:00 GMT"/>\r
6 <title>Java Bioinformatics Analyses Web Services (JABAWS) manual - getting started</title>\r
7 <link href="ws.css" rel="stylesheet" type="text/css" media="screen,  projection, handheld, tv" />\r
8 <link rel="stylesheet" type="text/css" media="print" href="print.css"/>\r
9 \r
10 <script type="text/javascript" src="prototype-1.6.0.3.js"></script>\r
11 </head>\r
12 <body>\r
13 <div id="page">\r
14 <div id="banner">\r
15 <table> \r
16 <tr><td style="width:158px;"><a href="http://www.dundee.ac.uk"><img src="images/uod_lt_long.gif"  alt="University of Dundee" width="158" height="90" class="logo"  title="University of Dundee" longdesc="http://www.dundee.ac.uk"/></a></td>\r
17 <td class="bg"><img src="images/jabaws2.png" alt="JABAWS-2.0:Disorder" width="353" height="67" title="JABAWS-2.0:Disorder"/></td>\r
18 <td class="bg"><img src="images/banner_right.png" alt="Disorder" width="200" height="80"/></td>\r
19 </tr>\r
20 </table>\r
21 </div><!-- banner end-->\r
22 \r
23 <div id="wrapper">\r
24 <div id="panel">\r
25 <a href="index.html">Home</a>\r
26     <a class="selected" href="quick_start.html">Getting Started</a> \r
27     <a href="man_about.html">Manual</a> \r
28         <a href="download.html">Download</a>\r
29         <a href="contacts.html">Contact Us</a>\r
30     <a href="PublicAnnualStat" title="JABAWS server usage statistics">Usage Statistics</a>\r
31     <a href="http://www.compbio.dundee.ac.uk" title="University of Dundee, The Barton Group" >Barton Group</a>\r
32 \r
33 </div><!-- panel end-->\r
34 \r
35 <div id="content">\r
36 \r
37 <h2 id="headtitle">Getting Started</h2>\r
38 \r
39 <h3><a name="whichjaba" id="whichjaba"></a>Choose a JABAWS distribution</h3>\r
40 \r
41 <table id="choicematrix">\r
42 <tr>\r
43   <th>I want to use JABAWS for...</th>\r
44   <th>Quick Guide</th>\r
45 </tr>\r
46 <tr>\r
47         <td>Running Muptiple Sequence Alignments through Jalview on my <strong>own</strong> computer</td>\r
48     <td><a href="manual_qs_va.html#qsc">JABAWS Virtual Appliance (VA)</a></td>\r
49 </tr>\r
50 <tr>\r
51   <td>Running JABAWS  on the <strong>cloud</strong>, for one or many users</td>\r
52   <td><a href="man_awscloud.html">JABAWS AMI</a></td>\r
53 </tr>\r
54 <tr>\r
55         <td>Running JABAWS for my group, lab, or organization on the <strong>local</strong> infrastructure </td>\r
56     <td><a href="manual_qs_war.html#qsc">JABAWS Web Application aRchive (WAR)</a></td>\r
57 </tr>\r
58 <tr>\r
59         <td>Accessing a JABAWS server from my own code</td>\r
60     <td><a href="manual_qs_client.html#qsc">JABAWS Java Client</a></td>\r
61 </tr>\r
62 </table>\r
63 \r
64 <a name="qsc"/>\r
65 \r
66 <h3>Installing A JABAWS Server Web Application Archive (WAR) package</h3>\r
67 \r
68 <p>This is for anyone who wants to run JABAWS for their group, lab or organization, or wants to enable their local JABA server to use the cluster or perform very large tasks.</p>\r
69 \r
70 <ol>\r
71 <li>Download the <a href="http://www.compbio.dundee.ac.uk/jabaws/download.html">JABAWS WAR for your platform </a></li>\r
72   <li>Download and install <a href="http://tomcat.apache.org/download-70.cgi">Apache-Tomcat</a>.<br/>\r
73    <span class="hightlight">You will need at least version 5.5 of Tomcat (we would recommend version 7.0) and at least version 1.6 (i.e. JAVA 6) of Java.</span></li>\r
74   <li>Drop the JABAWS WAR file into <span class="hightlight">tomcat/webapps</span> directory.</li>\r
75   <li>(Re)start the Tomcat.</li>\r
76   <li>Once the tomcat has started, it should automatically unpack the WAR into the webapps directory (if it doesn't, then you'll need to do this manually, it's just a zip archive in the end).</li>\r
77   <li>You then need to complete the installation of the executable binaries:</li>\r
78    <ul>\r
79      <li>If you are on Linux or Mac (OSX intel Mac only) <br/>\r
80        <span class="hightlight">cd</span> to <span class="hightlight"> webapps/jabaws/binaries/src/</span> and execute <span class="hightlight">./setexecflag.sh </span> script to ensure the JABAWS binaries can be executed. </li>\r
81         <li>If you are on other unix-like architecture with gnu compilers available or you'd like to get a maximum performance:</li>\r
82         <li> <span class="hightlight">cd</span> to <span class="hightlight">webapps/jabaws/binaries/src/</span> and execute <span class="hightlight">./compilebin.sh  </span> script to compile all binaries JABAWS depends on. </li>\r
83   <li><span class="hightlight">cd</span> to <span class="hightlight"> webapps/jabaws/binaries/src/ </span>and execute <span class="hightlight">./setexecflag.sh </span> script. </li>\r
84   </ul>\r
85 </ol> \r
86 \r
87 <h3>Testing</h3>\r
88 <p>You can test that your JABAWS server is working in two ways.</p>\r
89 <ol>\r
90 <li>If you are working on the command line, then use the command line client shipped with the JABAWS war to test it by running:\r
91 <span class="code">java -jar &lt;Path to tomcat WebApp directory&gt;/jabaws/WEB-INF/lib/jaba-client.jar -h=http://localhost:8080/jabaws</span>\r
92 In this example we assumed that your JABAWS server URL is <span class="hightlight">http://localhost:8080</span> and JABAWS context path is <span class="hightlight">jabaws</span>\r
93 </li>\r
94 \r
95 <li>Alternately, you can point Jalview at your new server:\r
96 <ul>\r
97   <li>Launch the desktop version of <a href="http://www.jalview.org/download.html">Jalview</a></li>\r
98   <li>Open the Jalview desktop's preferences panel (from the Tools-&gt;Preferences menu option), select the <span class="hightlight">Webservices</span> panel and press the <span class="hightlight">New Service URL</span> button.</li>\r
99   <li>Enter the URL for the tomcat server, including the context path for the JABAWS web app (e.g. http://localhost:8080/jabaws).</li>\r
100 </ul>\r
101 </li></ol>\r
102 \r
103 <!--  TODO put JABAWS CMD test instructions here -->\r
104 </div> <!-- content end-->\r
105 <!-- about end-->\r
106 <div id="copyright">Last update: 10 August 2011<br/>\r
107 Peter Troshin, Jim Procter and Geoff Barton, The Barton Group, University of Dundee, UK</div>\r
108 \r
109 </div><!-- wrapper end -->\r
110 \r
111 <!-- Google analitics -->\r
112 <script type="text/javascript">\r
113 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");\r
114 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));\r
115 </script>\r
116 <script type="text/javascript">\r
117 try{\r
118 var pageTracker = _gat._getTracker("UA-5356328-1");\r
119 pageTracker._trackPageview();\r
120 } catch(err) {}\r
121 </script>\r
122 </div> <!-- page end -->\r
123 </body>\r
124 </html>\r
125 \r