Ignore:
Timestamp:
2005-06-15T11:10:06+12:00 (19 years ago)
Author:
kjdon
Message:

more external tomcat instructions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/README.txt

    r10068 r10096  
    105105
    106106If 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.
     107in 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.
    108108
    109 1. Add in the Greenstone context to Tomcat's server.xml.
     109 You will need to modify the Tomcat setup slightly.
     110
     1111. Tell Tomcat about the Greenstone web app. There are two ways to do this.
     112
     113A. Add in the Greenstone context to Tomcat's server.xml.
    110114
    111115<Context path="/gsdl3" docBase="path-to-gsdl3/web" debug="1"
    112116reloadable="true"><Resources allowLinking='true'/></Context>
    113117
    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.
     118B. Alternatively, you can move (and rename) the gsdl3/web directory to tomcat/webapps/gsdl3 (i.e. the resulting directories will be like
     119tomcat/webapps/gsdl3/WEB-INF, no web directory).
     120TODO: this doesn't work at the moment.
    118121You will need to set the web.home property in the build.properties file
    119 eg
     122i.e.
    120123web.home=path-to-tomcat/webapps/gsdl3
    121124
     
    128131A: Keep all the Greenstone stuff inside the gsdl3 directory, and just modify the environment that Tomcat runs in
    129132
    130 set LD_LIBRARY_PATH/PATH to include gsdl3/lib/jni directory.
     133set LD_LIBRARY_PATH (linux) or PATH (windows) to include gsdl3/lib/jni directory.
    131134add all the jar files in gsdl3/lib/jni directory to the CLASSPATH, then edit tomcats setclasspath.sh/bat to use the system CLASSPATH.
    132135(in setclasspath.bat, change
     
    150153B: Copy the files into Tomcat installation:
    151154Move 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.
     155Move 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.
    153156This has the advantage that you can use this for other webapps without modifying the Tomcat environment.
     157
     158
     159Once all these changes have been made, you will need to restart the Tomcat server for them to take effect.
    154160
    155161
Note: See TracChangeset for help on using the changeset viewer.