Errata

JBoss: A Developer's Notebook

Errata for JBoss: A Developer's Notebook

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 00
Downloading the examples

I tried downloading the examples for this book.
The zip file comes down ~13mb but the files are all 0 k in length when you expand
the archive. Not much use.

Anonymous   
Printed Page 14
4th line of code listing

4th line of code is missing in the book, causing errors upon execution. However,
the line is included in the example download on the Web site.

<%@ page import="java.util.Arrays" %>

Anonymous   
Printed Page 17
ant invocation

The default task in the build.xml is "main", therefore running the ant command,
should only execute that task, and not the "deploy" task as shown on p.17.

Anonymous   
Printed Page 20
last paragraph

The sentence "The application count gets reset each time the servlet is reloaded,..."
shoud read "The session count...". Also, in the same paragraph, "..., the session
state.." should read "..., the application state..." since application state is
maintained until the server itself is restarted; the session data will be wiped out
when the application is hot/re-deployed.

Anonymous   
Printed Page 20
paragraph "How do I do that"

the URL http://localhost:8080/quote/quote
does not work, (resulting error message "the requested resource is not available")

The URL that works however looks like
http://localhost:8080/quote

This last URL seems to open the page correctly

Anonymous   
Printed Page 22
3

Book says JBoss creates directory ending with quote.war. Infact JBoss creates the
directory name ending with quote-exp.war.

Anonymous   
Printed Page 26
Chapter 2 p26

The section that describes how to run the application points to the URL as http://localhost:8080/quote/quote. However this requires a context root for the web application set in the jboss-web.xml file as /quote. The sample code that is available for download contains a context root of "/". Therefore the URL given in the book will not work out of the box with the sample. Either we have to edit jboss-web.xml file to include the new context root or try the URL as http://localhost:8080/quote

Vaheesan Selvarajah  Apr 21, 2010 
Printed Page 42
bottom 2nd paragraph

I run deploy Todo.ear to JBOSS 4.0.5. I use SQL server 2000 as for datasource.
When I start JBOSS, I got the error below (deployment exception). Please help to solve this issue.
.....
12:43:34,537 INFO [EjbModule] Deploying Task
12:43:35,788 INFO [EjbModule] Deploying Comment
12:43:35,869 INFO [EjbModule] Deploying TaskMaster
12:43:49,208 WARN [ServiceController] Problem starting service
jboss.j2ee:service=EjbModule,module=todo.jar
org.jboss.deployment.DeploymentException: Error while creating table Task; - nested
throwable: (java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC][SQLServer]Incorrect syntax near the keyword 'user'.)

Anonymous