Errata for Java EE 6 Pocket 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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update
| Version |
Location |
Description |
Submitted By |
Date Submitted |
Date Corrected |
| PDF |
Page 25
4th row |
In the last paragraph on page 24 you say:
[...] In addition to declaring filters using @WebFilter and web.xml,
they may also be defined programmatically using ServletCon
text.addFilter methods. [...]
You talk about the "addFilter" method, while at the begining of the next page you show a snippet of code which uses the method "addServlet".
Note from the Author or Editor: On page 25, in the code snippet at the top
Change "addServlet" to "addFilter"
|
Foogaro |
Oct 31, 2012 |
Nov 16, 2012 |
| ePub |
Page 31
The example |
The Java class ScheduledThreadPoolExecutor is misspelled as ScheduledThreadPoolExexcutor.
Note from the Author or Editor: This is a typo and should be fixed. There are two instances on page 31.
|
Arturo Tena |
Sep 24, 2012 |
Nov 16, 2012 |
| Printed |
Page 47
bottom part of the page |
em.createNamedQuery("SELECT s FROM Student s").getResultList();
should be:
em.createQuery("SELECT s FROM Student s").getResultList();
Note from the Author or Editor: On page 47,
em.createNamedQuery("SELECT s FROM Student s").getResultList();
should be changed to:
em.createQuery("SELECT s FROM Student s").getResultList();
|
Szilagyi Donat |
Feb 04, 2013 |
|
| Printed |
Page 53
Middle of the page |
Missing line in the code sample between these two lines:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("student");
em.getTransaction().begin();
It should be:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("student");
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
Note from the Author or Editor: Please add the line:
EntityManager em = emf.createEntityManager();
as indicated above.
|
Szilagyi Donat |
Feb 04, 2013 |
|
| Printed |
Page 124
Table 8-1. |
Descriptions of serviceName and targetNamespace are mixed:
This:
serviceName Namespace for the web service (targetNamespace)
targetNamespace Service name of the web service (wsdl:service)
should be:
serviceName Service name of the web service (wsdl:service)
targetNamespace Namespace for the web service (targetNamespace)
Note from the Author or Editor: Please swap the description between the rows as suggested.
|
Szilagyi Donat |
Feb 10, 2013 |
|
| Printed |
Page 130
code sample |
The name of the constructor doesn't match the name of the class.
public class SimpleWebServiceService
...
public SimpleWebService() {
should be:
public class SimpleWebServiceService
...
public SimpleWebServiceService() {
Note from the Author or Editor: Please make the changes as suggested.
|
Szilagyi Donat |
Feb 11, 2013 |
|
| Printed |
Page 131
first and seconf code sample |
Both in the first and the second code sample
SimpleWebServicePort port = ...
should be changed to:
SimpleWebService port = ...
Note from the Author or Editor: Please make the changes as suggested.
|
Szilagyi Donat |
Feb 11, 2013 |
|