There're two possible problems :

1) Tomcat is already running. Solution : Stop it running
<tomcat_path>/bin/shutdown.sh or <tomcat_path>/bin/tomcat.sh stop
2) There's another application running in the TCP ports that Tomcat is set.
Solution : change the ports of Tomcat's Connection Handlers in file
<tomcat_path>/conf/server.xml :

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

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

        See the Tomcat's Web Server Port (8080) and Tomcat's ajp12 Server (8007).
Change it to, per example, 9090 and 9007. Now your Tomcat's web server is
answering by calling http://<tomcat_host>:9090 and, if you use ajp12
protocol (Apache calling Tomcat using Jserv, per example), then change the
call that Apache do to call Tomcat in <Apache_Path>/conf/httpd.conf :

ApJServMount / ajpv12://192.168.0.13:8007

        See the port (8007), change it to the new port value (9007).


Sergio Stateri Jr
[EMAIL PROTECTED]
Tesla Tecnologia
Sao Paulo (SP) Brazil

-----Mensagem original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Em nome de John Bateman
Enviada em: Ter�a-feira, 24 de Outubro de 2000 15:04
Para: Tomcat-User (E-mail)
Assunto: [Tomcat-users] Error running ./startup.sh

Hi

I'm getting an error when I try and run tomcat in stand alone mode. The logs
don't show anything wrong.

Error:

[root@opus bin]# ./startup.sh
Using classpath:
.:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/
tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs
erver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/
lib/classes.zip:/classes:/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/loc
al/lib/jconn2.jar
[root@opus bin]# Starting tomcat. Check logs/tomcat.log for error messages
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:386)
        at java.net.ServerSocket.<init>(ServerSocket.java:169)
        at java.net.ServerSocket.<init>(ServerSocket.java:120)
        at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
ocketFactory.java:97)
        at
org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint.
java:186)
        at
org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1
42)
        at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:253)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)

I have all my environment variables set (and verified!) but I keep getting
this error.

I'll be happy to post any additional information needed, but I don't want to
post everything if it's just going to take up the net's precious bandwidth.

Thanks alot.



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
John Bateman
Cyber World Group Inc.


_______________________________________________
tomcat-users mailing list
[EMAIL PROTECTED]
https://mailman.real-time.com/mailman/listinfo/tomcat-users

Reply via email to