I am writing to put closure on this subject. Attached are the e-mails that helped me solve the problem. The bottom line was that Microsoft Loopback Adapter had to be installed. Detailed instructions on how to install Microsoft Loopback Adapter are included below. I owe a large "Thank You" to Greg Nieman for following this problem through to completion. Thanks a lot for your help, Greg! Tim T S <[EMAIL PROTECTED]> wrote: Date: Sat, 16 Nov 2002 19:43:30 -0800 (PST) From: T S Subject: RE: Install Tomcat 4.1.12 on WinXP - after Loopback Adapter ... http://localhost:8080 works!!! To: "Nieman, Greg"
Greg, After following your detailed instructions on how to install Microsoft Loopback Adapter, http://localhost:8080 works when Tomcat is running! I don't think I would have been able to install Microsoft Loopback Adapter without your step-by-step instructions. WinXP is still new and foreign to me, I am used to using Win2000 at work or WinME at home. I have recorded the detailed output of netstat at each step, hoping that it might provide you some additional information that could be useful to you. netstat -a -e -n -o -s -p tcp startup of Tomcat http://localhost:8080 netstat -a -e -n -o -s -p tcp shutdown of Tomcat netstat -a -e -n -o -s -p tcp net view I don't know how to say "Thank YOU" enough. Two people wrote me with suggestions, each with a different suggestion. The other person stopped giving advice after their first suggestion didn't work, but you continued helping me until Tomcat started. I really appreciate your help. Now I have a whole lot more to learn about Tomcat, but at least I am started. Thanks! and God bless! Tim Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\bin>netstat -a -e -n -o -s -p tcp Interface Statistics Received Sent Bytes 12141 13369 Unicast packets 7 7 Non-unicast packets 80 82 Discards 0 0 Errors 0 0 Unknown protocols 0 TCP Statistics for IPv4 Active Opens = 0 Passive Opens = 0 Failed Connection Attempts = 0 Reset Connections = 0 Current Connections = 0 Segments Received = 0 Segments Sent = 0 Segments Retransmitted = 0 Active Connections Proto Local Address Foreign Address State PID TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 848 TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING 892 TCP 0.0.0.0:1032 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:5000 0.0.0.0:0 LISTENING 1072 TCP 169.254.25.129:139 0.0.0.0:0 LISTENING 4 C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\bin>startup Using CATALINA_BASE: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12 Using CATALINA_HOME: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\temp Using JAVA_HOME: C:\Program Files\j2sdk1.4.1 C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\bin>http://localhost:8080!!!!!!! C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\bin>netstat -a -e -n -o -s -p tcp Interface Statistics Received Sent Bytes 39608 40836 Unicast packets 97 97 Non-unicast packets 80 82 Discards 0 0 Errors 0 0 Unknown protocols 0 TCP Statistics for IPv4 Active Opens = 2 Passive Opens = 2 Failed Connection Attempts = 0 Reset Connections = 0 Current Connections = 2 Segments Received = 82 Segments Sent = 82 Segments Retransmitted = 0 Active Connections Proto Local Address Foreign Address State PID TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 848 TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING 892 TCP 0.0.0.0:1032 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:1034 0.0.0.0:0 LISTENING 1796 TCP 0.0.0.0:1035 0.0.0.0:0 LISTENING 1796 TCP 0.0.0.0:5000 0.0.0.0:0 LISTENING 1072 TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING 1656 TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 1656 TCP 127.0.0.1:1034 127.0.0.1:8080 CLOSE_WAIT 1796 TCP 127.0.0.1:1035 127.0.0.1:8080 CLOSE_WAIT 1796 TCP 127.0.0.1:8005 0.0.0.0:0 LISTENING 1656 TCP 127.0.0.1:8080 127.0.0.1:1034 FIN_WAIT_2 1656 TCP 127.0.0.1:8080 127.0.0.1:1035 FIN_WAIT_2 1656 TCP 169.254.25.129:139 0.0.0.0:0 LISTENING 4 C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\bin>shutdown Using CATALINA_BASE: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12 Using CATALINA_HOME: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\temp Using JAVA_HOME: C:\Program Files\j2sdk1.4.1 C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\bin>netstat -a -e -n -o -s -p tcp Interface Statistics Received Sent Bytes 41104 42332 Unicast packets 133 133 Non-unicast packets 80 82 Discards 0 0 Errors 0 0 Unknown protocols 0 TCP Statistics for IPv4 Active Opens = 5 Passive Opens = 5 Failed Connection Attempts = 0 Reset Connections = 1 Current Connections = 2 Segments Received = 118 Segments Sent = 118 Segments Retransmitted = 0 Active Connections Proto Local Address Foreign Address State PID TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 848 TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING 892 TCP 0.0.0.0:1032 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:1034 0.0.0.0:0 LISTENING 1796 TCP 0.0.0.0:1035 0.0.0.0:0 LISTENING 1796 TCP 0.0.0.0:5000 0.0.0.0:0 LISTENING 1072 TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 1656 TCP 127.0.0.1:1034 127.0.0.1:8080 CLOSE_WAIT 1796 TCP 127.0.0.1:1035 127.0.0.1:8080 CLOSE_WAIT 1796 TCP 127.0.0.1:1036 127.0.0.1:8005 TIME_WAIT 0 TCP 127.0.0.1:8080 127.0.0.1:1034 FIN_WAIT_2 1656 TCP 127.0.0.1:8080 127.0.0.1:1035 FIN_WAIT_2 1656 TCP 127.0.0.1:8080 127.0.0.1:1037 TIME_WAIT 0 TCP 169.254.25.129:139 0.0.0.0:0 LISTENING 4 C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\bin>net view Server Name Remark ----------------------------------------------------------- \\YOUR-XU5V9FROKN The command completed successfully. C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\bin> "Nieman, Greg" <[EMAIL PROTECTED]> wrote: Subject: RE: Install Tomcat 4.1.12 on WinXP Date: Sat, 16 Nov 2002 10:50:06 -0500 From: "Nieman, Greg" To: "T S" OK. Here are the detail steps: 1. Settings > Control Panel > System 2. Go to the hardware tab. 3. Hit the Add Hardware Button 4. At the Welcome dialog hit Next. 5. It will search for a while and probably come up with nothing. 6. You'll get a dialog asking if you've already connected the hardware. Select Yes and go on. 7. You get another dialog with installed hardware. Scroll to the bottom of the list and select:Add a new hardware device. 8. At the next dialog select the second option, where you select it manually from a list. 9. At the next dialog select network adapters. It will chug for a little while. 10. The next dialog will have a list box on the left labeled Manufacturer and one on the left labeled Adapters. 11. Select Microsoft from the left and Loopback Adapter on the right. You might wind up needing your install disk. Not sure since I don't have the most standard install in the world. 12. That should get you there. Let me know if you have any more problems. Good Luck! gn -----Original Message----- From: T S [mailto:[EMAIL PROTECTED]] Sent: Sat 11/16/2002 10:01 AM To: Nieman, Greg Cc: Subject: RE: Install Tomcat 4.1.12 on WinXP Greg, I'm stuck. I went to the Device Manager window looking for "Microsoft Loopback adapter," but could not find it in the list. The following were the available options: * Device Manager has the following choices * Computer * Disk drives * Display adapters * DVD/CD-ROM drives * Floppy disk controllers * Floppy disk drives * IDE ATA/ATAPI controllers * IEE 1394 Bus host controllers * Keyboards * Modems --> GTW V.92 Voice Modem * Monitors * Network adapters --> 1394 Net Adapter --> Direct Parallel --> Intel(R) PRO/100 VE Network Connection --> Intel(R) PRO/100 VE Network Connection - Packet Scheduler Miniport --> WAN Miniport (IP) --> WAN Miniport (IP) - Packet Scheduler Miniport --> WAN Miniport (L2TP) --> WAN Miniport (PPPEO) --> WAN Miniport (PPTP) * Non-Plug and Play Drivers * Ports (COM & LPT) * Processors * Sound, video and game controllers * Storage volumes * System devices * Universal Serial Bus controllers Since I didn't see the Loopback adapter I'm stuck. When I searched for Loopback in WinXP Help and Support Center it mentioned both ping and ipconfig. Here are the results of each. C:\>ping localhost Pinging your-xu5v9frokn [127.0.0.1] with 32 bytes of data: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Ping statistics for 127.0.0.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms C:\>ping 127.0.0.1 Pinging 127.0.0.1 with 32 bytes of data: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Ping statistics for 127.0.0.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms C:\>ipconfig Windows IP Configuration Ethernet adapter Local Area Connection: Media State . . . . . . . . . . . : Media disconnected C:\> Does the lpconfig "Media disconnected" tell you something? FYI, I have a computer that connects to the internet, but the computer I am installing Tomcat on has never been connected to the internet. That also means some of the "normal" configuration may not yet be installed because WinXP has not had the need to install the software. I hope this gives you some more information. I *REALLY* appreciate your help. I am a novice java programmer who wants to learn how to program JSPs, so that is why I am installing Tomcat. Tim "Nieman, Greg" <[EMAIL PROTECTED]> wrote: Subject: RE: Install Tomcat 4.1.12 on WinXP Date: Fri, 15 Nov 2002 15:48:21 -0500 From: "Nieman, Greg" To: "T S" OK. Shoot me a mail if you get stuck. Good luck! gn -----Original Message----- From: T S [mailto:[EMAIL PROTECTED]] Sent: Friday, November 15, 2002 3:16 PM To: Nieman, Greg Subject: Re: Install Tomcat 4.1.12 on WinXP I am a novice at this, but I will give this a try during the weekend. I'll let you know the results. Thanks for your help, Tim "Nieman, Greg" <[EMAIL PROTECTED]> wrote: Subject: Install Tomcat 4.1.12 on WinXP Date: Thu, 14 Nov 2002 15:45:41 -0500 From: "Nieman, Greg" To: Just curious, do you have a network card installed on your machine? If not, when you try to do something socket related you won't have any network drivers loaded and you'll get an error. Try installing the Microsoft Loopback adapter - you do it by going to the device manager and manually installing a new network device. When you get the choice to pick, make sure to select it yourself, scroll down to Microsoft on the left hand pane, and pick the loopback adapter. That will make sure the network stuff gets loaded even if you don't have a dial up connection. You may need your install disk, can't quite recall at this point. See if that works. p.s. Do me a favor and if that works make sure it gets posted to the list server in case someone else has the same issue. I'm in a spot where it's just easier to replay to you. Greg Nieman T S <[EMAIL PROTECTED]> wrote: Date: Thu, 14 Nov 2002 08:37:54 -0800 (PST) From: T S Subject: Install Tomcat 4.1.12 on WinXP To: Tomcat User I have installed Tomcat 4.1.12 on WinXP following the directions in JavaServer Pages by Hans Bergsten - pages 31-37. I have also read the ReadMe and see no additional comments that were not included with the JavaServer Pages book. The startup appears to be correct but when I attempt to use IE I get errors. Here are the Command Prompt Window output messages from the "startup" command: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\bin>startup Using CATALINA_BASE: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12 Using CATALINA_HOME: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\temp Using JAVA_HOME: C:\Program Files\j2sdk1.4.1 C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\bin> Here are the Tomcat Window output messages from the "startup" command: Nov 14, 2002 6:09:20 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Nov 14, 2002 6:09:20 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Nov 14, 2002 6:09:21 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Nov 14, 2002 6:09:21 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Nov 14, 2002 6:09:26 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Nov 14, 2002 6:09:26 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Nov 14, 2002 6:09:26 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/78 config=C:\Program Files\Jakarta\jakarta-tomcat- 4.1.12\conf\jk2.properties When I go to Internet Explorer version: 6.00.2600.0000.xpclient.010817-1148 and enter the following: Address: http://localhost:8080/ I get an IE page stating "This computer does not have an Internet connection" My computer is not connected to the internet when I perform this test, so the message is correct, but it appears that it is not looking at port 8080. What do I need to change to get this to work? Thanks for your answers. Tim --------------------------------- Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site