facebook

Running two instances to tomcat

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #314408 Reply

    choonhoong
    Participant

    Hi,

    I need to run two separate instances of tomcat on my server. I have installed tomcat 6.0 in it’s own directory and this runs on port 8080.

    I still want to be able to deploy Myeclipse Tomcat (the inbuilt one) and this is set to run on port 8090.

    Both run on the same version of java (JDK 1.6.0_13) that comes with Myeclipse.

    The standalone tomcat 6.0 is running just fine. Now when I try to start Myeclipse tomcat, I get the error below. Do I need to install another JDK/JRE for each tomcat installation?

    11/02/2011 7:02:47 AM org.apache.catalina.core.StandardServer await
    SEVERE: StandardServer.await: create[8005]:
    java.net.BindException: Address already in use: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
    at java.net.ServerSocket.bind(ServerSocket.java:319)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
    at org.apache.catalina.startup.Catalina.await(Catalina.java:630)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:590)
    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:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    java.net.SocketException: Connection reset

    #314423 Reply

    support-swapna
    Moderator

    choonhoong,

    SEVERE: StandardServer.await: create[8005]:

    Even though the ports of ME Tomcat and stand alone tomcat are different, they both use 8005.

    Edit the server.xml in the Tomcat 6 install directory and replace
    <Server port=”8005″ shutdown=”SHUTDOWN”>
    with
    <Server port=”8004″ shutdown=”SHUTDOWN”>

    This should fix the issue.
    Let us know how it works for you.

    #314441 Reply

    choonhoong
    Participant

    Thanks! that worked! :>

    #314459 Reply

    support-swapna
    Moderator

    choonhoong,

    Glad that it is working for you.
    Do let us know if you have any other issues.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Running two instances to tomcat

You must be logged in to post in the forum log in