f29b3274bbb950a85b6db158d270e60da5815f8e
[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" title="Java Bioinformatics Analysis Web Services version 2.0"/></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="http://www.compbio.dundee.ac.uk/downloads/jabaws">Download</a>\r
29     <a href="PublicAnnualStat" title="JABAWS server usage statistics">Usage Statistics</a>\r
30          <a href="ServiceStatus" title="JABAWS webservices status. Click to test all web services. Please be patient while the services are being checked">Services Status</a>\r
31         <a href="contacts.html">Contact Us</a>\r
32     <a href="http://www.compbio.dundee.ac.uk" title="University of Dundee, The Barton Group" >Barton Group</a>\r
33 \r
34 </div><!-- panel end-->\r
35 \r
36 <div id="content">\r
37 \r
38 <h2 id="headtitle">Getting Started</h2>\r
39 \r
40 <h3><a name="whichjaba" id="whichjaba"></a>Choose a JABAWS distribution</h3>\r
41 \r
42 <table id="choicematrix">\r
43 <tr>\r
44   <th>I want to use JABAWS for...</th>\r
45   <th>Quick Guide</th>\r
46 </tr>\r
47 <tr>\r
48         <td>Running Muptiple Sequence Alignments through Jalview on my <strong>own</strong> computer</td>\r
49     <td><a href="manual_qs_va.html#qsc">JABAWS Virtual Appliance (VA)</a></td>\r
50 </tr>\r
51 <tr>\r
52   <td>Running JABAWS  on the <strong>cloud</strong>, for one or many users</td>\r
53   <td><a href="man_awscloud.html">JABAWS on the Amazon cloud </a></td>\r
54 </tr>\r
55 <tr>\r
56         <td>Running JABAWS for my group, lab, or organization on the <strong>local</strong> infrastructure </td>\r
57     <td><a href="manual_qs_war.html#qsc">JABAWS Web Application aRchive (WAR)</a></td>\r
58 </tr>\r
59 <tr>\r
60         <td>Accessing a JABAWS server from my own code</td>\r
61     <td><a href="manual_qs_client.html#qsc">JABAWS Java Client</a></td>\r
62 </tr>\r
63 </table>\r
64 \r
65 <a name="qsc"/>\r
66 \r
67 <h3>Installing A JABAWS Server Web Application Archive (WAR) package</h3>\r
68 \r
69 <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
70 \r
71 <ol>\r
72 <li>Download the <a href="http://www.compbio.dundee.ac.uk/downloads/jabaws">JABAWS WAR for your platform </a></li>\r
73   <li>Download and install <a href="http://tomcat.apache.org/download-70.cgi">Apache-Tomcat</a>.<br/>\r
74    <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
75   <li>Drop the JABAWS WAR file into <span class="hightlight">tomcat/webapps</span> directory.</li>\r
76   <li>(Re)start the Tomcat.</li>\r
77   <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
78   <li> If you are on Mac or other unix-like architecture with GNU compilers available or you'd like to get a maximum performance </li>\r
79    <ul><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
80      </ul>\r
81 </ol> \r
82 \r
83 <h3>Testing</h3>\r
84 <p>You can test that your JABAWS server is working in several ways.</p>\r
85 <ol>\r
86 <li>Visit Services Status page available from the JABAWS main page using your web browser.</li>\r
87 \r
88 <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
89   <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
90   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
91 </li>\r
92 <li>Alternately, you can point Jalview at your new server:\r
93 <ul>\r
94   <li>Launch the desktop version of <a href="http://www.jalview.org/download.html">Jalview</a></li>\r
95   <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
96   <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
97 </ul>\r
98 </li></ol>\r
99 \r
100 <!--  TODO put JABAWS CMD test instructions here -->\r
101 </div> <!-- content end-->\r
102 <!-- about end-->\r
103 <div id="copyright">Last update: 16 September 2011<br/>\r
104 Peter Troshin, Jim Procter and Geoff Barton, The Barton Group, University of Dundee, UK</div>\r
105 \r
106 </div><!-- wrapper end -->\r
107 \r
108 <!-- Google analitics -->\r
109 <script type="text/javascript">\r
110 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");\r
111 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));\r
112 </script>\r
113 <script type="text/javascript">\r
114 try{\r
115 var pageTracker = _gat._getTracker("UA-5356328-1");\r
116 pageTracker._trackPageview();\r
117 } catch(err) {}\r
118 </script>\r
119 </div> <!-- page end -->\r
120 </body>\r
121 </html>\r
122 \r