source: trunk/gsdl3/INSTALL@ 3476

Last change on this file since 3476 was 3393, checked in by kjdon, 22 years ago

added phind applet

  • Property svn:keywords set to Author Date Id Revision
File size: 5.2 KB
Line 
1INSTALLATION GUIDE FOR GSDL3
2
31. you also need to get mgpp code - comes in a separate checkout.
4I once added a directory for mgpp into gsdl3/packages in cvs - now I cant get
5rid of it, so you need to delete it before you start.
6cd packages
7rm -r mgpp
8cvs co mgpp
9cd mgpp
10./configure --prefix <gsdl3home>
11make
12make install
13cd ../..
14
15Note: you need to use your gsdl3 home directory as the prefix for configure
16at this stage - mgpp has been set up properly, but gsdl3 hasn't
17
18
192. Make the gsdl3 stuff
20
21First need to unpack the tomcat stuff, cos we use a jar file from there
22
23cd comms/tomcat/
24
25tar xzvf jakarta-tomcat-4.0.1.tar.gz
26
27cd ../..
28
29source setup.bash - to set up your CLASSPATH
30
31do a 'make', then 'make install', in each of the following directories
32
33src/java/org/greenstone/gdbm
34src/java/org/greenstone/testing
35src/java/org/greenstone/gsdl3
36src/java/org/greenstone/applet/phind
37
383. set up the sample mgpp collection
39
40in sites/localsite/collect/mgppdemo/index/
41
42tar xzvf mgpp-indexfiles.tar.gz
43
44this is a collection built using mgpp in greenstone 2 - MGPPGDBMService works
45with this type of collection.
46
47Note, you can use the new Java Queryer program to query this collection (see
48RUNNING)
49
50
514. set up the servlet information for tomcat
52
53edit web/WEB-INF/web.xml
54
55in the init-param entries for the servlet, you need to change the siteshome
56and interfaces home params to reflect your installation setup. - should point to the sites and interfaces directories.
57
58in web, add symbolic links to your interfaces, sites and lib directories
59
60is likely to be:
61ln -s ../interfaces
62ln -s ../sites
63ln -s ../lib
64
655. set up tomcat
66
67cd comms/tomcat/jakarta-tomcat-4.0.1
68
69edit bin/catalina.sh:
70
71on line 89 add $CLASSPATH to the CP="...." line ie. CP="$CLASSPATH:..." - this
72sets up the class path properly
73
74edit conf/server.xml:
75
76you need add a context for gsdl servlets
77add these lines (putting the correct path for GSDL3HOME)
78
79<!-- GSDL3 Service -->
80<Context path="/gsdl3" docBase="<GSDL3HOME>/web" debug="1" reloadable="true"/>
81
82when you edit server.xml, (or change web.xml in gsdl3/web/WEB-INF/web.xml) or
83change the classes, you need to shutdown and restart the server. also you may
84need to clear the cache of your browser
85
86(conf/server.xml is the place to change the port number if needed)
87
88
896. run tomcat
90
91to run tomcat, you need to have sourced setup.bash in GSDL3HOME to set up $CLASSPATH
92
93then cd to comms/tomcat/jakarta-tomcat-4.0.1/bin
94
95run ./startup.sh
96
97(to shut down tomcat, run ./shutdown.sh)
98
99the tomcat server can be accessed on the web via localhost:8080
100
101the greenstone stuff is at localhost:8080/gsdl3 - this uses index.html - has
102links to the test servlet and the greenstone servlets
103
104you should be able to run library from the index page
105
106System.out/err and cout/cerr go to comms/tomcat/jakarta-tomcat-4.0.1/logs/catalina.out - if need to debug stuff
107
1087. The test servlet
109
110a test servlet is provided to make sure you have tomcat set up properly
111
112in web/WEB-INF/classes, do 'javac TestServlet.java'
113
114you can click on the link on the gsdl3 index page to run the test.
115or can specify it directly:
116localhost:8080/gsdl3/testing
117
118the path 'testing' is determined by servlet-mapping entry in
119web/WEB-INF/web.xml
120
121
122
123USING SOAP TO TALK TO A REMOTE SITE
124
125this is needed if you have a setup such as for site1 - it uses a SOAP
126connection to site2.
127
1281. set up SOAP
129
130untar soap-bin-2.2.tar.gz in the comms/soap directory
131
132edit comms/tomcat/jakarta-tomcat-4.0.1/conf/server.xml
133
134add 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
1402. set up SOAP Server:
141
142the class SOAPServer is a wrapper around a messagerouter - so can serve
143the collections
144
145it has a path hard coded in - need to set this to your appropriate site -
146for the example sites that I've set up, it should be <GSDL3HOME>/sites/site2
147
1483. deploy your service - SOAPServer
149
150you can access the soap service though the web, at http://localhost:8080/soap
151
152Run the admin client
153
154can list, deploy, undeploy soap services
155
156to deploy the SOAPServer for site2:
157
158edit the following fields in the deploy form:
159
160ID: org.greenstone.site2
161Scope: any will do: Request - new instantiation for each request
162 Session - same instantiation across a session
163 Application - only uses one instantiation
164
165Methods: process
166
167Java Provider / Provider Class: org.greenstone.gsdl3.SOAPServer
168
169then click deploy.
170hopefully all will be well.
171
1724. debugging soap:
173
174tomcat output goes to jakarta-tomcat-4.0.1/logs/catalina.out
175
176if you recompile the classes, you need to shutdown and restart tomcat to get
177the new classes.
178
179deployment info is retained between shutdown and start up - dont need to
180redeploy it each time.
181
182TcpTUnnelGui:
183
184this program allows you to view the actual soap messages
185
186run like:
187
188java org.apache.soap.util.net.TcpTunnelGui 8070 localhost 8080
189
190tomcat uses 8080, and you need to modify the greenstone stuff to talk to port
1918070 instead of 8080:
192
193sites/site1 is the site that talks to the SOAPServer for site2
194
195in site1/sitecfg.xml, in the address field, replace 8080 with 8070 when you
196want to use TcpTunnelGui.
197
198note that
199http://localhost:8080/soap/servlet/rpcrouter
200
201is the address for talking to the tomcat soap thingy.
202
203
Note: See TracBrowser for help on using the repository browser.