One Server with Multiple Tomcats for SW Development
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Arnold_Angel
Posted On:   Wednesday, December 5, 2001 08:01 AM

I need advice on installing 3 Tomcats on one server. Each Tomcat would have Dedicated Ports for DEV, QA, and BETA. When I attempted to start two Tomcats I get the following: Catalina.start: LifecycleException: Error creating server socket: java.net.Bin dException: Address in use: JVM_Bind LifecycleException: Error creating server socket: java.net.BindException: Addr ess in use: JVM_Bind at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne ctor.java:483) at org.apache.catalina.core.StandardService.initialize(StandardService.j ava:454) at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav    More>>

I need advice on installing 3 Tomcats on one server. Each Tomcat would have Dedicated Ports for DEV, QA, and BETA.

When I attempted to start two Tomcats I get the following:


Catalina.start: LifecycleException: Error creating server socket:

  • java.net.Bin
    dException: Address in use: JVM_Bind

  • LifecycleException: Error creating server socket: java.net.BindException: Addr
    ess in use: JVM_Bind

  • at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne
    ctor.java:483)

  • at org.apache.catalina.core.StandardService.initialize(StandardService.j
    ava:454)

  • at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
    a:552)

  • at org.apache.catalina.startup.Catalina.start(Catalina.java:775)

  • at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)

  • at org.apache.catalina.startup.Catalina.process(Catalina.java:179)

  • at java.lang.reflect.Method.invoke(Native Method)

  • at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

  • ----- Root Cause -----

  • java.net.BindException: Address in use: JVM_Bind

  • at java.net.PlainSocketImpl.socketBind(Native Method)

  • at java.net.PlainSocketImpl.bind(Unknown Source)

  • at java.net.ServerSocket. (Unknown Source)

  • at java.net.ServerSocket. (Unknown Source)

  • at org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Defau
    ltServerSocketFactory.java:118)

  • at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne
    ctor.java:477)

  • at org.apache.catalina.core.StandardService.initialize(StandardService.j
    ava:454)

  • at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
    a:552)

  • at org.apache.catalina.startup.Catalina.start(Catalina.java:775)

  • at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)

  • at org.apache.catalina.startup.Catalina.process(Catalina.java:179)

  • at java.lang.reflect.Method.invoke(Native Method)

  • at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

  • and many others.


    Thanks in advance. I just need simple step-by-step checklist of how to do this. It must be a simple configuration file setting


    Arnold Angel, aangel2@asciences.com, 919-544-8500, x132

  •    <<Less

    Re: One Server with Multiple Tomcats for SW Development

    Posted By:   AlessandroA_Garbagnati  
    Posted On:   Thursday, December 6, 2001 01:59 AM

    Hi,

    Your error is caused because you cannot use the same port on more than one instance of Tomcat. If the first instance is using the defaults setting, the second one need to have different ports to use.

    If you want to run three instances of Tomcat 3.3.x (or 3.2.x) without, obviously, duplicate Tomcat's codebase, you can set up three different configuration files (server.xml), all of them using differents ports (or you'll get the "Address already in use" error again). Then you start Tomcat with the option "-f" followed by the name of the configuration file.


    For Tomcat 4.0.x, you can use the CATALINA_BASE and CATALINA_HOME variables to use different instances sharing the same Tomcat code. The procedure is explained in the pages of the Tomcat 4 Documentation site, part of the Jakarta Tomcat web site

    About | Sitemap | Contact