Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Linux VPS Support

Notices

Reply
 
Thread Tools
  #1  
Old 01-04-2012, 12:52 AM
muaddib muaddib is offline
Hatchling Croc
 
Join Date: Jan 2012
Posts: 3
Default Tomcat7 -- running, listening, can't hit port

I am trying to get an installation of Tomcat7 up and running on my linux VPS.
I believe everything has been installed correctly.
I am able to launch the startup.sh without incident within the catalina log files.
The server reports that it has successfully started within xx ms.
netstat shows that tomcat is listening on port 8082 (mod'ed server.xml for troubleshooting purposes) and 8009 for https.

tcp 0 0 :::80 :::* LISTEN
tcp 0 0 :::8880 :::* LISTEN
tcp 0 0 :::8082 :::* LISTEN
tcp 0 0 :::53 :::* LISTEN
tcp 0 0 :::21 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 :::443 :::* LISTEN
tcp 0 0 :::8443 :::* LISTEN
tcp 0 0 :::993 :::* LISTEN
tcp 0 0 :::995 :::* LISTEN
tcp 0 0 ::ffff:127.0.0.1:8005 :::* LISTEN
tcp 0 0 :::8009 :::* LISTEN
tcp 0 0 :::106 :::* LISTEN

I have set my firewall to allow all (for ts purposes) in/out traffic.
I can successfully telnet to the machine (of course, on port 22)

BUT, I can't hit the default index page when I navigate to the VPS port:
http://myipaddress:8082 or http://myipaddress:8082/index.jsp

I am not having much luck troubleshooting beyond this point. Does anyone have some ideas that I may try in an effort to resolve this issue and get Tomcat7 up and running?

Thanks in advance!!
Muad'Dib
Reply With Quote
  #2  
Old 01-04-2012, 02:03 PM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,558
Default Re: Tomcat7 -- running, listening, can't hit port

Did you try:
telnet myipaddress 8082
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #3  
Old 01-05-2012, 12:07 AM
muaddib muaddib is offline
Hatchling Croc
 
Join Date: Jan 2012
Posts: 3
Default Re: Tomcat7 -- running, listening, can't hit port

Thanks queitFinn, but I think I found what the issue is. It seems that despite opening the ports in the firewall through the Parallel Infrastructure Manager (Plesk), it doesn't seem to be working.

When I issue the command to stop the firewall service, I can get to the server!


Question now, is how do I open the port? I tried adding an INPUT statement in iptables but it gets rebuilt with each re/start of the firewall. In addition, even if I reload the iptables without restarting the firewall the following statement doesn't seem to expose the port:

-A INPUT -p tcp --dport 8082 -j ACCEPT

Can anyone help with the proper steps for opening the port permanently?

Thanks in advance, again!!!
Muad'Dib
Reply With Quote
  #4  
Old 01-05-2012, 10:22 AM
GatorLhebert's Avatar
GatorLhebert GatorLhebert is offline
HostGator Staff
 
Join Date: Jan 2011
Location: Austin, Tx
Posts: 126
Default Re: Tomcat7 -- running, listening, can't hit port

Hello,

Thank you for working with us on this issue, many of our servers come with a custom firewall. This is separate and different from the one you will find within virtuozzo, this system is designed in a such a way that a restart of the service will restore all of the rules whether you use iptables-save or not. I have updated the rules on your server wich should allow access to the ports you have listed.

$ telnet x.x.x.x 8080
Trying x.x.x.x...
Connected to x.x.x.x-static.reverse.softlayer.com (x.x.x.x).
Escape character is '^]'.

$telnet x.x.x.x 8009
Trying x.x.x.x...
Connected to x.x.x.x-static.reverse.softlayer.com (x.x.x.x).
Escape character is '^]'.
__________________
Head of Training for Linux Systems Administration (ATX)

Support Portal
http://support.hostgator.com
Reply With Quote
  #5  
Old 01-07-2012, 01:54 AM
muaddib muaddib is offline
Hatchling Croc
 
Join Date: Jan 2012
Posts: 3
Default Re: Tomcat7 -- running, listening, can't hit port

Thanks, GatorLherbert! and everyone else that offered up help!

--Muad'Dib
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hit logger dobro Webhosting 2 11-11-2009 06:26 PM
gtgeorge hit 2,000! gwyneth Off-Topic 20 04-17-2008 01:32 PM
Email SMTP Port 25 block - what about a different port? cmeidell Shared Hosting Support 0 01-24-2004 04:28 PM

All times are GMT -5. The time now is 09:17 AM.