3 Replies Latest reply on Feb 1, 2008 10:39 AM by jaikiran pai

    JBoss Service Doesnt Stop

    raghav telgar Newbie

      Using Native JBoss i m running my jboss service. but i get the problem when i try to stop the service.. From control panel when i stop the service, it shows it as stopped. but i can stilll access the jboss from the browser.
      when i tried using this command:

      service stop jbas42svc

      this is the error message that is displayed....

      Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at org.jboss.Shutdown.main(Shutdown.java:214)
      Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
      ... 4 more
      Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
      ... 5 more
      Caused by: java.net.ConnectException: Connection refused: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      at java.net.Socket.connect(Socket.java:507)
      at java.net.Socket.connect(Socket.java:457)
      at java.net.Socket.(Socket.java:365)
      at java.net.Socket.(Socket.java:265)
      at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
      at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)



      Have i missed out any configurations...???

      Thanks,
      Raghav

        • 1. Re: JBoss Service Doesnt Stop
          jaikiran pai Master

           

          From control panel when i stop the service, it shows it as stopped. but i can stilll access the jboss from the browser.


          What do the logs show? I guess, either the server.log (in the log folder) or shutdown.log (in the bin folder) should be updated with the shutdown related messages.


          when i tried using this command:

          service stop jbas42svc


          When you tried this command, was the server running? Also, have you changed any server ports? Before running this command, what does the following command output:

          telnet localhost 1099


          By the way, the command to stop the service is:

          net stop JBAS4SVC




          • 2. Re: JBoss Service Doesnt Stop
            raghav telgar Newbie

            Hi.. i am able to start and stop the service... the changes that i made in service.bat are:

            :cmdStop
            REM Executed on service stop
            call shutdown -s 192.168.1.216 >stop.log
            goto cmdEnd

            added the IPAddress in the shutdown call.

            now i am able to stop service using net stop jbas42svc command. but one problem is temporary files are not deleted. i checked the server.log file. this is the problem area of server.log where tmp files are not removed...


            2008-02-01 17:51:56,618 DEBUG [org.jboss.system.server.Server] Deleting server tmp/deploy directory
            2008-02-01 17:51:56,618 DEBUG [org.jboss.util.file.Files] Failed to delete file: C:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp6213jboss-annotations-ejb3.jar
            2008-02-01 17:51:56,618 DEBUG [org.jboss.util.file.Files] Failed to delete file: C:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp6214jboss-ejb3.jar
            2008-02-01 17:51:56,618 DEBUG [org.jboss.util.file.Files] Failed to delete file: C:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp6215jboss-aop-jdk50.jar
            2008-02-01 17:51:56,618 DEBUG [org.jboss.util.file.Files] Failed to delete file: C:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp6216jboss-aspect-library-jdk50.jar
            2008-02-01 17:51:56,618 DEBUG [org.jboss.util.file.Files] Failed to delete file: C:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp6217trove.jar
            2008-02-01 17:51:56,618 DEBUG [org.jboss.util.file.Files] Failed to delete file: C:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp6218jboss-bean-deployer.jar
            2008-02-01 17:51:56,618 DEBUG [org.jboss.util.file.Files] Failed to delete file: C:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp6219jboss-container.jar
            2008-02-01 17:51:56,618 DEBUG [org.jboss.util.file.Files] Failed to delete file: C:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp6220jboss-dependency.jar
            2008-02-01 17:51:56,618 DEBUG [org.jboss.util.file.Files] Failed to delete file: C:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp6221jboss-microcontainer.jar
            2008-02-01 17:51:56,618 DEBUG [org.jboss.util.file.Files] Failed to delete file: C:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp6222jasper-jdt.jar
            2008-02-01 17:51:56,618 DEBUG [org.jboss.util.file.Files] Failed to delete file: C:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp6223jbossweb-extras.jar
            2008-02-01 17:51:56,618 DEBUG [org.jboss.util.file.Files] Failed to delete file: C:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp6229jstl.jar
            2008-02-01 17:51:56,618 DEBUG [org.jboss.util.file.Files] Failed to delete file: C:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp6234jaxb-api.jar
            2008-02-01 17:51:56,711 INFO [org.jboss.system.server.Server] Shutdown complete

            Thanks,
            Raghav.

            • 3. Re: JBoss Service Doesnt Stop
              jaikiran pai Master

              Those are debug level logs and can be safely ignored.