Project

General

Profile

« Previous | Next » 

Revision 3195

Added by berkley over 17 years ago

updated the ajax code to make it easier to install. also updated the installation instructions.

View differences:

INSTALL
1 1
Author: Chad Berkley
2 2
Date: 3/5/2007
3 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.
4
This file covers deploying the gwt created ajax code and servlet to a non-google
5
version of tomcat.  This allows for the installation of the servlet(s) along 
6
side a normal metacat installation.  This file assumes you've already done 
7
the steps highlighted in the README file.
5 8

  
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
9
1) Create a servlet on your tomcat instance called "rpc".  This is a simple 
10
servlet that just runs the google remote procedure call (rpc) services.  Use 
11
the web.xml file from the ./tomcat/webapps/ROOT/WEB-INF directory.  You'll 
12
also need to copy all of the gwt jar files from your gwt installation as well 
13
as all of the jar files in ./lib.  Use the gwt-user.jar and gwt-dev.jar from 
14
metacat/lib.  If you use the ones from the gwt distro, tomcat won't load them
15
due to the presence of javax.servlet.Servlet.
7 16

  
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).  
17
2) copy ./src/org/kepler/web/service/KeplerServiceServlet.java to 
18
metacat/src/org/kepler/web/service/ and update the KeplerServiceServlet.java 
19
Edit the file with the correct url to your metacat servlet (line 6 in the code).  
20
Make sure the moduleRelativeURL exactly matches the url that will be browsed
21
to!  I.E. Don't use "localhost" if you intend to browse to an actual machine
22
name.  This confuses the RPC and will cause problems.
9 23

  
10
3) run 'ant package' (from the ajax dir) and copy the newly created kepler-web.jar file to metacat/lib/
24
3) run 'ant package' (from the ajax dir) and copy the newly created 
25
kepler-web.jar file to metacat/lib/.  Make sure you updated the hard coded
26
servlet paths in the java code before doing this.
11 27

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

  
14 30
5) make sure tomcat restarts
15 31

  
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.
32
6) run ./KeplerClient-compile and copy the contents of the www directory 
33
to some web accessible location, then browse to the KeplerClient.html file 
34
and the javascript should run.  
17 35

  
18 36
--------------------------------
19
If this doesn't work for some reason, keep in mind the main things you need.  They are:
37
If this doesn't work for some reason, keep in mind the main things you need.  
38
They are:
20 39
* 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
40
* the KeplerServiceServlet servlet.  In the web.xml file, I have called this 
41
  'gwt' so the address will be: http://server:8080/servletpath/gwt
42
* the compiled javascript (ajax) code
23 43
* hard coded server/servlet paths correctly changed
24 44
* all jar files accessible to tomcat
25 45

  

Also available in: Unified diff