1 Reply Latest reply on Jul 17, 2005 1:17 PM by Darran Lofthouse

    Tomcat doesn't connect with localhost

    chaman kumar Newbie

      sir,
      when I start tomcat it successfully start but when I connect with localhost it gives follwing error:-

      An error occured while loading http://localhost:8080:
      Could not connect to host localhost (port 8080)

      At shutdown time it gives follwing error message.


      [root@localhost root]# shutdown.sh
      Using CATALINA_BASE: /opt/tomcat
      Using CATALINA_HOME: /opt/tomcat
      Using CATALINA_TMPDIR: /opt/tomcat/temp
      Using JAVA_HOME: /usr/java/j2sdk1.4.2_03

      Catalina.stop: java.net.SocketException: Network is unreachable
      java.net.SocketException: Network is unreachable
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
      at java.net.PlainSocketImpl.connectToAddress (PlainSocketImpl.java:171)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
      at java.net.Socket.connect(Socket.java:452)
      at java.net.Socket.connect(Socket.java:402)
      at java.net.Socket.(Socket.java:309)
      at java.net.Socket.(Socket.java:124)
      at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:436)
      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.stopServer(Bootstrap.java:322)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:400)


      How can I solve this problem?