facebook

[Closed] Cannot start Tomcat 5

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #250516 Reply

    Dien Huynh
    Member

    Hi,

    After following the guide in MyEclipse_Application_Server_quickstart to configure Tomcat 5 on my Eclipse 3.1 with JDK 1.4 and EnterpriseWorkbench 4.1.1, starting the Tomcat server failed with the following message:

    ———————————————————————————————-
    SEVERE: Error starting endpoint
    java.net.SocketException: Invalid argument: listen failed
    at java.net.PlainSocketImpl.socketListen(Native Method)
    at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:343)
    at java.net.ServerSocket.bind(ServerSocket.java:319)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at java.net.ServerSocket.<init>(ServerSocket.java:141)
    at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:259)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:281)
    at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:171)
    at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1527)
    at org.apache.catalina.core.StandardService.start(StandardService.java:489)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
    Apr 15, 2006 5:00:46 PM org.apache.catalina.startup.Catalina start
    SEVERE: Catalina.start:
    LifecycleException: Protocol handler start failed: java.net.SocketException: Invalid argument: listen failed
    at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1529)
    at org.apache.catalina.core.StandardService.start(StandardService.java:489)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
    Apr 15, 2006 5:00:46 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2906 ms
    StandardServer.await: create[8005]: java.net.SocketException: Invalid argument: listen failed
    java.net.SocketException: Invalid argument: listen failed
    at java.net.PlainSocketImpl.socketListen(Native Method)
    at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:343)
    at java.net.ServerSocket.bind(ServerSocket.java:319)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:496)
    at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
    —————————————————————————————–

    I could start the Tomcat outside the Eclipse IDE. Please help. Thanks.

    Cheers,

    Dien

    #250522

    Riyad Kalla
    Member

    Dien,
    Under Window > Prefs > MyEclipse > Application Servers, which connector did you configure? Tomcat 4 or Tomcat 5? If you select the one you configured, and tell me all the values you set there (copy-paste them here for me).

    Also under Launch is it set to Debug mode? Under the JDK setting, which JDK did you configure to launch Tomcat? and under Paths did you change or add anything to any of the 3 boxes? If so, what?

    #250531

    Dien Huynh
    Member

    Hi Riyad,

    My problem has been resolved. It was caused by the firewall software that blocked the javaw.exe to access to any IP port. I used to have Eclipse, MyEclipse etc running on my old PC with no problem, the difference is the firewall on my old PC was configured differently (more relax than the new PC).

    Cheers,
    Dien

    #250532

    Riyad Kalla
    Member

    Glad it’s working.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] Cannot start Tomcat 5

You must be logged in to post in the forum log in