1
Setting up the Helioviewer F/E Web-Service on Ubuntu 8.10
4
I. Install Tomcat and Ant:
6
1. sudo aptitude install tomcat6 tomcat6-docs tomcat6-examples tomcat6-admin ant junit libaxis-java
8
2. Test Tomcat install: http://localhost:8080/
10
3. ANT_HOME=/usr/share/ant
11
JAVA_HOME=/usr/lib/jvm/java-6-sun/
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
18
II. Add manager to Tomcat:
20
1. sudo gedit /etc/tomcat6/tomcat-users.xml
22
2. Add the following section, using a different user/password, within the "tomcat-users" element:
24
<role rolename="manager"/>
25
<user username="tomcat" password="s3cret" roles="manager"/>
29
sudo /etc/init.d/tomcat6 restart
31
III. Build projects using ant, in the following order (run "ant" at the top of each sub-directory):
33
First, in the below order:
40
Next, build EGSOClient using nbbuild.xml:
41
ant -f nbbuild.xml jar
43
Then, the rest of the catalog adapters in any order (just use "ant" again):
53
IV. Copy the .war files to the Tomcat webapps folder:
55
sudo cp */dist/*.war /var/lib/tomcat6/webapps/
57
V. Fix security issues:
59
1. sudo gedit /etc/default/tomcat6
61
JAVA_HOME=/usr/lib/jvm/java-6-sun
64
VI. Restart one more time...
66
VII. Test out the installation:
68
http://localhost:8080/Dispatcher/resources/eventCatalogs?action=getEventCatalogs&debug=1
72
1. Tomcat configuration is located in /etc/tomcat6
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