Changeset 10096
- Timestamp:
- 2005-06-15T11:10:06+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/README.txt
r10068 r10096 105 105 106 106 If you want to use an existing Tomcat, set the path to its base directory 107 in build.properties . You will need to modify the Tomcat setup slightly.107 in build.properties (tomcat.installed.path). Then run 'ant install'. If you have already done an install (e.g. using a local Tomcat), you don't need to do it again. 108 108 109 1. Add in the Greenstone context to Tomcat's server.xml. 109 You will need to modify the Tomcat setup slightly. 110 111 1. Tell Tomcat about the Greenstone web app. There are two ways to do this. 112 113 A. Add in the Greenstone context to Tomcat's server.xml. 110 114 111 115 <Context path="/gsdl3" docBase="path-to-gsdl3/web" debug="1" 112 116 reloadable="true"><Resources allowLinking='true'/></Context> 113 117 114 Alternatively, you can rename the gsdl3/web directory to gsdl3 and move it into 115 Tomcat's webapps directory. (i.e. the resulting directories will be like 116 webapps/gsdl3/WEB-INF, no web directory). 117 TODO: check that this works. 118 B. Alternatively, you can move (and rename) the gsdl3/web directory to tomcat/webapps/gsdl3 (i.e. the resulting directories will be like 119 tomcat/webapps/gsdl3/WEB-INF, no web directory). 120 TODO: this doesn't work at the moment. 118 121 You will need to set the web.home property in the build.properties file 119 eg 122 i.e. 120 123 web.home=path-to-tomcat/webapps/gsdl3 121 124 … … 128 131 A: Keep all the Greenstone stuff inside the gsdl3 directory, and just modify the environment that Tomcat runs in 129 132 130 set LD_LIBRARY_PATH /PATHto include gsdl3/lib/jni directory.133 set LD_LIBRARY_PATH (linux) or PATH (windows) to include gsdl3/lib/jni directory. 131 134 add all the jar files in gsdl3/lib/jni directory to the CLASSPATH, then edit tomcats setclasspath.sh/bat to use the system CLASSPATH. 132 135 (in setclasspath.bat, change … … 150 153 B: Copy the files into Tomcat installation: 151 154 Move the gsdl3/lib/jni jar files into tomcat's shared/lib directory. 152 Move the gsdl3/lib/jni library files (.so /.dll) into shared/classes, and set LD_LIBARARY_PATH/PATHto include this directory.155 Move the gsdl3/lib/jni library files (.so for linux, .dll for windows) into shared/classes, and set LD_LIBARARY_PATH (linux) or PATH (windows) to include this directory. 153 156 This has the advantage that you can use this for other webapps without modifying the Tomcat environment. 157 158 159 Once all these changes have been made, you will need to restart the Tomcat server for them to take effect. 154 160 155 161
Note:
See TracChangeset
for help on using the changeset viewer.