tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: Problem running 2 instances of Tomcat
Date Tue, 13 May 2003 16:45:53 GMT

Change the ports in server.xml.  Each Tomcat needs its own shutdown port 
and its own Connector port.

John

On Tue, 13 May 2003 09:41:40 -0700 (PDT), Mark Liu <markliu1989@yahoo.com> 
wrote:

> I do need to run 2 instances of Tomcat on the same Sun
> work station (the OS is Solaris 9).
>
> I am running one on port 80, and when I tried to run
> another one on 8080, I got the following
> java.net.BindException.  It seems that ports 8009 and
> 8005 are being used by the other instance of Tomcat.
>
> So, how can I get around this?  Can I change these
> port numbers somewhere?  Thanks.
>
> ***** The exceptions ********
>
> May 13, 2003 11:23:48 AM
> org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on port 8080
> May 13, 2003 11:23:48 AM
> org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on port 8443
> May 13, 2003 11:23:49 AM
> org.apache.jk.common.ChannelSocket init
> INFO: Port busy 8009 java.net.BindException: Address
> already in use
> May 13, 2003 11:23:49 AM
> org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:8010
> May 13, 2003 11:23:49 AM org.apache.jk.server.JkMain
> start
> INFO: Jk running ID=1 time=14/639 
> config=/export/home/tomcat4.1.24/conf/jk2.properties
> 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:321)
> at
> java.net.ServerSocket.bind(ServerSocket.java:308)
> at
> java.net.ServerSocket.bind(ServerSocket.java:266)
> at
> java.net.ServerSocket.<init>(ServerSocket.java:182)
> at
> org.apache.catalina.core.StandardServer.await(StandardServer.java:510)
> at
> org.apache.catalina.startup.Catalina.start(Catalina.java:521)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> 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:324)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> Stopping service Tomcat-Standalone
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
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