You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Xia Guowen <xi...@leg3s.com> on 2009/06/25 09:07:51 UTC
Problem of port 8080
Tomcat running for some time, do not have access to 8080, but 8009 and 8005 is ok.
mod_jk access is normal.
# netstat -lnut |grep 8080
tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN
So, what's wrong?
System environment:
CentOS 4.7,
iptables 8080 accept,
selinux enforce,
/usr/local/tomcat/bin/startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/jdk
Server version: Apache Tomcat/6.0.18
OS Name: Linux
OS Version: 2.6.9-55.ELsmp
Architecture: i386
JVM Version: 1.6.0_10-rc2-b32
JVM Vendor: Sun Microsystems Inc.
Re: Problem of port 8080
Posted by André Warnier <aw...@ice-sa.com>.
Xia Guowen wrote:
>
> Why port 8080 is disapeared ?
We do not know that either. What do the Tomcat logs say ?
> Is java or tomcat bind to port 8080?
Well, it depends on the point of view..
It is Tomcat which takes the decision, but since Tomcat runs under a
Java JVM, one could say that it is really Java which opens that port.
> Compatible problem between JDK and Tomcat?
No.
Check the Tomcat configuration file : (TOMCAT_DIRECTORY)/conf/server.xml
In that file, there are several (uncommented) <Connector ...> tags.
Each such Connector corresponds to a port which Tomcat opens, and
listens on.
These ports can vary, depending on which platform you are on, which
Tomcat version, and your own configuration.
netstat -pan | grep LISTEN
will show you the open listening ports, and also the process-id/program
which "owns" that port.
ps -ef | grep (process-id) will show you if this is really Tomcat
If the port 8080 is there when you start Tomcat, and then disappears
after some time, the Tomcat logs should contain something about it.
A Connector does not just disappear by itself, so there must ne some
error happening.
In a standard Tomcat installation (from the Tomcat site
tomcat.apache.org), the logfiles would be in (TOMCAT_DIR)/logs.
In pre-packaged versions under Linux, they are usually under
/var/log/tomcatxxx/*,
but sometimes they are re-directed somewhere else.
Check the system script by which you are starting Tomcat to find out
where this is. (/etc/init.d/tomcatx.y probably)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problem of port 8080
Posted by Xia Guowen <xi...@leg3s.com>.
Thanks,
Andre-John Mas
But, ipv6 was always disable.
Why port 8080 is disapeared ?
Is java or tomcat bind to port 8080?
Compatible problem between JDK and Tomcat?
# cat /etc/modprobe.conf
alias net-pf-10 off
alias ipv6 off
# netstat -lnut |grep 80
tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
----- Original Message -----
From: "Andre-John Mas" <aj...@sympatico.ca>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Friday, June 26, 2009 9:46 AM
Subject: Re: Problem of port 8080
Odd, in the first case I see 8080 listening to any IPv6 port (no IPv4
addresses), yet in the second case it seems to have stopped listening
to IPv6.
I am going to hazard a guess that maybe there is something wrong with
you IPv6 interface or something IPv6 related is failing.
On 25-Jun-2009, at 21:35, Xia Guowen wrote:
> I'm so sorry for the first question.
>
> My tomcat listen on port 8080, I could access http://server_ip:8080/
> everything was ok.
> # netstat -lnut |grep 80
> tcp 0 0 127.0.0.1:8005
> 0.0.0.0:* LISTEN
> tcp 0 0 0.0.0.0:8009
> 0.0.0.0:* LISTEN
> tcp 0 0 :::
> 8080 :::* LISTEN
>
> But after running for some time,(uncertain time,2 days or 5 days ) I
> could't access http://server_ip:8080/.
> The port 8080 disappeared!
> # netstat -lnut |grep 80
> tcp 0 0 127.0.0.1:8005
> 0.0.0.0:* LISTEN
> tcp 0 0 0.0.0.0:8009
> 0.0.0.0:* LISTEN
>
> I had no choice but to restart the service.
>
> System environment:
>
> CentOS 4.7,
> iptables 8080 accept,
> selinux enforce,
>
> /usr/local/tomcat/bin/startup.sh
> Using CATALINA_BASE: /usr/local/tomcat
> Using CATALINA_HOME: /usr/local/tomcat
> Using CATALINA_TMPDIR: /usr/local/tomcat/temp
> Using JRE_HOME: /usr/local/jdk
> Server version: Apache Tomcat/6.0.18
> OS Name: Linux
> OS Version: 2.6.9-55.ELsmp
> Architecture: i386
> JVM Version: 1.6.0_10-rc2-b32
> JVM Vendor: Sun Microsystems Inc.
>
>
> ----- Original Message -----
> From: "Markus Schönhaber" <to...@list-post.mks-mail.de>
> To: <us...@tomcat.apache.org>
> Sent: Thursday, June 25, 2009 5:44 PM
> Subject: Re: Problem of port 8080
>
>
>> Please don't hijack a completely unrelated thread.
>>
>> Xia Guowen:
>>
>>> Tomcat running for some time, do not have access to 8080, but 8009
>>> and 8005 is ok.
>>> mod_jk access is normal.
>>
>> Is a Connector listening to port 8080 indeed configured?
>> If so, what's in the logs?
>>
>>> # netstat -lnut |grep 8080
>>> tcp 0 0 127.0.0.1:8005
>>> 0.0.0.0:* LISTEN
>>> tcp 0 0 0.0.0.0:8009
>>> 0.0.0.0:* LISTEN
>>
>> Is that the output of
>> netstat -lnut |grep 8080
>> Seems very odd to me.
>>
>> --
>> Regards
>> mks
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problem of port 8080
Posted by Andre-John Mas <aj...@sympatico.ca>.
Odd, in the first case I see 8080 listening to any IPv6 port (no IPv4
addresses), yet in the second case it seems to have stopped listening
to IPv6.
I am going to hazard a guess that maybe there is something wrong with
you IPv6 interface or something IPv6 related is failing.
On 25-Jun-2009, at 21:35, Xia Guowen wrote:
> I'm so sorry for the first question.
>
> My tomcat listen on port 8080, I could access http://server_ip:8080/
> everything was ok.
> # netstat -lnut |grep 80
> tcp 0 0 127.0.0.1:8005
> 0.0.0.0:* LISTEN
> tcp 0 0 0.0.0.0:8009
> 0.0.0.0:* LISTEN
> tcp 0 0 :::
> 8080 :::* LISTEN
>
> But after running for some time,(uncertain time,2 days or 5 days ) I
> could't access http://server_ip:8080/.
> The port 8080 disappeared!
> # netstat -lnut |grep 80
> tcp 0 0 127.0.0.1:8005
> 0.0.0.0:* LISTEN
> tcp 0 0 0.0.0.0:8009
> 0.0.0.0:* LISTEN
>
> I had no choice but to restart the service.
>
> System environment:
>
> CentOS 4.7,
> iptables 8080 accept,
> selinux enforce,
>
> /usr/local/tomcat/bin/startup.sh
> Using CATALINA_BASE: /usr/local/tomcat
> Using CATALINA_HOME: /usr/local/tomcat
> Using CATALINA_TMPDIR: /usr/local/tomcat/temp
> Using JRE_HOME: /usr/local/jdk
> Server version: Apache Tomcat/6.0.18
> OS Name: Linux
> OS Version: 2.6.9-55.ELsmp
> Architecture: i386
> JVM Version: 1.6.0_10-rc2-b32
> JVM Vendor: Sun Microsystems Inc.
>
>
> ----- Original Message -----
> From: "Markus Schönhaber" <to...@list-post.mks-mail.de>
> To: <us...@tomcat.apache.org>
> Sent: Thursday, June 25, 2009 5:44 PM
> Subject: Re: Problem of port 8080
>
>
>> Please don't hijack a completely unrelated thread.
>>
>> Xia Guowen:
>>
>>> Tomcat running for some time, do not have access to 8080, but 8009
>>> and 8005 is ok.
>>> mod_jk access is normal.
>>
>> Is a Connector listening to port 8080 indeed configured?
>> If so, what's in the logs?
>>
>>> # netstat -lnut |grep 8080
>>> tcp 0 0 127.0.0.1:8005
>>> 0.0.0.0:* LISTEN
>>> tcp 0 0 0.0.0.0:8009
>>> 0.0.0.0:* LISTEN
>>
>> Is that the output of
>> netstat -lnut |grep 8080
>> Seems very odd to me.
>>
>> --
>> Regards
>> mks
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problem of port 8080
Posted by Xia Guowen <xi...@leg3s.com>.
I'm so sorry for the first question.
My tomcat listen on port 8080, I could access http://server_ip:8080/
everything was ok.
# netstat -lnut |grep 80
tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN
tcp 0 0 :::8080 :::* LISTEN
But after running for some time,(uncertain time,2 days or 5 days ) I could't access http://server_ip:8080/.
The port 8080 disappeared!
# netstat -lnut |grep 80
tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN
I had no choice but to restart the service.
System environment:
CentOS 4.7,
iptables 8080 accept,
selinux enforce,
/usr/local/tomcat/bin/startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/jdk
Server version: Apache Tomcat/6.0.18
OS Name: Linux
OS Version: 2.6.9-55.ELsmp
Architecture: i386
JVM Version: 1.6.0_10-rc2-b32
JVM Vendor: Sun Microsystems Inc.
----- Original Message -----
From: "Markus Schönhaber" <to...@list-post.mks-mail.de>
To: <us...@tomcat.apache.org>
Sent: Thursday, June 25, 2009 5:44 PM
Subject: Re: Problem of port 8080
> Please don't hijack a completely unrelated thread.
>
> Xia Guowen:
>
>> Tomcat running for some time, do not have access to 8080, but 8009 and 8005 is ok.
>> mod_jk access is normal.
>
> Is a Connector listening to port 8080 indeed configured?
> If so, what's in the logs?
>
>> # netstat -lnut |grep 8080
>> tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN
>> tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN
>
> Is that the output of
> netstat -lnut |grep 8080
> Seems very odd to me.
>
> --
> Regards
> mks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Problem of port 8080
Posted by Markus Schönhaber <to...@list-post.mks-mail.de>.
Please don't hijack a completely unrelated thread.
Xia Guowen:
> Tomcat running for some time, do not have access to 8080, but 8009 and 8005 is ok.
> mod_jk access is normal.
Is a Connector listening to port 8080 indeed configured?
If so, what's in the logs?
> # netstat -lnut |grep 8080
> tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN
> tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN
Is that the output of
netstat -lnut |grep 8080
Seems very odd to me.
--
Regards
mks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org