root / BUILD.txt @ 6e6e914e
History | View | Annotate | Download (3.4 kB)
1 |
Building GSS requires the following software installed: |
---|---|
2 |
|
3 |
- Java Development Kit version 1.6. |
4 |
- Apache Ant version 1.7. |
5 |
- Google Web Toolkit version 2.0. |
6 |
- JBoss Application Server version 5.0.0 built with JDK 1.6. |
7 |
- JUnit version 3. |
8 |
|
9 |
|
10 |
Building from the command line |
11 |
------------------------------ |
12 |
|
13 |
Create a build.properties file with the following variables, set to the appropriate paths for your system: |
14 |
|
15 |
build.properties: |
16 |
|
17 |
jboss.version=5.0.0 |
18 |
jboss.home=/path/to/development/deployment/jboss-5.0.0.GA |
19 |
jboss.prod.home=/path/to/production/deployment/jboss-5.0.0.GA |
20 |
gwt.path=/path/to/gwt-2.0.0 |
21 |
junit.path=/path/to/junit |
22 |
|
23 |
Run "ant". |
24 |
|
25 |
Alternatively, you can set them in the command line, or specify them as environment variables: |
26 |
|
27 |
ant -Djboss.version=5.0.0 -Djboss.home=/path/to/jboss-5.0.0.GA -Dgwt.path=/path/to/gwt-2.0.0 -Djunit.path=/path/to/junit |
28 |
|
29 |
The final build artifact is the file "gss.ear" in the directory "bin", which has already been deployed to the server. |
30 |
|
31 |
|
32 |
Running the server |
33 |
------------------ |
34 |
|
35 |
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 |
|
37 |
|
38 |
Building from Eclipse |
39 |
--------------------- |
40 |
|
41 |
In Eclipse the following User Libraries must be defined: |
42 |
|
43 |
GWT Dev Library (pointing to gwt-dev.jar) |
44 |
GWT User Library (pointing to gwt-user.jar) |
45 |
GWT Servlet Library (pointing to gwt-servlet.jar) |
46 |
JBoss 5 lib (pointing to all the jars in ${jboss.home}/lib |
47 |
JBoss 5 common lib (pointing to to all the jars in ${jboss.home}/common/lib) |
48 |
|
49 |
Furthermore the ant variables mentioned above must be set as well. |
50 |
|
51 |
|
52 |
Deploying to production |
53 |
----------------------- |
54 |
|
55 |
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 |
|
57 |
# create user gss with password 'gss'; |
58 |
# create database gssdb owner gss encoding 'UTF8'; |
59 |
|
60 |
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 |
Run "ant install-production" to install the JBoss configuration files for the deployment server. |
62 |
Run "ant deploy-production" to copy the build artifact (gss.ear) to the deployment server. |
63 |
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 |
|
65 |
For Debian: |
66 |
|
67 |
# cp /path/to/production/deployment/jboss-5.0.0.GA/bin/jboss_init_debian.sh /etc/init.d/jboss |
68 |
# chmod +x /etc/init.d/jboss |
69 |
# update-rc.d jboss defaults |
70 |
|
71 |
|
72 |
Installing the indexing service |
73 |
------------------------------- |
74 |
|
75 |
Download the Solr 1.3.0 binary from one of its mirrors and then download and install the patch mentioned in this page: |
76 |
|
77 |
http://wiki.apache.org/solr/UpdateRichDocuments |
78 |
|
79 |
Follow the instructions on How To Install to patch Solr with the file rich.patch. |
80 |
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 |
|
82 |
For Debian: |
83 |
|
84 |
# cp solr/bin/solr /etc/init.d/solr |
85 |
# chmod +x /etc/init.d/solr |
86 |
# update-rc.d solr defaults |