~jstys-z/helioviewer.org/client5

« back to all changes in this revision

Viewing changes to install/WEBSERVICE

  • Committer: V. Keith Hughitt
  • Date: 2009-04-01 21:08:05 UTC
  • Revision ID: hughitt1@kore-20090401210805-372f7dgih07vxk42
nightly build 04-01-2009

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Setting up the Helioviewer F/E Web-Service on Ubuntu 8.10
 
2
Last update 01-2009
 
3
 
 
4
I. Install Tomcat and Ant:
 
5
 
 
6
    1. sudo aptitude install tomcat6 tomcat6-docs tomcat6-examples tomcat6-admin ant junit libaxis-java
 
7
 
 
8
    2. Test Tomcat install: http://localhost:8080/
 
9
    
 
10
    3. ANT_HOME=/usr/share/ant
 
11
       JAVA_HOME=/usr/lib/jvm/java-6-sun/
 
12
       
 
13
    4. May also have to do the following:
 
14
        sudo update-java-alternatives -s java-6-sun
 
15
        gedit /etc/jvm, add line:
 
16
                        /usr/lib/jvm/java-6-sun
 
17
 
 
18
II. Add manager to Tomcat:
 
19
 
 
20
    1. sudo gedit /etc/tomcat6/tomcat-users.xml
 
21
 
 
22
    2. Add the following section, using a different user/password, within the "tomcat-users" element:
 
23
 
 
24
        <role rolename="manager"/>
 
25
        <user username="tomcat" password="s3cret" roles="manager"/>
 
26
 
 
27
    3. Restart tomcat:
 
28
 
 
29
        sudo /etc/init.d/tomcat6 restart
 
30
 
 
31
III. Build projects using ant, in the following order (run "ant" at the top of each sub-directory):
 
32
 
 
33
    First, in the below order:
 
34
 
 
35
        VOTable
 
36
        JSON
 
37
        Dispatcher
 
38
        UrlParser
 
39
 
 
40
    Next, build EGSOClient using nbbuild.xml:
 
41
        ant -f nbbuild.xml jar
 
42
 
 
43
    Then, the rest of the catalog adapters in any order (just use "ant" again):
 
44
 
 
45
        EGSOAdapter
 
46
        CACTusAdapter
 
47
        EITPlanningAdapter
 
48
        GOESXRayAdapter
 
49
        SEEDSAdapter
 
50
        VSOAdapter
 
51
        
 
52
       
 
53
IV. Copy the .war files to the Tomcat webapps folder:
 
54
 
 
55
    sudo cp */dist/*.war /var/lib/tomcat6/webapps/
 
56
   
 
57
V. Fix security issues:
 
58
 
 
59
    1. sudo gedit /etc/default/tomcat6
 
60
    2. Change the lines:
 
61
        JAVA_HOME=/usr/lib/jvm/java-6-sun
 
62
        TOMCAT6_SECURITY=no
 
63
        
 
64
VI. Restart one more time...
 
65
 
 
66
VII. Test out the installation:
 
67
 
 
68
    http://localhost:8080/Dispatcher/resources/eventCatalogs?action=getEventCatalogs&debug=1
 
69
 
 
70
== NOTES ==
 
71
 
 
72
1. Tomcat configuration is located in /etc/tomcat6
 
73
 
 
74
 
 
75
[1] tomcat.apache.org/
 
76
[2] http://ws.apache.org/axis2/
 
77
[3] http://zhenhua-guo.blogspot.com/2007/10/install-jdk-tomcat-and-axis2-on-ubuntu.html
 
78
[4] http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html