Networking Forums

Networking Forums > Computer Networking > Linux Networking > Tomcat and port 80 - access denied

Reply
Thread Tools Display Modes

Tomcat and port 80 - access denied

 
 
N.K.
Guest
Posts: n/a

 
      10-28-2003, 07:05 PM
Hi,

I'd like Tomcat 4 to be listening on port 80 and serve pages.
Currently it's listening on port 8080. I have changed server.xml file
where I set port = 80 in the <Connector name =
org.apache.catalina.connector.http.HttpConnector port = 80 > ( a non
ssl connector). When I try to start Tomcat I get a message access
denied. My httpd is disabled, since we are using Tomcat as web
server.
In Firewall configuration I added a line with Accept action for port
80. It created an /etc/sysconfig/ipchains file.
Still, I get the same message and can't start Tomcat.
How can I get Tomcat listening on port 80?
When I ran netstat -tupan I see no entry for port 80. What am I doing
wrong?
Any ideas would be greatly appreciated.
Thanks in advance.
N.K.
 
Reply With Quote
 
 
 
 
bards
Guest
Posts: n/a

 
      10-29-2003, 09:26 AM
N.K. wrote:
> Hi,
>
> I'd like Tomcat 4 to be listening on port 80 and serve pages.
> Currently it's listening on port 8080. I have changed server.xml file
> where I set port = 80 in the <Connector name =
> org.apache.catalina.connector.http.HttpConnector port = 80 > ( a non
> ssl connector). When I try to start Tomcat I get a message access
> denied. My httpd is disabled, since we are using Tomcat as web
> server.
> In Firewall configuration I added a line with Accept action for port
> 80. It created an /etc/sysconfig/ipchains file.
> Still, I get the same message and can't start Tomcat.
> How can I get Tomcat listening on port 80?
> When I ran netstat -tupan I see no entry for port 80. What am I doing
> wrong?
> Any ideas would be greatly appreciated.
> Thanks in advance.
> N.K.


Looks like you may already have something listening on port 80, apache
perchance ?

Also, you will only be able to start tomcat on port 80 if you are logged
in as root, are you trying to bind it to port 80 as a normal user eg
tomcat ?


 
Reply With Quote
 
N.K.
Guest
Posts: n/a

 
      10-29-2003, 01:14 PM
Yes, I'm running as root and I don't have apache runing...
Any ideas?
Thanks

bards <(E-Mail Removed)> wrote in message news:<bno4kj$5p1$(E-Mail Removed)>...
> N.K. wrote:
> > Hi,
> >
> > I'd like Tomcat 4 to be listening on port 80 and serve pages.
> > Currently it's listening on port 8080. I have changed server.xml file
> > where I set port = 80 in the <Connector name =
> > org.apache.catalina.connector.http.HttpConnector port = 80 > ( a non
> > ssl connector). When I try to start Tomcat I get a message access
> > denied. My httpd is disabled, since we are using Tomcat as web
> > server.
> > In Firewall configuration I added a line with Accept action for port
> > 80. It created an /etc/sysconfig/ipchains file.
> > Still, I get the same message and can't start Tomcat.
> > How can I get Tomcat listening on port 80?
> > When I ran netstat -tupan I see no entry for port 80. What am I doing
> > wrong?
> > Any ideas would be greatly appreciated.
> > Thanks in advance.
> > N.K.

>
> Looks like you may already have something listening on port 80, apache
> perchance ?
>
> Also, you will only be able to start tomcat on port 80 if you are logged
> in as root, are you trying to bind it to port 80 as a normal user eg
> tomcat ?

 
Reply With Quote
 
bards
Guest
Posts: n/a

 
      10-29-2003, 11:20 PM
N.K. wrote:
> Yes, I'm running as root and I don't have apache runing...
> Any ideas?


telnet to port 80 and see what sort of banner it gives you back;

telnet 127.0.0.1 80


 
Reply With Quote
 
Liza
Guest
Posts: n/a

 
      10-31-2003, 01:23 AM
Well, I followed your advice and did that. I got a telnet window
saying connecting to myIpaddress:80 and then it disappeared. It
didn't give me any banners. Nothing is listening on port 80. It
looks like Tomcat is being denied access to port 80 for some reason.
Can you think of any other way to get this to work?
Thanks for your help.
N.K.


bards <(E-Mail Removed)> wrote in message news:<DPYnb.530$_(E-Mail Removed)>...
> N.K. wrote:
> > Yes, I'm running as root and I don't have apache runing...
> > Any ideas?

>
> telnet to port 80 and see what sort of banner it gives you back;
>
> telnet 127.0.0.1 80

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't bind to port: 80 Permission denied Ciur Eugen Linux Networking 9 04-02-2009 12:25 PM
sshd: Denied connection to local port Torsten Bronger Linux Networking 4 02-06-2006 06:59 PM
Access Denied Ed. Wireless Networks 1 08-11-2004 05:28 PM
Can't seem to access files on the network, get a response that access is denied? dan Broadband Hardware 1 04-15-2004 02:45 AM
Access Denied Bill Windows Networking 1 08-12-2003 04:43 PM



1 2 3 4 5 6 7 8 9 10 11