source: trunk/gsdl3/INSTALL@ 3385

Last change on this file since 3385 was 3380, checked in by kjdon, 22 years ago

revised

  • 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
36
373. set up the sample mgpp collection
38
39in sites/localsite/collect/mgppdemo/index/
40
41tar xzvf mgpp-indexfiles.tar.gz
42
43this is a collection built using mgpp in greenstone 2 - MGPPGDBMService works
44with this type of collection.
45
46Note, you can use the new Java Queryer program to query this collection (see
47RUNNING)
48
49
504. set up the servlet information for tomcat
51
52edit web/WEB-INF/web.xml
53
54in the init-param entries for the servlet, you need to change the siteshome
55and interfaces home params to reflect your installation setup. - should point to the sites and interfaces directories.
56
57in web, add symbolic links to your interfaces and sites directories
58
59is likely to be:
60ln -s ../interfaces
61ln -s ../sites
62
635. set up tomcat
64
65cd comms/tomcat/jakarta-tomcat-4.0.1
66
67edit bin/catalina.sh:
68
69on line 89 add $CLASSPATH to the CP="...." line ie. CP="$CLASSPATH:..." - this
70sets up the class path properly
71
72edit conf/server.xml:
73
74you need add a context for gsdl servlets
75add these lines (putting the correct path for GSDL3HOME)
76
77<!-- GSDL3 Service -->
78<Context path="/gsdl3" docBase="<GSDL3HOME>/web" debug="1" reloadable="true"/>
79
80when you edit server.xml, (or change web.xml in gsdl3/web/WEB-INF/web.xml) or
81change the classes, you need to shutdown and restart the server. also you may
82need to clear the cache of your browser
83
84(conf/server.xml is the place to change the port number if needed)
85
86
876. run tomcat
88
89to run tomcat, you need to have sourced setup.bash in GSDL3HOME to set up $CLASSPATH
90
91then cd to comms/tomcat/jakarta-tomcat-4.0.1/bin
92
93run ./startup.sh
94
95(to shut down tomcat, run ./shutdown.sh)
96
97the tomcat server can be accessed on the web via localhost:8080
98
99the greenstone stuff is at localhost:8080/gsdl3 - this uses index.html - has
100links to the test servlet and the greenstone servlets
101
102you should be able to run library from the index page
103
104System.out/err and cout/cerr go to comms/tomcat/jakarta-tomcat-4.0.1/logs/catalina.out - if need to debug stuff
105
1067. The test servlet
107
108a test servlet is provided to make sure you have tomcat set up properly
109
110in web/WEB-INF/classes, do 'javac TestServlet.java'
111
112you can click on the link on the gsdl3 index page to run the test.
113or can specify it directly:
114localhost:8080/gsdl3/testing
115
116the path 'testing' is determined by servlet-mapping entry in
117web/WEB-INF/web.xml
118
119
120
121USING SOAP TO TALK TO A REMOTE SITE
122
123this is needed if you have a setup such as for site1 - it uses a SOAP
124connection to site2.
125
1261. set up SOAP
127
128untar soap-bin-2.2.tar.gz in the comms/soap directory
129
130edit comms/tomcat/jakarta-tomcat-4.0.1/conf/server.xml
131
132add the following (put proper path for <GSDL3HOME>)
133
134<!-- SOAP Service -->
135<Context path="/soap" docBase="<GSDL3HOME>/comms/soap/soap-2_2/webapps/soap" debug="1" reloadable="true"/>
136
137
1382. set up SOAP Server:
139
140the class SOAPServer is a wrapper around a messagerouter - so can serve
141the collections
142
143it has a path hard coded in - need to set this to your appropriate site -
144for the example sites that I've set up, it should be <GSDL3HOME>/sites/site2
145
1463. deploy your service - SOAPServer
147
148you can access the soap service though the web, at http://localhost:8080/soap
149
150Run the admin client
151
152can list, deploy, undeploy soap services
153
154to deploy the SOAPServer for site2:
155
156edit the following fields in the deploy form:
157
158ID: org.greenstone.site2
159Scope: any will do: Request - new instantiation for each request
160 Session - same instantiation across a session
161 Application - only uses one instantiation
162
163Methods: process
164
165Java Provider / Provider Class: org.greenstone.gsdl3.SOAPServer
166
167then click deploy.
168hopefully all will be well.
169
1704. debugging soap:
171
172tomcat output goes to jakarta-tomcat-4.0.1/logs/catalina.out
173
174if you recompile the classes, you need to shutdown and restart tomcat to get
175the new classes.
176
177deployment info is retained between shutdown and start up - dont need to
178redeploy it each time.
179
180TcpTUnnelGui:
181
182this program allows you to view the actual soap messages
183
184run like:
185
186java org.apache.soap.util.net.TcpTunnelGui 8070 localhost 8080
187
188tomcat uses 8080, and you need to modify the greenstone stuff to talk to port
1898070 instead of 8080:
190
191sites/site1 is the site that talks to the SOAPServer for site2
192
193in site1/sitecfg.xml, in the address field, replace 8080 with 8070 when you
194want to use TcpTunnelGui.
195
196note that
197http://localhost:8080/soap/servlet/rpcrouter
198
199is the address for talking to the tomcat soap thingy.
200
201
Note: See TracBrowser for help on using the repository browser.