Assignment 1 - Due on
|
Last modified
Extra Credit: 2 extra points for getting all of the Chapter 4 links to work!
Note: I will also look on the Pace server to ensure you've uploaded your results.
Tomcat - http://jakarta.apache.org/tomcat/index.html (version 4.1.29)
Installation instructions - http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt
*** More help if needed - http://www.moreservlets.com/Using-Tomcat-4.html
Specifics about Pace's Matrix Server - http://csis.pace.edu/support/faq.htm
Additional Assistance - http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html
If you need to install Java (J2SE 1.4.2) - http://java.sun.com/j2se/. Also, for the User Interface example in Chapter 4, you will the Java Plug-In installed (JRE: http://web2.java.sun.com/products/plugin/index-1.4.1.html or http://www.java.com).
Caveat: Make sure you setup an environment variable JAVA_HOME which points to the JDK directory of your Java installation (i.e. on my machine it's D:\Sun\AppServer\jdk). I'm running Windows 2000 so in order to set this up, I went to Start menu, Settings submenu, Control Panel submenu, clicked System icon, choose Advanced tab, then clicked Environment Variables. I set it up in the System Variables.
Application Developer Guide - http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
Tomcat Manager (i.e. adding application "chapter04") - http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
TextPad - http://www.textpad.com/download/index.html
Setup Assistance - http://www.cs.arizona.edu/~stepp/workfromhome.html
Caveat: Make sure you setup a CLASSPATH environment variable and update your path.
SET PATH=%PATH%;
D:\Sun\AppServer\jdk\bin
SET CLASSPATH=.
Within TextPad (after installation), go to Configure menu, go to
Preferences submenu, open Tools and open Compile Java. In the Parameters
box, add the classpath parameter for your servlet.jar file (i.e. -classpath
D:\jakarta-tomcat-4.1.29\common\lib\servlet.jar $File).
Download updated code for Chap. 4, or, run Prof. Burns' examples for Chap. 4.
JSP Standard Tag Libraries 1.0 (JSTL on pgs 70-71) - also see http://jakarta.apache.org/taglibs/doc/standard-1.0-doc/intro.html. Setup directions can be found at http://java.sun.com/developer/technicalArticles/javaserverpages/faster/.
For more information on Servlet Filters - see Writing Servlet 2.3 Filters 05/10/2001, or, http://java.sun.com/products/servlet/Filters.html.
Apache AXIS version 1.1 - http://ws.apache.org/axis/download.cgi
Installation Instructions - http://ws.apache.org/axis/java/install.html Note: Locally the axis-1_1 directory should go under your Tomcat install directory (ie. D:\jakarta-tomcat-4.1.29). Copy the axis-1_1\webapps\axis to your Tomcat installation's webapps subdirectory. The end result should like something like this (D:\jakarta-tomcat-4.1.29\webapps\axis).
User's Guide - http://ws.apache.org/axis/java/user-guide.html
Xerces2 Java Parser 2.6 - http://xml.apache.org/xerces2-j/ Note: Make sure you setup a system environmental variable AXISCLASSPATH to point to your Xerces installation directory (i.e. D:\jakarta-tomcat-4.1.29\xerces-2_6_1).
Local test - http://localhost:8080/axis/happyaxis.jsp
Errata - on pg 86, 3rd paragraph - you will not find an xerces.jar file. See instructions for AXIS for directions.
Errata - on pg 90 - Generating the HelloWorldService client
java -cp %AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java http://localhost:8080/axis/HelloWorldService.jws?wsdl
For more information on WSDL2Java see http://ws.apache.org/axis/java/reference.html
*** To understand the relationship between SOAP and WSDL, imagine a restaurant. The SOAP request is the order the server jots down and brings to the kitchen. The SOAP response is the food served. The WSDL document is the menu.
Download some of the updated code for Chap. 5 (read the readme.txt file in the zip). Also see your peers input/solutions on the discussion board. Run Prof. Burns' examples for Chap. 5.
Background on XML Schemas - http://www.w3schools.com/schema/default.asp - and XSLT stylesheets - http://www.w3schools.com/xsl/default.asp.
Note: Regarding Instant Saxon - referenced on pg 113 - Instant Saxon relies on the Microsoft Java VM, which is no longer shipped with new versions of Windows. New users are therefore recommended to use the full Saxon product, which works with the Sun Java VM. Note that Saxon performs considerably better using Sun JDK 1.4 than using the Microsoft Java VM, so for production use, the full product should be downloaded. From version 7.0 onwards, Instant Saxon is no longer available, because Saxon now requires JDK 1.2 or later. Download can be found at http://sourceforge.net/project/showfiles.php?group_id=29872&package_id=21888&release_id=197086. Additional information can be found at http://saxon.sourceforge.net/saxon7.8/index.html.
For more information on servlets and the APIs - http://localhost:8080/tomcat-docs/servletapi/index.html.
Download some of the updated code for Chap. 6. Run Prof. Burns' examples for Chap. 6. Also see your peers input/solutions on the discussion board. Note: You should look at the code and change any references specific to your server and class packages (i.e. in ThaiPalaceMenuService.jws).
If you'd LIKE to use 2 ports locally, one for the server and one for the client, with Tomcat 4.1.29, you don't need to install 2 times Tomcat. You can install the codebase once, and then have 2 difference independent instances by using the CATALINA_BASE environment variable. Check out (4) Advanced Configuration - Multiple Tomcat 4 Instances from the Install and Run document.
Additional Information
jar files (fyi ... war files are also jar files) - http://java.sun.com/docs/books/tutorial/jar/basics/