LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache and tomcat compete for port 443 (http://www.linuxquestions.org/questions/linux-software-2/apache-and-tomcat-compete-for-port-443-a-687749/)

osuyz 12-02-2008 11:31 AM

Apache and tomcat compete for port 443
 
Hi,

I am new to apache and tomcat. I am having this problem for days, if anyone could give me some suggestions, I will appreciate it.

I 've updated my tomcat to 6.0.18. And removed old tomcat5 using linux's software update/remove toolbox.

Before proceeding, I stopped httpd and tomcat.

1. If I start httpd first, and then start tomcat, I got error in catalina.out:
Dec 1, 2008 4:35:37 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindExceptio
n: Address already in use<null>:443
at org.apache.catalina.connector.Connector.start(Connector.java:1138)
at org.apache.catalina.core.StandardService.start(StandardService.java:531)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Dec 1, 2008 4:35:37 PM org.apache.catalina.startup.Catalina start



2. If I start tomcat first, then httpd, I got error on STDOUT:

[root@oscnet221 idp]# /sbin/service httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:443
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
[FAILED]


Could anyone give some ideas what went wrong?

Thanks!

osuyz

TB0ne 12-02-2008 11:40 AM

Quote:

Originally Posted by osuyz (Post 3361891)
Hi,

I am new to apache and tomcat. I am having this problem for days, if anyone could give me some suggestions, I will appreciate it.

I 've updated my tomcat to 6.0.18. And removed old tomcat5 using linux's software update/remove toolbox.

Before proceeding, I stopped httpd and tomcat.

The problem is that you had one of the services configured before, to use a different port. Since you upgraded, the config file probably went back to the default. You'll have to change either your Tomcat or Apache to use a different port. Chances are the old Tomcat used a different port, since you removed it before installing the new. Check your old config file (if you still have it), or change the port to a different one.

rg.viza 12-02-2008 03:52 PM

the usual https port for tomcat is 8443.

http://tomcat.apache.org/tomcat-4.1-doc/ssl-howto.html


All times are GMT -5. The time now is 08:12 PM.