vgritsenko    2003/12/12 15:33:44

  Added:       java/examples/addressbook README
  Log:
  Addressbook -> addressbook
  
  Revision  Changes    Path
  1.1                  xml-xindice/java/examples/addressbook/README
  
  Index: README
  ===================================================================
  
                   --- Xindice address book example ---
  
  
  This code is an example application using Xindice and the XML:DB api with
  jsp and servlets to provide an online address book.
  
  Tomcat 3.2
  
  If at all possible you should use Tomcat 4 as installation is much simpler, 
but
  Tomcat 3.2 will work as well with a little extra effort.
  
  1. Make sure your current working directory is the directory where this README
     file resides. If not, type.
     
     (on UNIX)
     cd $XINDICE_HOME/java/examples/addressbook
     
     (on Windows)
     cd %XINDICE_HOME%\java\examples\addressbook
  
  2. Add the servlet.jar file from Tomcat to your classpath.
  
     CLASSPATH=path_to_your_tomcat_install/lib/servlet.jar
     export CLASSPATH
     
  3. Build the addressbook.war. The war is built by the ant script
     
     (on UNIX)
     $XINDICE_HOME/bin/ant
     
     (on Windows)
     %XINDICE_HOME%\bin\ant
     
  4. You should find the file addressbook.war in the current directory. This 
file
     should be copied into the webapps directory of your tomcat installation.
  
  5. Place a copy of xerces.jar (From $XINDICE_HOME/java/lib) in Tomcat's lib
     directory, renaming the file to ensure that it will be first in the
     classpath. (Yes this is a kludge, but necessary since Tomcat is using it's
     own XML parser that is incompatible with Xindice) If the version of xerces 
you
     find in your Xindice distribution is different just use it and change the
     numbers accordingly.
  
     Example...
  
       cp $XINDICE_HOME/java/lib/xerces-1.3.0.jar 
$TOMCAT_HOME/lib/1xerces-1.3.0.jar
        
  6. Copy the following jar files to your Tomcat lib directory. The same 
directory
     where you just copied Xerces.
  
     From $XINDICE_HOME/java/lib. Again adjust the versions if necessary
  
        xindice.jar
        xmldb.jar
        xalan-2.2.D11.jar
  
  7. Make sure Xindice is running, follow the INSTALL instructions to start it 
if
     it isn't.
        
  8. Start Tomcat
        
     (on UNIX)
     $TOMCAT_HOME/bin/startup.sh
     
     (on Windows)
     %TOMCAT_HOME%\bin\startup.bat
  
  9. Finished - You should now be able to load the addressbook.
      http://localhost:8888/addressbook
  
  If you have problems please post you questions on the Xindice users
  mailing list.
  
  
  

Reply via email to