source: trunk/gsdl3/install-soap.bash@ 5999

Last change on this file since 5999 was 5971, checked in by kjdon, 20 years ago

changed SOAPServer.java class to SOARServer.java.in so dont get annoying messages about modified file from cvs

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1#!/bin/bash -v
2
3#unpack soap
4
5cd comms/soap
6tar xzf soap-bin-2.2.tar.gz
7ln -s soap-2_2 soap
8cd $GSDL3HOME
9
10#add the soap context to tomcat config file
11cat comms/jakarta/tomcat/conf/server.xml | sed "s,<\!-- Tomcat Root Context -->,<\!-- SOAP Service --><Context path=\"/soap\" docBase=\"$GSDL3HOME/comms/soap/soap/webapps/soap\" debug=\"1\" reloadable=\"true\"/><\!-- Tomcat Root Context -->," > server.xml
12mv comms/jakarta/tomcat/conf/server.xml comms/jakarta/tomcat/conf/server.bak.xml
13mv server.xml comms/jakarta/tomcat/conf/server.xml
14
15#edit the SOAPServer class
16cat src/java/org/greenstone/gsdl3/SOAPServer.java.in | sed "s&@gsdl3home@&$GSDL3HOME&" > src/java/org/greenstone/gsdl3/SOAPServer.java
17#mv src/java/org/greenstone/gsdl3/SOAPServer.java src/java/org/greenstone/gsdl3/SOAPServer.java.bak
18#mv SOAPServer.java src/java/org/greenstone/gsdl3/SOAPServer.java
19
20# now remake the class
21cd src/java/org/greenstone/gsdl3
22make
23make install
24cd $GSDL3HOME
25
26#deploy the service
27comms/jakarta/tomcat/bin/shutdown.sh
28comms/jakarta/tomcat/bin/startup.sh
29
30# IMPORTANT!!!!!!!!!!!!!!
31# the following command is supposed to deploy the service but it doesn't
32# work inside bash, so you need to cut and paste it onto the command line
33# and retry it.
34java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy resources/soap/localsite.xml
35
Note: See TracBrowser for help on using the repository browser.