Wrox Programmer Forums
|
BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2
This is the forum to discuss the Wrox book Beginning Spring Framework 2 by Thomas Van de Velde, Bruce Snyder, Christian Dupuis, Sing Li, Anne Horton, Naveen Balani; ISBN: 9780470101612
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 5th, 2010, 05:03 PM
Registered User
 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to run AlbumDaoTest (Part 1)

1. Make sure that you have executed all the steps listed in appendix C

2. Add -Dexec.classpathScope=test to the "mvn exec:java . . ." command

Doing this will at least find the test classes during execution and eliminates the need to copy them under target/classes

Although a number of the PIX database objects are created during the deployment of the pixweb-0.0.1.war to Tomcat, the sequences don't appear to be among that list. Therefore, the test programs will fail with something like the following:

Caused by: org.springframework.dao.DataAccessResourceFailureE xception: Could not obtain identity(); nested exception is java.sql.SQLException: Table not found in statement [insert into ALBUM_SEQUENCE]

I'm assuming this will also be rectified as I work my way through the book.

If not, as pointed out earlier, the definitions for all of the PIX DB objects appear to be located in wrox-pix-web/src/test/resources/pixhsql.sql

If I find out the magic needed to automatically create the required DB sequences, that comes in Part 2





Similar Threads
Thread Thread Starter Forum Replies Last Post
AlbumDaoTest Alexander_5 BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 0 June 21st, 2008 05:47 AM
What web part have they used? sharepointbaby BOOK: Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 ISBN: 978-0-470-12449-9 0 May 30th, 2008 08:51 PM
Run bat file as part of Setup project adorable.ashish General .NET 0 March 5th, 2008 07:42 AM
How can I run or not run Google AD in my ASP.NET w mycwcgr ASP.NET 2.0 Professional 0 November 5th, 2007 07:18 AM
Part Solution... Aaron_j XSLT 0 July 28th, 2005 08:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.