You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sergio Stateri Jr <st...@tesla.com.br> on 2000/10/10 13:31:47 UTC

RES: [Tomcat-users] FATAL:java.net.BindException: Address already in use

This probably is happening because one of tcp ports that is set in the
server.xml is in use. Tomcat answer in two know ports :
1) A http server in 8080
2) A Ajp12Connector in 8008

This ports are set in the <tomcat's path>/conf/server.xml, like this piece
of code :

<Connector className="org.apache.tomcat.service.SimpleTcpConnector">
            <Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
            <Parameter name="port" value="8080"/>
</Connector>

<Connector className="org.apache.tomcat.service.SimpleTcpConnector">
            <Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
            <Parameter name="port" value="8008"/>
</Connector>


	You can solve your problem just changing this numbers (8080 and 8007 - per
example, put 44444 and 55555). But, if you use tomcat with Apache then
you'll need to change the ajpv12 client. Httpd.conf's piece of code :

<VirtualHost 192.168.0.13:80>
ServerName www.the_site.com.br
ApJServMount / ajpv12://192.168.0.13:8008
</VirtualHost>

<VirtualHost 192.168.0.13:443>
	SSLEngine on
	SSLCertificateFile
/usr/local/apache_t3.1/tomcat_the_site/webapps/the_site/ssl/www.the_site.com
.br.crt
	SSLCertificateKeyFile
/usr/local/apache_t3.1/tomcat_the_site/webapps/fotoptica/ssl/www.the_site.co
m.br.key
	ServerName www.the_site.com.br
	ApJServMount / ajpv12://192.168.0.13:8008
</VirtualHost>

	In httpd.conf change the lines that set 8008 port, changing its to the new
set port.



Sergio Stateri Jr
stateri@tesla.com.br
Tesla Tecnologia
Sao Paulo (SP)  Brazil

-----Mensagem original-----
De: tomcat-users-admin@lists.real-time.com
[mailto:tomcat-users-admin@lists.real-time.com]Em nome de
tpnguyen@td2cad.intel.com
Enviada em: Segunda-feira, 9 de Outubro de 2000 19:32
Para: tomcat user
Assunto: [Tomcat-users] FATAL:java.net.BindException: Address already in use

Hi,

FATAL:java.net.BindException: Address already in use

I am a new user to tomcat, I got this message the first time I run
tomcat, right after I install it.     How can I overcome it?

I also checked to see if there is any instance of it running, but I
could not find anything wrong.

By looking through the mail archive, I see people had this problem
before but there is no answer applicable to my case.  Can someone
suggest couple things for me to try?

Thanks so much

tn

_______________________________________________
tomcat-users mailing list
tomcat-users@lists.real-time.com
https://mailman.real-time.com/mailman/listinfo/tomcat-users