Project

General

Profile

« Previous | Next » 

Revision 3192

Added by berkley over 17 years ago

file with installation instructions

View differences:

lib/ajax/INSTALL
1
Author: Chad Berkley
2
Date: 3/5/2007
3

  
4
This file covers deploying the gwt created ajax code and servlet to a non-google version of tomcat.  This allows for the installation of the servlet(s) along side a normal metacat installation.
5

  
6
1) Create a servlet on your tomcat instance called "rpc".  This is a simple servlet that just runs the gogle remote procedure call (rpc) services.  Use the web.xml file from the ./tomcat/webapps/ROOT/WEB-INF directory.  You'll also need to copy all of the gwt jar files from your gwt installation as well as all of the jar files in ./lib
7

  
8
2) copy ./src/org/kepler/web/service/KeplerServiceServlet.java to metacat/src/org/kepler/web/service/ and update the KeplerServiceServlet.java file with the correct url to your metacat servlet (line 6 in the code).  
9

  
10
3) run 'ant package' (from the ajax dir) and copy the newly created kepler-web.jar file to metacat/lib/
11

  
12
4) run 'ant install' from your metacat directory
13

  
14
5) make sure tomcat restarts
15

  
16
6) run ./KeplerClient-compile and copy the contents of the www directory to some web accessible location, then browse to the KeplerClient.html file and the javascript should run.  Note that you may need to update any hard coded servlet paths in the ajax code before copying the www files to the web location.
17

  
18
--------------------------------
19
If this doesn't work for some reason, keep in mind the main things you need.  They are:
20
* the rpc servlet
21
* the KeplerServiceServlet servlet.  In the web.xml file, I have called this 'gwt' so the address will be: http://server:8080/servletpath/gwt
22
* the compile javascript (ajax) code
23
* hard coded server/servlet paths correctly changed
24
* all jar files accessible to tomcat
25

  

Also available in: Unified diff