Changeset 3561
- Timestamp:
- 2002-11-25T13:46:02+13:00 (21 years ago)
- Location:
- trunk/gsdl3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/CHANGES
r3393 r3561 1 2002/11/25 ****************************** 2 3 haven't kept up with comments :-( 4 Installation has been changed - now uses a script to carry out the stuff that 5 was previously done by hand. 6 7 1 8 2002/08/23 ****************************** 2 9 -
trunk/gsdl3/INSTALL
r3393 r3561 1 1 INSTALLATION GUIDE FOR GSDL3 2 2 3 1. you also need to get mgpp code - comes in a separate checkout. 4 I once added a directory for mgpp into gsdl3/packages in cvs - now I cant get 5 rid of it, so you need to delete it before you start. 6 cd packages 7 rm -r mgpp 8 cvs co mgpp 9 cd mgpp 10 ./configure --prefix <gsdl3home> 11 make 12 make install 13 cd ../.. 3 This stuff is all done by a script now: 4 need to carry out the following: 14 5 15 Note: you need to use your gsdl3 home directory as the prefix for configure 16 at this stage - mgpp has been set up properly, but gsdl3 hasn't 6 source setup.bash 7 install.bash 8 9 if you want to use soap, also run 10 install-soap.bash 17 11 18 12 19 2. Make the gsdl3 stuff20 21 First need to unpack the tomcat stuff, cos we use a jar file from there22 23 cd comms/tomcat/24 25 tar xzvf jakarta-tomcat-4.0.1.tar.gz26 27 cd ../..28 29 source setup.bash - to set up your CLASSPATH30 31 do a 'make', then 'make install', in each of the following directories32 33 src/java/org/greenstone/gdbm34 src/java/org/greenstone/testing35 src/java/org/greenstone/gsdl336 src/java/org/greenstone/applet/phind37 38 3. set up the sample mgpp collection39 40 in sites/localsite/collect/mgppdemo/index/41 42 tar xzvf mgpp-indexfiles.tar.gz43 44 this is a collection built using mgpp in greenstone 2 - MGPPGDBMService works45 with this type of collection.46 47 Note, you can use the new Java Queryer program to query this collection (see48 RUNNING)49 50 51 4. set up the servlet information for tomcat52 53 edit web/WEB-INF/web.xml54 55 in the init-param entries for the servlet, you need to change the siteshome56 and interfaces home params to reflect your installation setup. - should point to the sites and interfaces directories.57 58 in web, add symbolic links to your interfaces, sites and lib directories59 60 is likely to be:61 ln -s ../interfaces62 ln -s ../sites63 ln -s ../lib64 65 5. set up tomcat66 67 cd comms/tomcat/jakarta-tomcat-4.0.168 69 edit bin/catalina.sh:70 71 on line 89 add $CLASSPATH to the CP="...." line ie. CP="$CLASSPATH:..." - this72 sets up the class path properly73 74 edit conf/server.xml:75 76 you need add a context for gsdl servlets77 add these lines (putting the correct path for GSDL3HOME)78 79 <!-- GSDL3 Service -->80 <Context path="/gsdl3" docBase="<GSDL3HOME>/web" debug="1" reloadable="true"/>81 82 when you edit server.xml, (or change web.xml in gsdl3/web/WEB-INF/web.xml) or83 change the classes, you need to shutdown and restart the server. also you may84 need to clear the cache of your browser85 86 (conf/server.xml is the place to change the port number if needed)87 88 89 6. run tomcat90 91 to run tomcat, you need to have sourced setup.bash in GSDL3HOME to set up $CLASSPATH92 93 then cd to comms/tomcat/jakarta-tomcat-4.0.1/bin94 95 run ./startup.sh96 97 (to shut down tomcat, run ./shutdown.sh)98 99 the tomcat server can be accessed on the web via localhost:8080100 101 the greenstone stuff is at localhost:8080/gsdl3 - this uses index.html - has102 links to the test servlet and the greenstone servlets103 104 you should be able to run library from the index page105 106 System.out/err and cout/cerr go to comms/tomcat/jakarta-tomcat-4.0.1/logs/catalina.out - if need to debug stuff107 108 7. The test servlet109 110 a test servlet is provided to make sure you have tomcat set up properly111 112 in web/WEB-INF/classes, do 'javac TestServlet.java'113 114 you can click on the link on the gsdl3 index page to run the test.115 or can specify it directly:116 localhost:8080/gsdl3/testing117 118 the path 'testing' is determined by servlet-mapping entry in119 web/WEB-INF/web.xml120 121 122 123 USING SOAP TO TALK TO A REMOTE SITE124 125 this is needed if you have a setup such as for site1 - it uses a SOAP126 connection to site2.127 128 1. set up SOAP129 130 untar soap-bin-2.2.tar.gz in the comms/soap directory131 132 edit comms/tomcat/jakarta-tomcat-4.0.1/conf/server.xml133 134 add the following (put proper path for <GSDL3HOME>)135 136 <!-- SOAP Service -->137 <Context path="/soap" docBase="<GSDL3HOME>/comms/soap/soap-2_2/webapps/soap" debug="1" reloadable="true"/>138 139 140 2. set up SOAP Server:141 142 the class SOAPServer is a wrapper around a messagerouter - so can serve143 the collections144 145 it has a path hard coded in - need to set this to your appropriate site -146 for the example sites that I've set up, it should be <GSDL3HOME>/sites/site2147 148 3. deploy your service - SOAPServer149 150 you can access the soap service though the web, at http://localhost:8080/soap151 152 Run the admin client153 154 can list, deploy, undeploy soap services155 156 to deploy the SOAPServer for site2:157 158 edit the following fields in the deploy form:159 160 ID: org.greenstone.site2161 Scope: any will do: Request - new instantiation for each request162 Session - same instantiation across a session163 Application - only uses one instantiation164 165 Methods: process166 167 Java Provider / Provider Class: org.greenstone.gsdl3.SOAPServer168 169 then click deploy.170 hopefully all will be well.171 172 4. debugging soap:173 174 tomcat output goes to jakarta-tomcat-4.0.1/logs/catalina.out175 176 if you recompile the classes, you need to shutdown and restart tomcat to get177 the new classes.178 179 deployment info is retained between shutdown and start up - dont need to180 redeploy it each time.181 182 TcpTUnnelGui:183 184 this program allows you to view the actual soap messages185 186 run like:187 188 java org.apache.soap.util.net.TcpTunnelGui 8070 localhost 8080189 190 tomcat uses 8080, and you need to modify the greenstone stuff to talk to port191 8070 instead of 8080:192 193 sites/site1 is the site that talks to the SOAPServer for site2194 195 in site1/sitecfg.xml, in the address field, replace 8080 with 8070 when you196 want to use TcpTunnelGui.197 198 note that199 http://localhost:8080/soap/servlet/rpcrouter200 201 is the address for talking to the tomcat soap thingy.202 203 -
trunk/gsdl3/RUNNING
r3393 r3561 1 Note: when running the localhost:8080/gsdl3/library, only the mgppdemo 2 c ollectioncan do anything useful.1 Note: when running the localhost:8080/gsdl3/library, only the mgppdemo and 2 chinese demo collections can do anything useful. 3 3 4 4 ******************************************************* … … 7 7 Sites contain collections. Interfaces contain images and xslts. 8 8 9 There are 3sites in this prototype example.9 There are 2 sites in this prototype example. 10 10 11 11 sites/localsite is a standalone site, like used by a local library. It has 12 12 no connections to any other sites. 13 13 14 sites/site1 is a site that specifies a SOAP connection to another site: site214 sites/site1 is a site that specifies a SOAP connection to another site: localsite 15 15 16 sites/site2 can be run as a local site also. 17 18 to run site1, and talk to site2 via SOAP, you need to have apache tomcat installed,running, and serving site2. (see INSTALL) 16 to run site1, and talk to localsite via SOAP, you need to have apache tomcat installed, running, and serving site2. (see INSTALL) 19 17 20 18 You can add other sites by putting a directory in the sites directory, and … … 29 27 30 28 XSL Files: when an xslt file is to be used, eg home.xsl, it is looked for in 31 several places: in current site/transform, current interface/transform, and 32 finally default/transform 29 several places: in sites/current site/transform, interfaces/current interface/transform, and finally interfaces/default/transform 33 30 34 31 so you can change the interface by adding new xslt files to these three places. 35 Note, if a stylesheet includes another one, eg they all include style.xsl,36 the included one needs to be in the same directory - ie you need to either37 create a new one, or copy the default one to the new location.38 32 39 33 ****************************************************** … … 48 42 Currently, only Text search works. 49 43 50 to change the interface language, you can add &l=fr to the url. fr is the 51 only alternative to en at the moment. 44 to change the interface language, you can add &l=fr to the url. However, there are no alternative langs at the moment. 52 45 53 46 ******************************************************* … … 102 95 103 96 <message lang="en"> 104 <request type="action" info="q/text">97 <request type="action" action="q" subaction="text"> 105 98 <paramList> 106 99 <param name="q" value="the"/> … … 114 107 115 108 home page: 116 <message lang="en"><request type="action" info="p/home"/></message>109 <message lang="en"><request type="action" action="p" subaction="home" /></message> 117 110 118 111 about page for mgppdemo: 119 <message lang="en"><request type="action" info="p/about"><paramList><param name="c" value="mgppdemo"/></paramList></request></message>112 <message lang="en"><request type="action" action="p" subaction="about""><paramList><param name="c" value="mgppdemo"/></paramList></request></message> 120 113 121 114 search for frog in mgppdemo: (no docs returned) 122 <message lang="en"><request type="action" info="q/text"><paramList><param name="c" value="mgppdemo"/><param name="q" value="frog"/><param name="md" value="10"/></paramList></request></message>115 <message lang="en"><request type="action" action="q" subaction="text"><paramList><param name="c" value="mgppdemo"/><param name="q" value="frog"/><param name="md" value="10"/></paramList></request></message> 123 116 124 117 search for frog in mgppdemo, with stemming on: (some docs returned) 125 <message lang="en"><request type="action" info="q/text"><paramList><param name="c" value="mgppdemo"/><param name="q" value="frog"/><param name="md" value="10"/><param name="s" value="1"/></paramList></request></message>118 <message lang="en"><request type="action" action="q" subaction="text""><paramList><param name="c" value="mgppdemo"/><param name="q" value="frog"/><param name="md" value="10"/><param name="s" value="1"/></paramList></request></message> 126 119 127 120
Note:
See TracChangeset
for help on using the changeset viewer.