Errata

Tomcat: The Definitive Guide

Errata for Tomcat: The Definitive 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 ...

$ export PATH

Anonymous   
PDF Page 20
4th line

C:\> set JAVA_OPTS="-Xmx256M"
should be
C:\> set JAVA_OPTS=-Xmx256M

When using quotes, the environment options won't be applied under Windows.

You can verify this in the "Tomcat Web Application Manager" under "Server Status", look for "Max memory".

Anonymous  May 21, 2011 
Printed Page 90
Section on setting up virtual hosts

I am learning a lot from this book, so thank you for writing it.

However, I ran into a problem while trying to set up a virtual host in Tomcat on my machine. I added the <Host> element for "groovywigs.com" in the servlet.xml file as was explained in the book.

I then tried to access a web app using the "groovywigs.com" domain name, but the page returned said that it couldn't find the server for "groovywigs.com".

After reviewing the syntax in the servlet.xml file and verifying it was correct, I tried it again with the same result.

I finally went online and found a web site that contained instructions to add "groovywigs.com" to the host file under WINDOWS/system32/drivers/etc and have it point to the loopback address 127.0.0.1. This made sense to me and it did work.

How do you get it to work without updating the Windows host file? Or is that something you only need to do on Windows, and you work primarily with Linux?

Thanks,

Mike

Anonymous  Dec 02, 2010 
Printed Page 103
2nd paragraph (10th line from top)

It says
"Context XML fragment files can reside ... directory tree or in your webapp's WEB-INF/ directory."

It should be
"Context XML fragment files can reside ... directory tree or in your webapp's META-INF/ directory."

yves  Oct 12, 2009 
Printed Page 114
Example 3-3

Hi,

I am learning a lot from your Tomcat book.

In the Ant example 3-3, "basedir" is set to the current directory, which in my experience has been the root directory for the web application.

However, in the "war" task, there is a reference in bold to the "webapp-dir" directory, which I infer is the root directory for the web application.

Does this mean we should put our build.xml file outside the root directory of the web app?

Thanks,


Mike

mike  Dec 04, 2010 
Printed Page 172
bottom of page

Running Tomcat with Apache httpd
Here are some reasons to consider running Tomcat with Apache httpd as a frontend web server:

? Tomcat's web servers is faster than Apache httpd ( error here?? )

Anonymous   
Printed Page 187
Top of page, first two lines

The first two lines of the example will work, but the directory name should be corrected to mod_proxy_html, not mod_proxy_http.

Anonymous   
Printed Page 255
First XML snippet from server.xml (2nd paragraph)

The clientAuth in the example XML snippet is incorrect.

clientAuth="false"

should read

clientAuth="true"

The text above this snippet correctly states that the clientAuth should be set to true, but the XML example snippet does not match.

ISBN-13 for my paper copy of the book is: 978-0-596-10106-0

Kent McHenry  Feb 21, 2012 
Printed Page 262, 288
Various

Connectors do not allow any nested components.

Valves are not recognized as nested components of connectors and though if you include a valve in a connector, you won't get any errors, the valve will NOT function!

Valves are only allowed for Engine, Host or Context.

Please refer to the Tomcat documentation, which make this quite clear!

Anonymous   
Printed Page 364
Code Example at the start of the page

ProxyPassReverse balancer://tcccluster/my-webapp
does not work.

It should be instead
ProxyPassReverse http://tc1:8080
ProxyPassReverse http://tc2:8080

Anonymous   
Printed Page 398
example last line on 3rd paragraph

carriage return replaced by 'du' string:

236M /opt/jrockit-R27.2.0-jdk1.6.0du75M /opt/harmony-jdk-r533200

should read :

236M /opt/jrockit-R27.2.0-jdk1.6.0
75M /opt/harmony-jdk-r533200

Anonymous   
Printed Page 401
example 4 last lines on 2nd paragraph

the typographic device used for the last four lines of the example on second paragraph should be 'constant with bold'

$ JAVA_HOME=/usr/java/jdk1.6.0_05

Anonymous