Statistics
| Branch: | Tag: | Revision:

root / BUILD.txt @ 4684df80

History | View | Annotate | Download (3.4 kB)

1 14ad7326 pastith
Building GSS requires the following software installed:
2 14ad7326 pastith
3 14ad7326 pastith
- Java Development Kit version 1.6.
4 14ad7326 pastith
- Apache Ant version 1.7.
5 14ad7326 pastith
- Google Web Toolkit version 1.5.
6 14ad7326 pastith
- JBoss Application Server version 5.0.0 built with JDK 1.6.
7 14ad7326 pastith
- JUnit version 3.
8 14ad7326 pastith
9 14ad7326 pastith
10 14ad7326 pastith
Building from the command line
11 14ad7326 pastith
------------------------------
12 14ad7326 pastith
13 14ad7326 pastith
Create a build.properties file with the following variables, set to the appropriate paths for your system:
14 14ad7326 pastith
15 14ad7326 pastith
build.properties:
16 14ad7326 pastith
17 14ad7326 pastith
jboss.version=5.0.0
18 14ad7326 pastith
jboss.home=/path/to/development/deployment/jboss-5.0.0.GA
19 14ad7326 pastith
jboss.prod.home=/path/to/production/deployment/jboss-5.0.0.GA
20 14ad7326 pastith
gwt.path=/path/to/gwt-windows-1.5.3
21 14ad7326 pastith
junit.path=/path/to/junit
22 14ad7326 pastith
23 14ad7326 pastith
Run "ant".
24 14ad7326 pastith
25 14ad7326 pastith
Alternatively, you can set them in the command line, or specify them as environment variables:
26 14ad7326 pastith
27 14ad7326 pastith
ant -Djboss.version=5.0.0 -Djboss.home=/path/to/jboss-5.0.0.GA -Dgwt.path=/path/to/gwt-windows-1.5.3 -Djunit.path=/path/to/junit
28 14ad7326 pastith
29 14ad7326 pastith
The final build artifact is the file "gss.ear" in the directory "bin", which has already been deployed to the server.
30 14ad7326 pastith
31 14ad7326 pastith
32 14ad7326 pastith
Running the server
33 14ad7326 pastith
------------------
34 14ad7326 pastith
35 14ad7326 pastith
Before running the server for the first time, some configuration files must be installed. This can be accomplished by running "ant install" (with the already mentioned variables set, as above). Then just start JBoss with the default configuration.
36 14ad7326 pastith
37 14ad7326 pastith
38 14ad7326 pastith
Building from Eclipse
39 14ad7326 pastith
---------------------
40 14ad7326 pastith
41 14ad7326 pastith
In Eclipse the following User Libraries must be defined:
42 14ad7326 pastith
43 14ad7326 pastith
GWT Dev Library (pointing to gwt-dev-{windows,mac,linux}.jar)
44 14ad7326 pastith
GWT User Library (pointing to gwt-user.jar)
45 14ad7326 pastith
GWT Servlet Library (pointing to gwt-servlet.jar)
46 14ad7326 pastith
JBoss 5 lib (pointing to all the jars in ${jboss.home}/lib
47 14ad7326 pastith
JBoss 5 common lib (pointing to to all the jars in ${jboss.home}/common/lib)
48 14ad7326 pastith
49 14ad7326 pastith
Furthermore the ant variables mentioned above must be set as well.
50 14ad7326 pastith
51 14ad7326 pastith
52 14ad7326 pastith
Deploying to production
53 14ad7326 pastith
-----------------------
54 14ad7326 pastith
55 14ad7326 pastith
First of all, make sure the database is ready for gss. This entails configuring the database to accept connections from the application server and create the appropriate database and user:
56 14ad7326 pastith
57 14ad7326 pastith
# create user gss with password 'gss';
58 14ad7326 pastith
# create database gssdb owner gss encoding 'UTF8';
59 14ad7326 pastith
60 14ad7326 pastith
Then make sure the path to the production server is specified in build.properties (jboss.prod.home). Also make sure that the permissions in the jboss directory and subdirectories are properly set for the system user that the service will run as.
61 14ad7326 pastith
Run "ant install-production" to install the JBoss configuration files for the deployment server.
62 14ad7326 pastith
Run "ant deploy-production" to copy the build artifact (gss.ear) to the deployment server.
63 14ad7326 pastith
Copy the jboss init script to the proper place for the host operating system. Modify the various variables defined in the start of the run script as necessary.
64 14ad7326 pastith
65 14ad7326 pastith
For Debian:
66 14ad7326 pastith
67 14ad7326 pastith
# cp /path/to/production/deployment/jboss-5.0.0.GA/bin/jboss_init_debian.sh /etc/init.d/jboss
68 14ad7326 pastith
# chmod +x /etc/init.d/jboss
69 14ad7326 pastith
# update-rc.d jboss defaults
70 14ad7326 pastith
71 14ad7326 pastith
72 14ad7326 pastith
Installing the indexing service
73 14ad7326 pastith
-------------------------------
74 14ad7326 pastith
75 14ad7326 pastith
Download the Solr 1.3.0 binary from one of its mirrors and then download and install the patch mentioned in this page:
76 14ad7326 pastith
77 14ad7326 pastith
http://wiki.apache.org/solr/UpdateRichDocuments
78 14ad7326 pastith
79 14ad7326 pastith
Follow the instructions on How To Install to patch Solr with the file rich.patch. 
80 14ad7326 pastith
Copy the solr init script to the proper place for the host operating system. Modify the various variables defined in the start of the run script as necessary.
81 14ad7326 pastith
82 14ad7326 pastith
For Debian:
83 14ad7326 pastith
84 14ad7326 pastith
# cp solr/bin/solr /etc/init.d/solr
85 14ad7326 pastith
# chmod +x /etc/init.d/solr
86 14ad7326 pastith
# update-rc.d solr defaults