tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arion" <ar...@talentinfo.com.hk>
Subject Fail to run TomCat 3.1 (pls help)
Date Tue, 29 Feb 2000 07:29:43 GMT
I have just downloaded TomCat 3.1 and try to run it on Windows NT, it
gives me the following:

E:\tomcat>tomcat run
Using classpath:
.\classes;.\webserver.jar;.\lib\servlet.jar;.\lib\jasper.jar;.\webpages\WEB-INF\classes\jsp\beans;.\lib\xml.jar;e:\jdk1.2.2\lib\tools.jar;.;e:\jdk1.2.2\lib\tools.jar

Tomcat Web Server Version 3.1M1
Loaded configuration from: file:E:/tomcat/server.xml
Starting tcp endpoint on 8080 with
org.apache.tomcat.service.http.HttpConnectionHandler
java.net.BindException: Address in use: bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:390)
        at java.net.ServerSocket.<init>(ServerSocket.java:173)
        at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:103)

        at
org.apache.tomcat.service.TcpEndpoint.startEndpoint(TcpEndpoint.java:194)

        at
org.apache.tomcat.service.TcpEndpointConnector.start(TcpEndpointConnector.java:123)

        at
org.apache.tomcat.core.ContextManager.start(ContextManager.java,
Compiled Code)
        at
org.apache.tomcat.server.HttpServer.start(HttpServer.java:372)
        at org.apache.tomcat.shell.Startup.configure(Startup.java,
Compiled Code)
        at org.apache.tomcat.shell.Startup.main(Startup.java:366)
Problem creating server: http startup exception
org.apache.tomcat.server.HttpServerException: Address in use: bind
        at
org.apache.tomcat.server.HttpServer.start(HttpServer.java:375)
        at org.apache.tomcat.shell.Startup.configure(Startup.java,
Compiled Code)
        at org.apache.tomcat.shell.Startup.main(Startup.java:366)

I am using jdk1.2.2 and have already set the classpath for it:

CLASSPATH=.;e:\jdk1.2.2\lib\tools.jar

I have also tried to create a ServerSocket myself, it success!

//begin code
import java.io.*;
import java.net.*;

public class PortTest {
 public static void main(String[] args) {
  try {
   int port = Integer.parseInt(args[0]);
   System.out.println("Setup Server on " + String.valueOf(port));
   ServerSocket ss = new ServerSocket(port);
   ss.close();
   System.out.println("OK");
  } catch (Exception e) {
   e.printStackTrace();
  }
 }
}
//end code

What's wrong?

Thank you

Arion


Mime
View raw message