java.net.BindException: Address already in use

havolinec <[email protected]> Mon, 27 Oct 2008 19:39:43 -0700 (PDT)
Newsgroups gmane.comp.java.scarab.user
Message-ID <[email protected]>
Hi all,

I am trying to install 2 Scarab (0.21) instances into 1 Tomcat (4.1.37) in
Centos 5
but there is error "java.net.BindException: Address already in use"
everytime I startup tomcat.

I've refer to the following pages as a guide but to no avail:
http://osdir.com/ml/java.scarab.user/2005-07/msg00215.html
http://www.solitone.org/wiki/Wiki.jsp?page=HowtoRunMultipleInstances

These are the steps I've done:

- For scarab1 instance, I've set (at build.properties) scarab.http.port=8091
and scarab.tomcat.http.port=8091 before building it
- For scarab1 instance, I've set (at build.properties) scarab.http.port=8092
and scarab.tomcat.http.port=8092 before building it
- Copied each instance into $CATALINA_HOME/webapps/scarab1 and
$CATALINA_HOME/webapps/scarab1 respectively
- Added scarab1.xml and scarab2.xml at $CATALINA_HOME/webapps with the
context as "scarab1" and "scarab2" respectively pointing to the relative
docBase
- Also added the following at server.xml:
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8091" enableLookups="true" redirectPort="8443"
               acceptCount="100" connectionTimeout="20000"
               useURIValidationHack="false" disableUploadTimeout="true" />

    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8092" enableLookups="true" redirectPort="8443"
               acceptCount="100" connectionTimeout="20000"
               useURIValidationHack="false" disableUploadTimeout="true" />

- Started the tomcat using startyp.sh and the error "java.net.BindException:
Address already in use" appears in catalina.out

However, there is no error if I just configure one instance by removing the
scarab2.xml at $CATALINA_HOME/webapps.

Please help.

-- 
View this message in context: http://www.nabble.com/java.net.BindException%3A-Address-already-in-use-tp20200497p20200497.html
Sent from the Scarab - User mailing list archive at Nabble.com.