Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning JavaServer Pages
BOOK: Beginning JavaServer Pages
This is the forum to discuss the Wrox book Beginning JavaServer Pages by Vivek Chopra, Jon Eaves, Rupert Jones, Sing Li, John T. Bell; ISBN: 9780764574856
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaServer Pages section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 29th, 2005, 07:14 PM
Registered User
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default newbie failing with the first exercise

I got to the first instruction in the book which is to set up tomcat, and got error messages "Connection refused when trying to access localhost". I tried it on another machine and it worked fine. Both run xp pro, with pretty much the same setup as far as I can tell. A day of reading various blogs and playing with which ports tomcat is using led to nothing. Any help/suggestions greatly appreciated.


Old May 19th, 2005, 08:01 PM
Registered User
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

Try using '' instead of localhost. Something screwy might have happened with your Hosts configuration.

The 'connection refused' may be a result of a firewall blocking access, or that Tomcat (or your webserver) isn't
listening on the port that you have specified.
Old May 20th, 2005, 12:06 PM
Registered User
Join Date: May 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts

I'm new at this too, but I found the guide at


to be VERY useful when I had tomcat trouble. I just ignored everything about SQL and that guide got my tomcat up and running.

I realize you've tried several guides, but this one did work for me.

Old June 3rd, 2006, 03:08 AM
Registered User
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

"connection refused"
I don't think it means Tomcat isn't running.
It is running and doesn't accept your connection.
It's just my idea.
Sorry, I have no solution.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failing DAO Tests dgalehouse BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 13 September 28th, 2009 07:13 PM
DlookUp Macro failing AidanEnos Access 1 November 23rd, 2007 12:51 AM
DTS Package failing ros1188 SQL Server DTS 1 August 17th, 2005 08:27 AM
Q. My sessions are failing... what's wrong?? richard.york PHP FAQs 0 August 4th, 2004 07:24 PM
Update Query failing patwadd Classic ASP Databases 1 July 7th, 2003 10:10 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.