Errata

JBoss at Work: A Practical Guide

Errata for JBoss at Work: A Practical Guide

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page back
inside back page top

"follow the Examples link." There is no link and this is so frustrating.

Anonymous   
1
Frame with title: "Automated Deployments Using Ant"

In section "Building and Deploying an EAR > Deploying the EAR"
there is frame entitled "Automated Deployments Using Ant"
which contains the following text:
------------------------------------------------------------
If you want to do a cold deploy, shut down JBoss, type Ant cleandeploy, and then start JBoss back up again. The cleandeploy target will delete the existing EAR file and several temporary directories. Running cleandeploy against a running JBoss instance will cause bad things to happen, so make sure that JBoss is not running before invoking it.
------------------------------------------------------------where "Ant cleandeploy" is supposed to be an Ant target in the source code, but there is not a task with that name, there is "colddeploy" instead.

So the occurrences of "cleandeploy" or "clean deploy" in this page should be substituted with "colddeploy", "cold deploy" respectively.

kind regards,
Steve

Stefano C  May 08, 2009 
Printed Page 30
2nd paragraph

Currently the text in the second statement reads...

"Change to the ch02-mvc directory and type ant."

It should read...

"Change to the /ch02-mvc/webapp directory and type ant."

Anonymous   
Printed Page 36
Chapter 3

build.xml file does not execute properly because it does not correspond to the file
system layout described in the text nor does it have the proper targets.

Anonymous   
Printed Page 60
2nd bullet

The 2nd bullet says that the database deployment descriptor
hsqldb-ds.xml has been configured. I believe the reference should
be to file jaw-ds.xml

Anonymous   
Printed Page 77
Top of the page within a border

Under the printing history, the book I am using was printed in October, 2005.

The statement in the book says that a "core .jar file" (Apache Jakarta Commons Collections JAR) was left out of JBoss 4.0.2, and that the error would be corrected in JBoss 4.0.3. I am running jboss 4.2.1 and I am getting a jboss-hibernate.deployer not found error which is blowing up the ant build for ch05a-List. The Commons collections JAR doesn't seem to exist anywhere on the Apache site, and I can't find anything thing else to help me fix this problem. Am I missing something about this fix?

Anonymous   
Printed Page 91
Example 5-26. carList.jsp, JavaScript function

If there is only one row in the table, the function will not check the checkbox for that row. The function should be:

function checkAll(field)
{
if ( field.length === undefined ) {
field.checked = true
} else {
for ( i = 0; i < field.length; i++ ) {
field[i].checked = true
}
}
}

Anonymous  Feb 26, 2009 
Printed Page 144
Testing Iteration 3

This may be a JBOSS problem but I thought I should let you know about
it.

The test fails on JBOSS 4.0.5 after submitting the credit check form.
The ControllerServlet gets the data OK and prints the confirmation before calling the
line:
JmsProducer.sendMessage(creditCheckReq, XA_QUEUE_CONNECTION_FACTORY,
CREDIT_CHECK_QUEUE);

which causes the following exception:

com.9780596007348atwork.util.JmsProducerException: javax.jms.JMSException: Could not create a
session: org.9780596007348.resource.JBossResourceException: Unable to setup connection; -
nested throwable: (javax.naming.NameNotFoundException: XAConnectionFactory not bound)
com.9780596007348atwork.util.JmsProducer.sendMessage(JmsProducer.java:43)
com.9780596007348atwork.ControllerServlet.processRequest(ControllerServlet.java:189)
com.9780596007348atwork.ControllerServlet.doPost(ControllerServlet.java:72)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.9780596007348.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

I found several mentions of the "XAConnectionFactory not bound" on in the JBOSS
forums but no usable solutions. Nothing showed up in the JBOSS bug database.

I confirmed the Hypersonic database jawDB is connected and populated.

Anonymous