You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sameer Yami <SY...@Trintech.com> on 2000/07/26 17:52:07 UTC

BindException Error

hi,
I am trying to run TomCat on port 80 and following is my server.xml..
-------------------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>

<Server adminPort="8080" workDir="work">
    <!-- Debug low-level events in XmlMapper startup -->
    <xmlmapper:debug level="0" />

    <!-- This is quite flexible; we can either have a log file per
         module in Tomcat (example: ContextManager) or we can have
         one for Servlets and one for Jasper, or we can just have
	 one tomcat.log for both Servlet and Jasper.

	 If you omit "path" there, then stderr should be used.

	 verbosityLevel values can be: 
	    FATAL
	    ERROR
	    WARNING 
            INFORMATION
            DEBUG
         -->

    <Logger name="tc_log" 
            path="logs/tomcat.log"
            customOutput="yes" />

    <Logger name="servlet_log" 
            path="logs/servlet.log"
            customOutput="yes" />

    <Logger name="JASPER_LOG" 
	    path="logs/jasper.log"
            verbosityLevel = "INFORMATION" />

    <ContextManager port="80" hostName="" inet="">
        <!-- ContextInterceptor
className="org.apache.tomcat.context.LogEvents" / -->
        <ContextInterceptor className="org.apache.tomcat.context.AutoSetup"
/>
        <ContextInterceptor
className="org.apache.tomcat.context.DefaultCMSetter" />
        <ContextInterceptor
className="org.apache.tomcat.context.WorkDirInterceptor" />
        <ContextInterceptor
className="org.apache.tomcat.context.WebXmlReader" />
        <ContextInterceptor
className="org.apache.tomcat.context.LoadOnStartupInterceptor" />
        <!-- Request processing -->
        <RequestInterceptor
className="org.apache.tomcat.request.SimpleMapper" debug="0" />
        <RequestInterceptor
className="org.apache.tomcat.request.SessionInterceptor" />
        <RequestInterceptor
className="org.apache.tomcat.request.SecurityCheck" />
        <RequestInterceptor className="org.apache.tomcat.request.FixHeaders"
/>

        <Connector className="org.apache.tomcat.service.SimpleTcpConnector">
            <Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
            <Parameter name="port" value="80"/>
        </Connector>

        <Connector className="org.apache.tomcat.service.SimpleTcpConnector">
            <Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
            <Parameter name="port" value="8007"/>
        </Connector>

        <!-- example - how to override AutoSetup actions -->
        <Context path="/examples" docBase="webapps/examples" debug="0"
reloadable="true" > 
        </Context>
        <!-- example - how to override AutoSetup actions -->
        <Context path="" docBase="webapps/ROOT" debug="0" reloadable="true"
> 
        </Context>

        <Context path="/test" docBase="webapps/test" debug="0"
reloadable="true" > 
        </Context>

    </ContextManager>
</Server>
-------------------------------------------------------------------------
This does not run on my machine and tomcat says that it is BindException
Error: Address in Use. The same server/xml however runs on other machine,
where I do not even have the administrator rights.
Can anyone tell me the solution to this?

regards
Sameer Yami

Re: BindException Error

Posted by Thom May <th...@amxstudios.com>.
-snip-

> Error: Address in Use. The same server/xml however runs on other machine,
did you look in the archives? this comes up almost daily. It
means something else is using port 80. like a web server. like
apache, or IIS. not sure, as you didn't mention, or i didn't see
you mention, which platform. or which ver of the jdk. or tomcat.
etc... you are using. try and include some more details next
time please.
but, the quick fix is. turn off the currently running weserver.
try again. watch tomcat run in all its majesty. 
cheers
thom
-- 
Thomas May
	Sys Admin, AMX Communications
(T) +44 (0)20 7440 3955
(F) +44 (0)20 7613 5333
(E) thomas.may@amxstudios.com
(W) http://www.amxstudios.com

Re: BindException Error

Posted by Stephane Cachat <sc...@sqli.com>.
You have another server listening on port 80 !

SC

Sameer Yami wrote:
> 
> hi,
> I am trying to run TomCat on port 80 and following is my server.xml..
> -------------------------------------------------------------------------
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <Server adminPort="8080" workDir="work">
>     <!-- Debug low-level events in XmlMapper startup -->
>     <xmlmapper:debug level="0" />
> 
>     <!-- This is quite flexible; we can either have a log file per
>          module in Tomcat (example: ContextManager) or we can have
>          one for Servlets and one for Jasper, or we can just have
>          one tomcat.log for both Servlet and Jasper.
> 
>          If you omit "path" there, then stderr should be used.
> 
>          verbosityLevel values can be:
>             FATAL
>             ERROR
>             WARNING
>             INFORMATION
>             DEBUG
>          -->
> 
>     <Logger name="tc_log"
>             path="logs/tomcat.log"
>             customOutput="yes" />
> 
>     <Logger name="servlet_log"
>             path="logs/servlet.log"
>             customOutput="yes" />
> 
>     <Logger name="JASPER_LOG"
>             path="logs/jasper.log"
>             verbosityLevel = "INFORMATION" />
> 
>     <ContextManager port="80" hostName="" inet="">
>         <!-- ContextInterceptor
> className="org.apache.tomcat.context.LogEvents" / -->
>         <ContextInterceptor className="org.apache.tomcat.context.AutoSetup"
> />
>         <ContextInterceptor
> className="org.apache.tomcat.context.DefaultCMSetter" />
>         <ContextInterceptor
> className="org.apache.tomcat.context.WorkDirInterceptor" />
>         <ContextInterceptor
> className="org.apache.tomcat.context.WebXmlReader" />
>         <ContextInterceptor
> className="org.apache.tomcat.context.LoadOnStartupInterceptor" />
>         <!-- Request processing -->
>         <RequestInterceptor
> className="org.apache.tomcat.request.SimpleMapper" debug="0" />
>         <RequestInterceptor
> className="org.apache.tomcat.request.SessionInterceptor" />
>         <RequestInterceptor
> className="org.apache.tomcat.request.SecurityCheck" />
>         <RequestInterceptor className="org.apache.tomcat.request.FixHeaders"
> />
> 
>         <Connector className="org.apache.tomcat.service.SimpleTcpConnector">
>             <Parameter name="handler"
> value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
>             <Parameter name="port" value="80"/>
>         </Connector>
> 
>         <Connector className="org.apache.tomcat.service.SimpleTcpConnector">
>             <Parameter name="handler"
> value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
>             <Parameter name="port" value="8007"/>
>         </Connector>
> 
>         <!-- example - how to override AutoSetup actions -->
>         <Context path="/examples" docBase="webapps/examples" debug="0"
> reloadable="true" >
>         </Context>
>         <!-- example - how to override AutoSetup actions -->
>         <Context path="" docBase="webapps/ROOT" debug="0" reloadable="true"
> >
>         </Context>
> 
>         <Context path="/test" docBase="webapps/test" debug="0"
> reloadable="true" >
>         </Context>
> 
>     </ContextManager>
> </Server>
> -------------------------------------------------------------------------
> This does not run on my machine and tomcat says that it is BindException
> Error: Address in Use. The same server/xml however runs on other machine,
> where I do not even have the administrator rights.
> Can anyone tell me the solution to this?
> 
> regards
> Sameer Yami
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org