Topic: Java

Professional Java Development with the Spring Framework (0764574833) cover image

Professional Java Development with the Spring Framework

Rod Johnson, Jürgen Höller, Alef Arendsen, Thomas Risberg, Colin Sampaleanu
ISBN: 978-0-7645-7483-2
Paperback
676 pages
July 2005
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
Code Replacement
The content for this title has been posted and may be accessed via:
http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764574833,descCd-download_code.html
03/03/2006
40 Error in Text
The sample source code assumes existence of class/interface: WeatherData that is not defined. An experience user, could assume it is a bussiness object corresponding to the weather data, but there is no mention to that. I am not sure at this moment, but in the book there is a mention to WeatherService, when they want to talk about WeatherData.
10/19/05
51 Error in Code
The second last code snippet:

ApplicationContext appContext = new ClassPathXmlApplicationContext(
new String[] {"applicationContext
serviceLayer.xml", "applicationContext-
dao.xml"});

should be read as:

ApplicationContext appContext = new ClassPathXmlApplicationContext(
new String[] {"applicationContext-
services.xml", "applicationContext-
dao.xml"});
10/10/05
55 Error in Text
"noStaticFactory" the quote is in bold face, the same for "getTestBeanInstance"
10/19/05
68 Error in Code
public void setWeatherDao(DataSource dataSource) ...

should be:

public void setDataSource(DataSource dataSource) ...
09/06/2007
78 Error in Code
3rd code example

db.properties
should be

jdbc.properties
10/19/05
87 Error in Text
Last paragraph getMessage() variant()

should be

getMessage()
10/19/05
187 Error in Text
1st paragraph after the text box, some part of the text is in courier and should be in normal font.
10/19/05
9 360 Error in Text (Missing Source Code)
The comment on page 360 is erroneous:
There is no additional source code for chapter 9.

The only source code is that which is printed in the chapter.
01/10/2007
424 Error in Code
the first import statement:

import org.springframework.web.servlet.mvc.ModelAndView;

should be:

import org.springframework.web.servlet.ModelAndView;
12/29/08
444 Error in Text
first paragraph, last line:

the reference to Chapter 9 should actually be to Chapter 6.
11/22/05
445 Error in Text
second paragraph, last line:

the reference to Chapter 9 should actually be to Chapter 14.
11/22/05
445 Error in Text
second to last paragraph, last line:

the reference to Chapter 9 should actually be to Chapter 6
11/22/05
453 Error in Code
In the XML snippet for bean definition the code reads:
<bean id="viewResolverTwo"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<value>2</value</property>
but neither org.springframework.web.servlet.view.InternalResourceViewResolver or it's superclassess implements interface Orderable, thus there is no "setOrder" method available.

This example does indeed contain an error with respect to Spring 1.2: The "order" property line needs to be dropped. Everything should work as expected then.

Spring's InternalResourceViewResolver does implement the Ordered interface as of Spring 2.0, in conjunction with UrlBasedViewResolver's new "viewNames" property.
06/27/2006
14 540 Error in Tag
the xml snippet for the struts-servlet.xml has a closing tag on
property when there should not be:
<property name="orderService"/>

should be:
<property name="orderService">
7/04/06