Check out the Stellar code from SVN.
Use the standard developer setup, including maven 2.0.7 and the settings from the shared-build project.
Customize the following:
Check that /var/local/StoreDirectory and /var/local/stellar-searchindex exist, probably as links to the directories on another partition. Also /var/local/stellar-jive-attachments and /var/local/stellar-jive-searchindex for Jive, /var/local/imagestore for stellar-images, and /var/local/stellar-jforum for Sakai JForum.
Make sure testMode = false; and nomail = false; in stellar-two-site-request/src/main/java/okapi/servlets/okapi/RequestSiteServlet.java
In stellar-two-jar/src/main/java/okapi/util/OkapiXSLTRenderer.java set XSLCACHETIME (how often the XSLT files should be checked for updates) to a reasonable time, e.g. 3600 for a setting of one hour.
Check that stellar-two-site-request/src/main/webapp/WEB-INF/reqadmin.list has the current staff.
Make sure that the following are configured for the current term
stellar-two-site-request-webapp/src/main/webapp/index-academic.html stellar-two-site-request-webapp/src/main/webapp/index-nonacademic.html stellar-two-site-request-webapp/src/main/webapp/ereserves.html stellar-two-site-request-webapp/src/main/webapp/WEB-INF/xsl/editRequest.xsl stellar-two-site-request-webapp/src/main/webapp/WEB-INF/xsl/email.xsl and stellar-two-site-request-webapp/src/main/webapp/WEB-INF/xsl/emailHtml.xsl stellar-two-site-request-webapp/src/main/java/okapi/servlets/okapi/EditSiteRequestServlet.java stellar-two-site-request-webapp/src/main/java/okapi/servlets/ListSiteRequestsServlet.java stellar-two-site-request-webapp/src/main/java/okapi/servlets/RequestSiteServlet.java
Set stellar-two-webapp/src/main/webapp/WEB-INF/site.properties.
Be sure stellar-two-webapp/src/main/webapp/WEB-INF/applicationContext.xml has the correct storeDirectory, storeCreationJournal, duplicateStoreDirectory, zipCacheDirectory, and htmlStylesheetFile.
Check stellar-two-webapp/src/main/webapp/WEB-INF/applicationContext.xml
Do:
cd /var/local/stellar-svn/amps/stellar/2.0/trunk/ mvn clean install
Use the shared-build project to set up the tomcat and install the libraries needed. If that's already been done for this tomcat, just update the jar.
cp stellar-two-jar/target/stellar-two-jar.jar /var/local/main-tomcat-2.2/shared/lib/stellar-two-jar-2.0-SNAPSHOT.jar
Deploy the S webapp via the .war file or by
cp -rp stellar-two-webapp/target/S/. \ /var/local/main-tomcat-2.2/webapps/S/ mv /var/local/main-tomcat-2.2/webapps/S/WEB-INF/classes/log4j.properties /var/local/main-tomcat-2.2/common/classes/
The webapp was compiled along with the main 'S' webapp, and customized above, it needs only to be copies at this step.
cp -rp stellar-two-site-request/target/SR/. \ /var/local/main-tomcat-2.2/webapps/SR/
Follow the instructions in /var/local/stellar-svn/amps/stellar/2.0/trunk/support/README
The webapp has been compiled and deployed and checked in to subversion in that state. cd /var/local/stellar-svn/amps/stellar-projects/jive/ and customize the following:
Then do
cd .. cp -rp jive/. /var/local/main-tomcat-2.2/webapps/jive/
Check that /var/local/stellar-jive-attachments and /var/local/stellar-jive-searchindex exist, probably as links to the directories on another partition.
In /var/local/stellar-svn/amps/stellar-projects/atstellar/trunk
The data sources should have been set in the context.xml from the shared-build project.
Then do
mvn clean install cp -rp webapp/target/atstellar/. \ /var/local/main-tomcat-2.2/webapps/atstellar/
Add any logging to the common log4j.properties, and then remove the atstellar file.
cd /var/local/main-tomcat-2.2/ emacs common/classes/log4j.properties webapps/atstellar/WEB-INF/classes/log4j.properties rm webapps/atstellar/WEB-INF/classes/log4j.properties
In /var/local/stellar-svn/amps/stellar-projects/subjectinfo/trunk
The data sources should have been set in the context.xml from the shared-build project.
Then do
mvn clean install cp -rp webapp/target/courseguide/. \ /var/local/main-tomcat-2.2/webapps/courseguide/
Add any logging to the common log4j.properties, and then remove the courseguide file.
cd /var/local/main-tomcat-2.2/ emacs common/classes/log4j.properties webapps/courseguide/WEB-INF/classes/log4j.properties rm webapps/courseguide/WEB-INF/classes/log4j.properties
For production, remove:
ROOT balancer jsp-examples servlets-examples tomcat-docs webdav
Leaving
S | Stellar |
SR | Stellar Site Request |
atstellar | Stellar |
courseguide | Stellar |
jive | Stellar |
main-monitor | nagios monitor |