You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Krishanu Biswas <bi...@googlemail.com> on 2010/03/28 19:49:43 UTC

access to localhost:8080 fails

Hello,

I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista
ulltimate). When inside corporate network, it works. In home network, it
doesn't. Strange enough that it does not work even when the laptop stands
alone (not connected to any network). Accessing
http://localhost:8080results in: ERROR_INTERNET_CANNOT_CONNECT as seen
with HttpWatch. The
request does not reach the server (hence no log). server.xml has not been
changed.

netstat -ab shows the following processes:

  TCP    0.0.0.0:8009           hostname:0        LISTENING
 [java.exe]
  TCP    0.0.0.0:8080           hostname:0        LISTENING
 [java.exe]
: Windows Sockets initialization failed: 5
 TCP    [::]:8009              WDFN00224028A:0        LISTENING
[java.exe]
 TCP    [::]:8080              WDFN00224028A:0        LISTENING
[java.exe]

Windows host file has the following entries:

127.0.0.1 localhost
::1           localhost

Using java version "1.6.0_18"

The problem appears to be very strange to me. Did a lot of searching on the
web before this post. Nothing helped. I'm sure that this is not a new
problem and hoping that one of you have already solved such an issue.

Cheers,
Krish

Re: access to localhost:8080 fails

Posted by Harry Metske <ha...@gmail.com>.
I have seen similar issues on our corporate (XP and Vista) laptops, somebody
decided that the locally running firewall should also block access to
localhost. I think you should first verify if that's the case.
I'm not a Windows expert, so I don't know how to check if the above is the
case.
If you are allowed to give the netstat command, try the suggestion from
Charles (netstat -ano), if you see status SYN_SENT, it's for sure a firewall
issue.

regards,
Harry

2010/3/28 Krishanu Biswas <bi...@googlemail.com>

> Chuck:
>
> To verify the network issue, I installed Tomcat on my personal laptop. The
> browser is still unable to show up: http//localhost:8080.
> I'm connected to a router via a wireless network which in turn connects me
> to the internet. I have Mcafee antivirus, firewall and spyware installed.
>
> I will now look into the problem from this direction as well. Thank you.
>
> Krish
>
> On Sun, Mar 28, 2010 at 8:28 PM, Caldarale, Charles R <
> Chuck.Caldarale@unisys.com> wrote:
>
> > > From: Krishanu Biswas [mailto:biswas.krishanu@googlemail.com]
> > > Subject: access to localhost:8080 fails
> > >
> > > I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista
> > > ulltimate). When inside corporate network, it works. In home network,
> > > it doesn't.
> >
> > Sounds like whatever security agent you're using imposes different
> firewall
> > rules depending on whether or not you're attached to the corporate
> network.
> >  (The one we use - SEP - certainly does.)  You'll have to figure out how
> to
> > change the firewall config - if you're allowed to.
> >
> >  - Chuck
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> > MATERIAL and is thus for use only by the intended recipient. If you
> received
> > this in error, please contact the sender and delete the e-mail and its
> > attachments from all computers.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>

RE: access to localhost:8080 fails

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Krishanu Biswas [mailto:biswas.krishanu@googlemail.com]
> Subject: Re: access to localhost:8080 fails
> 
> I installed Tomcat on my personal laptop. The browser is 
> still unable to show up: http//localhost:8080.

Do you have localhost defined in that machine's hosts file?

Can you ping localhost from a command prompt?

What does netstat -ano show on the personal laptop?

You might be having IPv6/IPv4 problems.  Try changing the hosts entry to just 127.0.0.1, leaving out the IPv6 setting.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: access to localhost:8080 fails

Posted by Krishanu Biswas <bi...@googlemail.com>.
Chuck:

To verify the network issue, I installed Tomcat on my personal laptop. The
browser is still unable to show up: http//localhost:8080.
I'm connected to a router via a wireless network which in turn connects me
to the internet. I have Mcafee antivirus, firewall and spyware installed.

I will now look into the problem from this direction as well. Thank you.

Krish

On Sun, Mar 28, 2010 at 8:28 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Krishanu Biswas [mailto:biswas.krishanu@googlemail.com]
> > Subject: access to localhost:8080 fails
> >
> > I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista
> > ulltimate). When inside corporate network, it works. In home network,
> > it doesn't.
>
> Sounds like whatever security agent you're using imposes different firewall
> rules depending on whether or not you're attached to the corporate network.
>  (The one we use - SEP - certainly does.)  You'll have to figure out how to
> change the firewall config - if you're allowed to.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: access to localhost:8080 fails

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Krishanu Biswas [mailto:biswas.krishanu@googlemail.com]
> Subject: access to localhost:8080 fails
> 
> I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista
> ulltimate). When inside corporate network, it works. In home network,
> it doesn't.

Sounds like whatever security agent you're using imposes different firewall rules depending on whether or not you're attached to the corporate network.  (The one we use - SEP - certainly does.)  You'll have to figure out how to change the firewall config - if you're allowed to.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: access to localhost:8080 fails

Posted by Krishanu Biswas <bi...@googlemail.com>.
On Sun, Mar 28, 2010 at 8:20 PM, André Warnier <aw...@ice-sa.com> wrote:

> Krishanu Biswas wrote:
>
>> Hello,
>>
>> I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista
>> ulltimate). When inside corporate network, it works.
>>
>
> Can you explain how exactly "it works" ? what URL are you using then, from
> where ? what are you seeing then ?


http://localhost:8080  OR http://127.0.0.1:8080 works in one network
(corporate) and the same does not work in a different network (my home
network - wireless network for home from T-phone)

>
>
>  In home network, it
>
>> doesn't.
>>
>
> Same questions.
>
>
In my home network, I'm connected to via a router to the internet. The point
is that Tomcat is installed locally on my laptop and it should work without
any such connectivity. Unfortunately it doesn't.

>
>
> Strange enough that it does not work even when the laptop stands
>
>> alone (not connected to any network). Accessing
>> http://localhost:8080results in: ERROR_INTERNET_CANNOT_CONNECT as seen
>>
>> with HttpWatch. The
>> request does not reach the server (hence no log).
>>
>
> I presume this URL really is :
>
> http://localhost:8080/results
>
> , right ?

That was a formatting mistake. I meant only http://localhost:8080
This request to the local server results in ERROR_INTERNET_CANNOT_CONNECT as
seen
with HttpWatch.

>
>
>  server.xml has not been
>
>> changed.
>>
>> netstat -ab shows the following processes:
>>
>>  TCP    0.0.0.0:8009           hostname:0        LISTENING
>>  [java.exe]
>>  TCP    0.0.0.0:8080           hostname:0        LISTENING
>>  [java.exe]
>> : Windows Sockets initialization failed: 5
>>
>
> What does that mean ? What is is in the Tomcat logs, corresponding to this
> error ?
>
>
>
>  TCP    [::]:8009              WDFN00224028A:0        LISTENING
>> [java.exe]
>>  TCP    [::]:8080              WDFN00224028A:0        LISTENING
>> [java.exe]
>>
>> Windows host file has the following entries:
>>
>> 127.0.0.1 localhost
>> ::1           localhost
>>
>> Using java version "1.6.0_18"
>>
>> The problem appears to be very strange to me. Did a lot of searching on
>> the
>> web before this post. Nothing helped. I'm sure that this is not a new
>> problem and hoping that one of you have already solved such an issue.
>>
>> Is the "Windows firewall" or anything similar enabled (AUP or whatever
> it's called) ?
> If you do NOT start the Tomcat Service, and do a "netstat -ab", what do you
> see then ?


Thank you for helping me on this. The same setup on the same laptop will
start working tomorrow when I am connected to corporate network. This is a
corporate laptop and windows firewall is installed. But I am not sure where
should I look in to check if this firewall is the blocker. Moreover, I may
not be allowed to turn this firewall off even if it is required. By the way,
i turned it off temporariry (for 5 mins, hope nothing has happened in
between) but the situation did not change.

>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: access to localhost:8080 fails

Posted by André Warnier <aw...@ice-sa.com>.
Krishanu Biswas wrote:
> Hello,
> 
> I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista
> ulltimate). When inside corporate network, it works.

Can you explain how exactly "it works" ? what URL are you using then, 
from where ? what are you seeing then ?

  In home network, it
> doesn't. 

Same questions.


Strange enough that it does not work even when the laptop stands
> alone (not connected to any network). Accessing
> http://localhost:8080results in: ERROR_INTERNET_CANNOT_CONNECT as seen
> with HttpWatch. The
> request does not reach the server (hence no log).

I presume this URL really is :

http://localhost:8080/results

, right ?

  server.xml has not been
> changed.
> 
> netstat -ab shows the following processes:
> 
>   TCP    0.0.0.0:8009           hostname:0        LISTENING
>  [java.exe]
>   TCP    0.0.0.0:8080           hostname:0        LISTENING
>  [java.exe]
> : Windows Sockets initialization failed: 5

What does that mean ? What is is in the Tomcat logs, corresponding to 
this error ?


>  TCP    [::]:8009              WDFN00224028A:0        LISTENING
> [java.exe]
>  TCP    [::]:8080              WDFN00224028A:0        LISTENING
> [java.exe]
> 
> Windows host file has the following entries:
> 
> 127.0.0.1 localhost
> ::1           localhost
> 
> Using java version "1.6.0_18"
> 
> The problem appears to be very strange to me. Did a lot of searching on the
> web before this post. Nothing helped. I'm sure that this is not a new
> problem and hoping that one of you have already solved such an issue.
> 
Is the "Windows firewall" or anything similar enabled (AUP or whatever 
it's called) ?
If you do NOT start the Tomcat Service, and do a "netstat -ab", what do 
you see then ?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: access to localhost:8080 fails

Posted by Krishanu Biswas <bi...@googlemail.com>.
On Sun, Mar 28, 2010 at 8:13 PM, Konstantin Kolinko
<kn...@gmail.com>wrote:

> 2010/3/28 Krishanu Biswas <bi...@googlemail.com>:
> > Hello,
> >
> > I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista
> > ulltimate).
>
> In what folder is this Tomcat instance installed?
>

Tomcat is installed under C:\Program Files\Apache Software Foundation\Tomcat
6.0


> With what user account it runs?
>

Administrator


> Do you run it as a service, or starting from a *.bat file, or from
> inside an IDE?
>

I tried both but the result is same.

>
> There are two vista-related items on the FAQ page here:
> http://wiki.apache.org/tomcat/FAQ/Windows#Q8
>
> Thank you for your reply Konstantin. This is my first post to the forum.
Not sure if my content is readable enough. Will learn over time for sure.


> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: access to localhost:8080 fails

Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/3/28 Krishanu Biswas <bi...@googlemail.com>:
> Hello,
>
> I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista
> ulltimate).

In what folder is this Tomcat instance installed?
With what user account it runs?
Do you run it as a service, or starting from a *.bat file, or from
inside an IDE?

There are two vista-related items on the FAQ page here:
http://wiki.apache.org/tomcat/FAQ/Windows#Q8

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org