9 Replies Latest reply on Jan 28, 2009 12:08 PM by peterj

    JBOSS not loaded

    ran_sushmi

      I have a query on is there something as JBOSS is not started properly? I have heard things like not being able to log in to the application because JBOSS is not started properly as JBOSS is used in our application.
      If, there is a problem of JBOSS not started properly, how to check it. Normally, we check for JBOSS started by seeing in the log $JBOSS_HOME/server/default/jboss.log for something like 'Started in....'.

      I hope, my question is clear.

      Please, help in solving the doubt.

      regards

        • 1. Re: JBOSS not loaded
          peterj

          Does this answer your question: http://www.jboss.org/community/docs/DOC-12309

          • 2. Re: JBOSS not loaded
            ran_sushmi

            hi,

            thanks, for your answer. I guess, twiddle facility will be most helpful to check in my scenario. I just wanted to know how and where to issue the twiddle command:-

            twiddle get "jboss.system:type=Server" Started

            I hope, my question is clear.

            Please, help in solving the doubt.

            regards

            • 3. Re: JBOSS not loaded
              peterj

              Did you try it?

              • 4. Re: JBOSS not loaded
                ran_sushmi

                hi,

                I tried it on the Linux server having the application. I am not a java guy, so, was not sure where to try that.

                regards

                • 5. Re: JBOSS not loaded
                  peterj

                  OK, you are not a "Java guy," but have you run Linux scripts before? twiddle.sh is a Linux script.

                  • 6. Re: JBOSS not loaded
                    ran_sushmi

                    hi,

                    sorry, I was running the command wrongly. The output is as follows:-
                    -------------------------------------------------------------
                    ./twiddle.sh get "jboss.system:type=Server" Started
                    Started=true
                    -------------------------------------------------------------

                    So, this, 'Started=true' means JBOSS has started and running properly. Am, I right?

                    Please, help in solving the doubt.

                    regards

                    • 7. Re: JBOSS not loaded
                      peterj

                      Yes, that means it is running. Technically, it means that that particular service is running. This does not tell you if other services, such as the web service, are running.

                      • 8. Re: JBOSS not loaded
                        ran_sushmi

                        does that mean that we cannot say for sure that JBOSS is started? What all services should be required as I am not sure of what all services are running or what all services are required in our scenario?

                        Please, help in solving the doubt.

                        regards

                        • 9. Re: JBOSS not loaded
                          peterj

                          Look back at the link I posted, it discusses the options.

                          The main question is - what is it that you want to check? That HTTP is ready? That web services are ready? That RMI is ready? That the messaging service is ready? That application X is deployed and ready? And there are others. Each is its own service, each handled by its own mbean. You can always query the corresponding mbean to see if it is started. Or you can issue a benign request, and if you get an acceptable response, you know that the service has started. I used this last method in one of the products that I developed.