Do a
   netstat -a -n | more
and see if something is using and port which you have given in server.xml
(do 
    grep port server.xml
 to find all port assignments in your server.xml)
Looking at your log something us using port 397.

Do not be confused... Tomcat is a server (i.e., opens ports for listening
for mod_jk/mod_jserv [e.g., 8007] and for serving pages by itself on HTTP port
[ e.g., 8080 ], or serving pages on HTTPS port [ e.g., 8447 ] ),
and Apache is a client (talks to Tomcat first via mod_jk/mod_jserv).
Now... Server should in principle be always started before client, so start
tomcat first, and then start Apache. Killing apache will not cure your problem.
If apache uses port 397 for something, it means that this port cannot be used
by Tomcat. Only one process can listen to a given port. Ports cannot be shared
among different processes. 

The BindException


On Tue, 13 Feb 2001, aras wrote:

> 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/jakarta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta-tomcat-3.2.1/lib/servlet.jar:/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/j2sdk1.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: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

Jan K. Labanowski            |    phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center    |    Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd,             |    http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163      |    http://www.osc.edu/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to