Deploying and Executing the CDShopCart Forte for Java Tutorial

To deploy and execute the CDShopCart Forte tutorial to the iPlanet Application Server you must perform some manual steps:
  1. Create the CDShopCart tutorial with an Oracle database instead of Pointbase.

    For the CDShopCart/WEB-INF/lib/dbtags.jar file:

    1. Extract dbtags.jar to a temporary location.
    2. Rename the taglib.tld file from the META-INF directory to dbtags.tld.
    3. Copy the dbtags.tld file to the CDShopCart directory.

      Be sure the file is at the same directory level as the WEB-INF directory.

    For the CDShopCart/WEB-INF/lib/ietags.jar file:

    1. Extract dbtags.jar to a temporary location.
    2. Rename the taglib.tld file from the META-INF directory to ietags.tld.
    3. Copy the ietags.tld file to the CDShopCart directory.

      Be sure the file is at the same directory level as the WEB-INF directory.

  2. Modify JSP taglib URI as dbtags or ietags for the ProductList.jsp and ShopCart.jsp files as follows:

    <%@taglib uri="dbtags" prefix="jdbc" %>
    <%@taglib uri="ietags" prefix="pr" %>

  3. Modify the Property sheet or WebApp Editor for each taglib in Forte as follows:

    For dbtags: uri=dbtags location=dbtags.tld
    For ietags: uri=ietags location=ietags.tld

  4. For the presentation JSP tag, change all the empty tags <pr:field name=" "/> to have end tags </pr:field> for the ProductList.jsp and ShopCart.jsp files as follows:

    <TD><pr:field name="id"/></TD>

    to

    <TD><pr:field name="id"> </pr:field> </TD>

  5. Add the missing import statement in the jsp files as follows:

    For the ShopCart.jsp file, the import line (second line) should look like this:
    <%@page import="java.util.*, Cart, CartLineItem" %>

    For the PlaceOrder.jsp file, add the following import line after the first line:
    <%@page import="Cart, CheckOutBean" %>

The classes under the WEB-INF\lib directory are not in the CLASSPATH of the JSP compiler. Once they are in the CLASSPATH, the JSPs are compiled and the tutorial runs properly. This is a known issue with the CLASSPATH handling of third party JSP tag extensions in iPlanet Application Server.

For example, on NT add d:\iplanet\ias6\ias\APPS\modules\CDShopCart\WEB-INF\lib to the front of Java CLASSPATH in the kregedit utility.

Note: You should check the CDShopCart\WEB-INF\lib\CDclasses.jar file after deploying or executing to make sure this file is not corrupted by the Compile All or Build All function. This is a known problem with Forte.

See also
  Using Advanced Features
Debugging a Web Module
Debugging an EJB Module


Legal Notices