File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat not starting up Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat not starting up" Watch "Tomcat not starting up" New topic
Author

Tomcat not starting up

Shweta Grewal
Ranch Hand

Joined: Apr 03, 2012
Posts: 39
Tomcat's port 8009,8005 are not starting up.
Can someone help me please?
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1477
    
    6

Make sure you don't have any other services running on these port, and any firewall is not blocking these ports.


Swastik
Shweta Grewal
Ranch Hand

Joined: Apr 03, 2012
Posts: 39
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

Joined: Apr 03, 2012
Posts: 39
I tried changing these ports even then they are not opening
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1477
    
    6

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

Joined: Apr 03, 2012
Posts: 39
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

Joined: Jan 08, 2009
Posts: 1477
    
    6

What response do you get if you telnet that port?

telnet <ipaddress> <portnum>
Shweta Grewal
Ranch Hand

Joined: Apr 03, 2012
Posts: 39
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

Joined: Jan 08, 2009
Posts: 1477
    
    6

So, probably a firewall.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10091
    
164

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?

[My Blog] [JavaRanch Journal]
Shweta Grewal
Ranch Hand

Joined: Apr 03, 2012
Posts: 39
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

Joined: Apr 03, 2012
Posts: 39
So, probably a firewall.

The ports are not blocked by firewall
P Hainbaum
Greenhorn

Joined: Jul 10, 2012
Posts: 1

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat not starting up