Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat not starting up

 
Shweta Grewal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat's port 8009,8005 are not starting up.
Can someone help me please?
 
Swastik Dey
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you don't have any other services running on these port, and any firewall is not blocking these ports.
 
Shweta Grewal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you don't have any other services running on these port, and any firewall is not blocking these ports

how to do that? I am on linux
 
Shweta Grewal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried changing these ports even then they are not opening
 
Swastik Dey
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most likely in linux ports are not opened by default, and you may have to do that. Following link might be helpful

http://www.cyberciti.biz/faq/howto-rhel-linux-open-port-using-iptables/
 
Shweta Grewal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most likely in linux ports are not opened by default, and you may have to do that

The ports are open and no other service is running on them
 
Swastik Dey
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What response do you get if you telnet that port?

telnet <ipaddress> <portnum>
 
Shweta Grewal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What response do you get if you telnet that port?

telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
 
Swastik Dey
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, probably a firewall.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shweta Grewal wrote:Tomcat's port 8009,8005 are not starting up.

What exactly do you mean by not starting up? Do you see any errors?
 
Shweta Grewal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly do you mean by not starting up? Do you see any errors?

No errors but when I run the command netstat , they are not open
 
Shweta Grewal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, probably a firewall.

The ports are not blocked by firewall
 
P Hainbaum
Greenhorn
Posts: 1
Chrome Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do have the same problem: I am running Debian 6 with installed apache2 and tomcat6 servers. The tomcat server is running but seems not to be able to open any port (neither 8080 or 8009 or any other I specified in the server.xml). I don't have any firewall enabled and telnet and netstat show that the ports aren't occupied. The only warning i get in my log files (/var/log/tomcat6/catalina.out) is the following:



I guess its the same problem Shweta Grewal has, but i couldn't find any solution yet - any more thougts?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic