tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bachler, Elisabeth (Elisabeth)" <ebach...@lucent.com>
Subject RE: How can I deploy 2 tomcat and work on both of them at the sam e ti me?
Date Wed, 29 Sep 2004 09:52:12 GMT
Hi,
Thank you for your quick answer.
I have tried to put each tomcat under a different port (8080 and 8000) but I
got an exception when tomcat ends the startup.
I have sent you as well the server.xml files.
Do you have an idea of what is going wrong?
Thanks
Elisabeth


EXCEPTION:

INFO: Server startup in 29944 ms
StandardServer.await: create[8005]: java.net.BindException: Address already
in use
java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
        at java.net.ServerSocket.bind(ServerSocket.java:318)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at
org.apache.catalina.core.StandardServer.await(StandardServer.java:534
)
        at org.apache.catalina.startup.Catalina.await(Catalina.java:657)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:617)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Sep 29, 2004 11:44:04 AM org.apache.coyote.http11.Http11Protocol pause
INFO: http11protocol.pause


 server.xml from the 2 configurations:

TOMCAT 1:

  <Service name="Catalina">
    <Connector acceptCount="100" connectionTimeout="20000"
disableUploadTimeout="true" port="8000" redirectPort="8443">
    </Connector>
    <Connector port="8009" protocol="AJP/1.3"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
redirectPort="8443">
    </Connector>
    <Engine defaultHost="localhost" name="Catalina">
      <Host appBase="webapps" name="localhost">
        <Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_log." suffix=".txt" timestamp="true"/>
      </Host>
      <Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt" timestamp="true"/>
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
    </Engine>
  </Service>

TOMCAT 2:

  <Service name="Catalina">
    <Connector acceptCount="100" connectionTimeout="20000"
disableUploadTimeout="true" port="8080" redirectPort="8443">
    </Connector>
    <Connector port="8009" protocol="AJP/1.3"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
redirectPort="8443">
    </Connector>
    <Engine defaultHost="localhost" name="Catalina">
      <Host appBase="webapps" name="localhost">
        <Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_log." suffix=".txt" timestamp="true"/>
      </Host>
      <Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt" timestamp="true"/>
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
    </Engine>
  </Service>
  

-----Original Message-----
From: zhicheng wang [mailto:wang_zc@yahoo.co.uk]
Sent: miƩrcoles, 29 de septiembre de 2004 10:08
To: Tomcat Users List
Subject: Re: How can I deploy 2 tomcat and work on both of them at the
same ti me?


you should not have problem to run two or more if they
do not use the port. for your test one, you may not
want to use port 80.

cheng

 --- "Bachler, Elisabeth (Elisabeth)"
<ebachler@lucent.com> wrote: 
> Hello,
> 
> I have tomcat jakarta-tomcat-5.0.19 installed on my
> machine under /opt 
> Now, I have installed another tomcat (same version)
> under another root
> directory.
> I need to have two versions working at the same
> time. Under one, I will have
> a client web version and under the other one, my
> test version. Both can be
> working at the same time but I can't manage to make
> it running. 
> Could you help me ?
> 
> Thanks
> Elisabeth
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 
>  

=====
Best wishes
Z C Wang


	
	
		
___________________________________________________________ALL-NEW Yahoo!
Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message