Changeset 3282


Ignore:
Timestamp:
2002-07-30T09:24:16+12:00 (22 years ago)
Author:
kjdon
Message:

changed organisation a bit, added servlet info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/README

    r3254 r3282  
    11initial prototype of gsdl3
    22
    3 see INSTALL for a brief set of installation instructions
     32002/07/30 *********************************
     4
     5think we will use java servlets rather than cgi. can use tomcat to serve our
     6servlets as well as for the soap stuff (in fact, rpcrouter is a servlet that
     7does soap stuff)
     8
     9I have added a test html page, and a test servlet.
     10
     11tomcat should already be installed (if not, see below).
     12
     13you need to edit the tomcat conf/server.xml to add a context for gsdl servlets
     14add this line near the soap one:
     15
     16    <!-- GSDL3 Service -->
     17    <Context path="/gsdl3" docBase="<GSDLHOME>/web" debug="1" reloadable="true"/>
     18
     19when you edit server.xml, (or change web.xml in gsdl3/web/WEB-INF/web.xml) or
     20change the classes, you need to shutdown and restart the server. also you may
     21need to clear the cache of your browser
     22
     23once you have made the test servlet class,
     24(in web/WEB-INF/classes, javac TestServlet.java)
     25you can run it.
     26
     27localhost:8080/gsdl3 should get you the index page - can click on the link to
     28run the test. or can specify it directly:
     29localhost:8080/gsdl3/testing
     30
     31the path 'testing' is determined by servlet-mapping entry in
     32web/WEB-INF/web.xml
     33
     342002/07/16 *********************************
     35
     36MGPP java wrapper
     37
     38a java interface has been added for mgpp.
     39
     40the java code is in src/java/org/greenstone/mgpp
     41the cpp code in src/cpp/jni/mgpp
     42
     43you need to run make in the java part before the cpp part, as the java stuff
     44creates the jni header file for the cpp side
     45
     46in src/java/org/greenstone/mgpp do:
     47make
     48make install
     49
     50in src/cpp/jni/mgpp do:
     51make
     52make install
     53
     54run the Queryer:
     55java org.greenstone.mgpp.Queryer <basedir> <indexdir> <textdir>
     56
     57eg if have a mgpp collection in gsdl/collect/mgppdemo
     58java org...Queryer gsdl/collect/mgppdemo/index tt/mgppdemo text/mgppdemo
     59
     60for this to work (termporarily) you need to get the mgpp source from gsdl as
     61it hasn't been added to gsdl3 cvs yet
     62
     63if you already have gsdl installed, then build a collection using mgpp (see
     64greenstone doc and source collection at nzdl2.cs.waikato.ac.nz for more info - search for mgpp)
     65
     66you need to edit the src/cpp/jni/mgpp Makefile to set the correct include
     67directories.
     68also copy gsdl/src/mgpp/lib/libmg.a and gsdl/src/mgpp/text/libtextin.a to
     69gsdl3/lib/cpp
     70
     71(and if you want 'make test' to work in src/java/org/greenstone/mgpp you need to change the command to run)
     72
     73the make steps above should now work.
     74
     75if you dont have gsdl yet, do:
     76cvs co gsdl
     77cd gsdl
     78./configure
     79make
     80make install
     81
     82then build collections etc (good luck)
     83
     842002/07/05 *******************************
    485
    586only for linux
     
    176257
    177258-------------------------------------------------------------------
    178 MGPP java wrapper
    179 
    180 a java interface has been added for mgpp.
    181 
    182 the java code is in src/java/org/greenstone/mgpp
    183 the cpp code in src/cpp/jni/mgpp
    184 
    185 you need to run make in the java part before the cpp part, as the java stuff
    186 creates the jni header file for the cpp side
    187 
    188 in src/java/org/greenstone/mgpp do:
    189 make
    190 make install
    191 
    192 in src/cpp/jni/mgpp do:
    193 make
    194 make install
    195 
    196 run the Queryer:
    197 java org.greenstone.mgpp.Queryer <basedir> <indexdir> <textdir>
    198 
    199 eg if have a mgpp collection in gsdl/collect/mgppdemo
    200 java org...Queryer gsdl/collect/mgppdemo/index tt/mgppdemo text/mgppdemo
    201 
    202 for this to work (termporarily) you need to get the mgpp source from gsdl as
    203 it hasn't been added to gsdl3 cvs yet
    204 
    205 if you already have gsdl installed, then build a collection using mgpp (see
    206 greenstone doc and source collection at nzdl2.cs.waikato.ac.nz for more info - search for mgpp)
    207 
    208 you need to edit the src/cpp/jni/mgpp Makefile to set the correct include
    209 directories.
    210 also copy gsdl/src/mgpp/lib/libmg.a and gsdl/src/mgpp/text/libtextin.a to
    211 gsdl3/lib/cpp
    212 
    213 (and if you want 'make test' to work in src/java/org/greenstone/mgpp you need to change the command to run)
    214 
    215 the make steps above should now work.
    216 
    217 if you dont have gsdl yet, do:
    218 cvs co gsdl
    219 cd gsdl
    220 ./configure
    221 make
    222 make install
    223 
    224 then build collections etc (good luck)
    225 
    226 
    227 
    228 
     259
     260
     261
     262
Note: See TracChangeset for help on using the changeset viewer.