tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "McDermid, Ian" <Imcder...@metiom.com.au>
Subject RE: Error on startup any ideas???
Date Wed, 14 Feb 2001 03:34:03 GMT
These are the 2 offending lines"

tcp        0      0 *:webcache              *:*                     LISTEN
tcp        0      0 *:www                   *:*                     LISTEN

What they are saying is that both port 80(www) used by apache, and port
8080(webcache) used by tomcat are being used.

run ps exa |grep apache to see if another instance of apache is running.

Ian

-----Original Message-----
From: aras [mailto:steve@stevearas.com]
Sent: Wednesday, February 14, 2001 2:22 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: Error on startup any ideas???


Thanks for the showing me netstat, although I have no idea what the output
is
telling me.  I ran httpd stop and ran netstat Here's the output.  By the way
I'm on RH6.2

If you see the offending line let me know what it is.  Also, I won't keep
coming back to you.  I always exhaust all options before giving in.  Thanks
for
the help.


        1      0 localhost.localdom:1054 localhost.localdoma:www CLOSE_WAIT
tcp        1      0 localhost.localdom:1051 localhost.localdoma:www
CLOSE_WAIT
tcp        1      0 localhost.localdom:1050 localhost.localdoma:www
CLOSE_WAIT
tcp        0      0 *:1038                  *:*                     LISTEN
tcp        0      0 *:1037                  *:*                     LISTEN
tcp        0      0 *:1036                  *:*                     LISTEN
tcp        0      0 *:1035                  *:*                     LISTEN
tcp        0      0 *:1034                  *:*                     LISTEN
tcp        0      0 *:1033                  *:*                     LISTEN
tcp        0      0 *:1027                  *:*                     LISTEN
tcp        0      0 *:1025                  *:*                     LISTEN
tcp        0      0 *:6000                  *:*                     LISTEN
tcp        0      0 *:webcache              *:*                     LISTEN
tcp        0      0 *:www                   *:*                     LISTEN
tcp        0      0 *:smtp                  *:*                     LISTEN
tcp        0      0 *:printer               *:*                     LISTEN
tcp        0      0 *:linuxconf             *:*                     LISTEN
tcp        0      0 *:finger                *:*                     LISTEN
tcp        0      0 *:login                 *:*                     LISTEN
tcp        0      0 *:shell                 *:*                     LISTEN
tcp        0      0 *:telnet                *:*                     LISTEN
tcp        0      0 *:ftp                   *:*                     LISTEN
tcp        0      0 *:auth                  *:*                     LISTEN
tcp        0      0 *:905                   *:*                     LISTEN
tcp        0      0 *:1024                  *:*                     LISTEN
tcp        0      0 *:sunrpc                *:*                     LISTEN
udp        0      0 *:ntalk                 *:*
udp        0      0 *:talk                  *:*
udp        0      0 *:903                   *:*
udp        0      0 *:1024                  *:*
udp        0      0 *:sunrpc                *:*
raw        0      0 *:icmp                  *:*                     7
raw        0      0 *:tcp                   *:*                     7
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  1      [ ]         STREAM     CONNECTED     54233  @0000006a
unix  1      [ ]         STREAM     CONNECTED     734    @00000028
unix  0      [ ACC ]     STREAM     LISTENING     728    /tmp/.X11-unix/X0
unix  0      [ ACC ]     STREAM     LISTENING     929
/tmp/orbit-root/orb-748360074379341804
unix  1      [ ]         STREAM     CONNECTED     779    @0000002f
unix  1      [ ]         STREAM     CONNECTED     730    @00000027
unix  1      [ ]         STREAM     CONNECTED     1038   @0000005b
unix  0      [ ACC ]     STREAM     LISTENING     987
/tmp/orbit-root/orb-1450921500846518630
unix  1      [ ]         STREAM     CONNECTED     976    @0000004a
unix  1      [ ]         STREAM     CONNECTED     770    @0000002c
unix  0      [ ACC ]     STREAM     LISTENING     620    /tmp/.s.PGSQL.8080
unix  0      [ ACC ]     STREAM     LISTENING     506    /dev/printer
unix  0      [ ACC ]     STREAM     LISTENING     1005
/tmp/orbit-root/orb-9071657312032714538
unix  1      [ ]         STREAM     CONNECTED     979    @0000004b
unix  8      [ ]         DGRAM                    411    /dev/log
unix  1      [ ]         STREAM     CONNECTED     54614  @0000006e
unix  1      [ ]         STREAM     CONNECTED     54213  @00000068
unix  1      [ ]         STREAM     CONNECTED     1047   @0000005d
unix  1      [ ]         STREAM     CONNECTED     1032   @00000059
unix  0      [ ACC ]     STREAM     LISTENING     1029
/tmp/orbit-root/orb-5658099401442766632
unix  1      [ ]         STREAM     CONNECTED     981    @0000004c
unix  0      [ ACC ]     STREAM     LISTENING     565    /dev/gpmctl
unix  1      [ ]         STREAM     CONNECTED     54616  @0000006f
unix  1      [ ]         STREAM     CONNECTED     54211  @00000067
unix  1      [ ]         STREAM     CONNECTED     1045   @0000005c
unix  1      [ ]         STREAM     CONNECTED     989    @0000004d
unix  1      [ ]         STREAM     CONNECTED     931    @00000049
unix  1      [ ]         STREAM     CONNECTED     762    @0000002b
unix  0      [ ACC ]     STREAM     LISTENING     757    /tmp/.ICE-unix/768
unix  1      [ ]         STREAM     CONNECTED     1021   @00000057
unix  1      [ ]         STREAM     CONNECTED     921    @00000048
unix  1      [ ]         STREAM     CONNECTED     54231  @00000069
unix  1      [ ]         STREAM     CONNECTED     1031   @00000058
unix  1      [ ]         STREAM     CONNECTED     993    @0000004f
unix  1      [ N ]       STREAM     CONNECTED     919    @00000047
unix  1      [ ]         STREAM     CONNECTED     1014   @00000055
unix  1      [ ]         STREAM     CONNECTED     915    @00000046
unix  1      [ ]         STREAM     CONNECTED     53907  @00000063
unix  1      [ ]         STREAM     CONNECTED     1019   @00000056
unix  1      [ ]         STREAM     CONNECTED     906    @00000045
unix  1      [ ]         STREAM     CONNECTED     783    @00000030
unix  1      [ ]         STREAM     CONNECTED     1008   @00000053
unix  1      [ ]         STREAM     CONNECTED     787    @00000031
unix  1      [ ]         STREAM     CONNECTED     900    @00000043
unix  0      [ ACC ]     STREAM     LISTENING     894
/tmp/orbit-root/orb-2006860477680742692
unix  1      [ ]         STREAM     CONNECTED     805    @00000032
unix  1      [ ]         STREAM     CONNECTED     998    @00000051
unix  1      [ ]         STREAM     CONNECTED     896    @00000042
unix  0      [ ACC ]     STREAM     LISTENING     844
/tmp/orbit-root/orb-3051013751582154250
unix  0      [ ]         STREAM     CONNECTED     179    @00000015
unix  1      [ ]         STREAM     CONNECTED     1007   @00000052
unix  1      [ ]         STREAM     CONNECTED     888    @00000041
unix  0      [ ACC ]     STREAM     LISTENING     665
/tmp/.font-unix/fs-1
unix  1      [ ]         STREAM     CONNECTED     813    @00000035
unix  1      [ ]         STREAM     CONNECTED     995    @00000050
unix  0      [ ACC ]     STREAM     LISTENING     913
/tmp/orbit-root/orb-20607205521150942681
unix  1      [ ]         STREAM     CONNECTED     54622
unix  1      [ ]         STREAM     CONNECTED     54621
unix  1      [ W ]       STREAM     CONNECTED     54620
unix  1      [ ]         STREAM     CONNECTED     54619
unix  1      [ ]         STREAM     CONNECTED     54617  /tmp/.ICE-unix/768
unix  1      [ ]         STREAM     CONNECTED     54615  /tmp/.X11-unix/X0
unix  0      [ ]         DGRAM                    54265
unix  1      [ ]         STREAM     CONNECTED     54234  /tmp/.ICE-unix/768
unix  1      [ ]         STREAM     CONNECTED     54232  /tmp/.X11-unix/X0
unix  1      [ ]         STREAM     CONNECTED     54219
unix  1      [ ]         STREAM     CONNECTED     54218
unix  1      [ W ]       STREAM     CONNECTED     54217
unix  1      [ ]         STREAM     CONNECTED     54216
unix  1      [ ]         STREAM     CONNECTED     54214  /tmp/.ICE-unix/768
unix  1      [ ]         STREAM     CONNECTED     54212  /tmp/.X11-unix/X0
unix  1      [ N ]       STREAM     CONNECTED     53908  /tmp/.X11-unix/X0
unix  1      [ ]         STREAM     CONNECTED     1053
unix  1      [ ]         STREAM     CONNECTED     1052
unix  1      [ W ]       STREAM     CONNECTED     1051
unix  1      [ ]         STREAM     CONNECTED     1050
unix  1      [ ]         STREAM     CONNECTED     1048   /tmp/.ICE-unix/768
unix  1      [ ]         STREAM     CONNECTED     1046   /tmp/.X11-unix/X0
unix  1      [ ]         STREAM     CONNECTED     1039
/tmp/orbit-root/orb-20607205521150942681
unix  1      [ ]         STREAM     CONNECTED     1033
/tmp/orbit-root/orb-2006860477680742692
unix  1      [ ]         STREAM     CONNECTED     1034
/tmp/orbit-root/orb-5658099401442766632
unix  1      [ ]         STREAM     CONNECTED     1022   /tmp/.ICE-unix/768
unix  1      [ ]         STREAM     CONNECTED     1020   /tmp/.X11-unix/X0
unix  1      [ ]         STREAM     CONNECTED     1015
/tmp/orbit-root/orb-20607205521150942681
unix  1      [ ]         STREAM     CONNECTED     1009
/tmp/orbit-root/orb-2006860477680742692
unix  1      [ ]         STREAM     CONNECTED     1010
/tmp/orbit-root/orb-9071657312032714538
unix  1      [ ]         STREAM     CONNECTED     999    /tmp/.ICE-unix/768
unix  1      [ ]         STREAM     CONNECTED     997
/tmp/orbit-root/orb-1450921500846518630
unix  1      [ ]         STREAM     CONNECTED     994
/tmp/orbit-root/orb-20607205521150942681
unix  1      [ ]         STREAM     CONNECTED     990
/tmp/orbit-root/orb-2006860477680742692
unix  1      [ ]         STREAM     CONNECTED     982    /tmp/.ICE-unix/768
unix  1      [ ]         STREAM     CONNECTED     980    /tmp/.X11-unix/X0
unix  1      [ ]         STREAM     CONNECTED     977    /tmp/.X11-unix/X0
unix  1      [ ]         STREAM     CONNECTED     932
/tmp/orbit-root/orb-2006860477680742692
unix  1      [ ]         STREAM     CONNECTED     922    /tmp/.ICE-unix/768
unix  1      [ ]         STREAM     CONNECTED     920    /tmp/.X11-unix/X0
unix  1      [ ]         STREAM     CONNECTED     916
/tmp/orbit-root/orb-2006860477680742692
unix  1      [ ]         STREAM     CONNECTED     907    /tmp/.ICE-unix/768
unix  1      [ ]         STREAM     CONNECTED     901    /tmp/.X11-unix/X0
unix  1      [ ]         STREAM     CONNECTED     898
/tmp/orbit-root/orb-2006860477680742692
unix  1      [ ]         STREAM     CONNECTED     889    /tmp/.X11-unix/X0
unix  0      [ ]         DGRAM                    887
unix  1      [ ]         STREAM     CONNECTED     823    /tmp/.ICE-unix/768
unix  1      [ ]         STREAM     CONNECTED     806    /tmp/.X11-unix/X0
unix  1      [ ]         STREAM     CONNECTED     788    /tmp/.ICE-unix/768
unix  1      [ ]         STREAM     CONNECTED     784    /tmp/.X11-unix/X0
unix  1      [ ]         STREAM     CONNECTED     780    /tmp/.ICE-unix/768
unix  1      [ ]         STREAM     CONNECTED     771    /tmp/.X11-unix/X0
unix  1      [ ]         STREAM     CONNECTED     763    /tmp/.X11-unix/X0
unix  1      [ N ]       STREAM     CONNECTED     735
/tmp/.font-unix/fs-1
unix  1      [ ]         STREAM     CONNECTED     737    /tmp/.X11-unix/X0
unix  0      [ ]         DGRAM                    700
unix  0      [ ]         DGRAM                    668
unix  0      [ ]         DGRAM                    551
unix  0      [ ]         DGRAM                    500
unix  0      [ ]         DGRAM                    433
unix  0      [ ]         DGRAM                    421


"McDermid, Ian" wrote:

> Tomcat must be started first if you are importing
> "/$TOMCAT_HOME/conf/mod_jk.conf-auto" to setup your apache/tomcat
> environment.
>
> By default tocat uses 8080 (httpproxy) and 8007 executing "netstat-a" will
> tell you what ports are listening on your machine. If you see 80(http) or
> 8080(httpproxy) then that is your problem.
>
> I assume you are using freeBDS, or a Linux variant.
>
> Ian
>
> -----Original Message-----
> From: aras [mailto:steve@stevearas.com]
> Sent: Wednesday, February 14, 2001 1:57 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Error on startup any ideas???
>
> Well I'm learning more and more.  I stopped appache with *httpd stop* and
> tried to start TomCat and I still get the error.  Am I correct that TomCat
> should be started first then apache?  I'll have to do more research on the
> ports, but if you have any ideas I'd appreciated it.
>
> Jeff Lansing wrote:
>
> > Hi,
> > Yes, some other process is using port 80 (or whatever port you have
Tomcat
> configured to listen on).
> > Jeff
> >
> > aras wrote:
> >
> > > I think I have everything setup correctly (probably not).  Here's the
> error:
> > > FATAL:java.net.BindException: Address already in use
> > >
> > > Here's the complete output
> > >
> > > in tomcat.sh
> > > Using classpath:
> > >
>
/usr/local/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/local/jakarta-tomcat-3.2.1/
>
lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jaxp.jar:/usr/local/jakar
>
ta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta-tomcat-3.2.1/lib/servlet.j
>
ar:/usr/local/jakarta-tomcat-3.2.1/lib/test:/usr/local/jakarta-tomcat-3.2.1/
>
lib/webserver.jar:/usr/local/jdk/j2sdk1.3/lib/tools.jar:.:/usr/local/jdk/j2s
>
dk1.3/lib/classes.zip:/usr/lib/pgsql/jdbc7.0-1.2.jar:/usr/local/jdk/j2sdk1.3
> /lib/tools.jar
> > >
> > > [root@localhost bin]# 2001-02-13 08:21:14 - ContextManager: Adding
> context Ctx(
> > > /examples )
> > > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( /admin )
> > > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( 127.0.0.1: )
> > > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx(
> 127.0.0.1:/examples )
> > > Starting tomcat. Check logs/tomcat.log for error messages
> > > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx(  )
> > > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( /test )
> > > FATAL: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:397)
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, email: tomcat-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, email: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org


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

Mime
View raw message