Changeset 10068
- Timestamp:
- 2005-06-13T14:18:50+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/README.txt
r9994 r10068 101 101 So should only use anonymous cvs. 102 102 103 Using External Tomcat: 104 ------------------------ 105 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. 108 109 1. Add in the Greenstone context to Tomcat's server.xml. 110 111 <Context path="/gsdl3" docBase="path-to-gsdl3/web" debug="1" 112 reloadable="true"><Resources allowLinking='true'/></Context> 113 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 You will need to set the web.home property in the build.properties file 119 eg 120 web.home=path-to-tomcat/webapps/gsdl3 121 122 2. Set up the JNI libraries and Java wrappers. 123 JNI libraries and their Java wrappers cannot go into the web app. The libraries need to be loaded by the same class loader as their wrappers. The libraries need to be in java.library.path, and I think get loaded by the system class loader. 124 The wrappers need to be loaded by this too. 125 To get the native libraries loaded, the directory they are in needs to be in the PATH variable (Windows) or the LD_LIBRARY_PATH variable (linux). 126 127 These JNI bits are located by default in the lib/jni directory. There are two ways to get them into Tomcat: 128 A: Keep all the Greenstone stuff inside the gsdl3 directory, and just modify the environment that Tomcat runs in 129 130 set LD_LIBRARY_PATH/PATH to include gsdl3/lib/jni directory. 131 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 (in setclasspath.bat, change 133 set CLASSPATH=%JAVA_HOME%\lib\tools.jar 134 to 135 set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CLASSPATH% 136 137 in setclasspath.sh, change 138 # Set standard CLASSPATH 139 if [ "$1" = "debug" -o "$1" = "javac" ] ; then 140 CLASSPATH="$JAVA_HOME"/lib/tools.jar 141 fi 142 143 to 144 # Set standard CLASSPATH 145 if [ "$1" = "debug" -o "$1" = "javac" ] ; then 146 CLASSPATH="$JAVA_HOME"/lib/tools.jar:"CLASSPATH" 147 fi 148 149 150 B: Copy the files into Tomcat installation: 151 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/PATH to include this directory. 153 This has the advantage that you can use this for other webapps without modifying the Tomcat environment. 154 155 156 157
Note:
See TracChangeset
for help on using the changeset viewer.