JSF: Duke's Book Store

An online bookstore application used in the J2EE 1.4 tutorial. The example demonstrates an online shopping application. Users can select books from a catalog and add them to a shopping cart.

Concepts Demonstrated by this Sample

How to Open the Sample

Select File > New > Example.

In the New Example wizard select JSF > Duke's Book Store and click Next > Finish.

To Configure WebLogic Server

If you want to run this sample on WebLogic Server, follow the instructions below to configure the IDE to use WebLogic Server:


Note that this sample cannot be run on WebLogic Server version 8.1.

Running the Sample on WebSphere 6.0

A known issue prevents this sample from running properly on WebSphere 6.0. (WebSphere 6.0 does not properly handle the <include-prelude> and <include-code> declarations in web.xml.)

You can workaround the issue by manually copying the taglib declarations in bookStore/template/prelude.jspf and code.jspf to all of the pages in the web application and refresh.

Running the Sample on JBoss 4.0.5GA

When running this sample on JBoss 4.0.5GA, there is a conflict between the Sun JSF Reference Implementation JAR files in the Dukes's Bookstore sample and the MyFaces JSF implementation JAR files shipped by JBoss.

To resolve the conflict, remove the MyFaces JAR files located in the following directory and restart the server:

   jboss-4.0.5.GA\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs