Wrox Home  

Topic: Java

Beginning Spring Framework 2 (047010161X) cover image

Beginning Spring Framework 2

Thomas Van de Velde, Bruce Snyder, Christian Dupuis, Sing Li, Anne Horton, Naveen Balani
ISBN: 978-0-470-10161-2
472 pages
December 2007
This title is out-of-print and not currently available for purchase from this site.

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
47 Error in Directory
"Trying it Out -- Creating Unit Test Cases"
bullet item 1. says,
wrox-pix-web\test\java\com\wrox\beginspring\pix\model directory
Should be:
61 Error in Text
In Step 3 on Page 61, the following text should be added:

If you look under wrox-pix-web/src/test/resources, you will find a file named pixhsql.sql This file is an SQL command file. Load it into a text editor to view if you are curious. It basically contains the SQL commands to create the required tables.

You should first run the following command to create the tables:

java -cp ./target/pixweb-0.0.1/WEB-INF/lib/hsqldb- org.hsqldb.util.SqlTool pix-sa src/test/resources/pixhsql.sql

The output you will see is:

1 row updated
1 row updated

The above must be executed before using the following command as detailed in Step 3 on Page 61:

java -cp ./target/pixweb-0.0.1/WEB-INF/lib/hsqldb- org.hsqldb.util.SqlTool pix-sa
62 Error in Text
On Page 62, Step 4, the command to execute the AlbumDaoTest needs to be modified slightly:

mvn exec:java -Dexec.classpathScope=test -Dexec.mainClass=com.wrox.beginspring.pix.dao.examples.AlbumDaoTest

The additional -Dexec.classpathScope=test tells Maven to include the default test classpath when looking for Java classes to execute.
Printer-Ready Version   Share This
With you wherever you go: pdf + ePub + kindle -- DRM-free