1 2 Previous Next 17 Replies Latest reply on Nov 3, 2010 5:09 PM by nezamkhan

    JBoss Installation

    nezamkhan

      I was wondering if some one could point me to the right direction. I have installed JBoss 5.1 on a Windows 2003/32bit. However I am not able to run the services.bat executable.

       

      I get the following error:

       

       


      C:\Documents and Settings\nezam\Desktop\jboss-ep-native-5.1.0-windows32-i386\j
      boss-ep-5.1\native\sbin>service.bat install
      Installing JBoss EAP 5
      Using C:\Documents and Settings\nezam\Desktop\jboss-ep-native-5.1.0-windows32-
      i386\jboss-ep-5.1\native\sbin\run.bat
      Failed installing JBEAP5SVC
      The operation completed successfully.

       

      C:\Documents and Settings\nezam\Desktop\jboss-ep-native-5.1.0-windows32-i386\j
      boss-ep-5.1\native\sbin>

       

       


      Please advice. Thanks!

        • 1. Re: JBoss Installation
          peterj

          First, do not place JBoss AS into a directory where there are spaces in the path - you will only end up with hearatches. I have mine at c:\opt\jboss\jboss-5.1.0.GA

           

          Second, make sure that you can laucnh JBoss AS manually before attemtping to set it up as a service.

           

          Third, the Windows logs (I think the Application log, but try the System log also) often have information about failures to install.start/stop services.

           

          Oh, and welcome to the JBoss forums!

          • 2. Re: JBoss Installation
            nezamkhan

            Peter,

            Thank you for the prompt reply. I placed the jboss under the C:\ directory.

            Now, I am not sure what you mean by trying to launch JBoss manually?

            This is what I get again:

             


            C:\Documents and Settings\MErfani\Desktop\jboss-ep-native-5.1.0-windows32-i386\j
            boss-ep-5.1\native\sbin>service.bat install
            Installing JBoss EAP 5
            Using C:\Documents and Settings\MErfani\Desktop\jboss-ep-native-5.1.0-windows32-
            i386\jboss-ep-5.1\native\sbin\run.bat
            Failed installing JBEAP5SVC
            The operation completed successfully.

             

            C:\Documents and Settings\nezam\Desktop\jboss-ep-native-5.1.0-windows32-i386\j
            boss-ep-5.1\native\sbin>

            • 3. Re: JBoss Installation
              wdfink
              Now, I am not sure what you mean by trying to launch JBoss manually?

               

              Peter meant that you should start 'JBOSS_DIR\bin\run.bat -c <config>' where config mean e.g. default or all, to be sure that the JBoss installation starts correct.

              Look into JBOSS_DIR\server\<config>\log and check the logfiles. If no errors you might start service.bat install again and check the logfiles for further information about the service installation.

              • 4. Re: JBoss Installation
                peterj

                Why are you still running service.bat from within Documents and Settings? Exactly where did you move JBoss AS to? C:\ doesn't really help. Or tell me the full path for the service.bat file. You should be running service.bat from that location.

                 

                Frankly, I don't recognize any of the directory names you have - I expect to see jboss-5.1.0.GA, but your path has jboss-ep-native-5.1.0-windows32-i386, jboss-ep-5.1 and sbin, none of which appear in the standard JBoss AS installation. This makes it difficult to help you because I don't know which direcotryies you should be using.

                • 5. Re: JBoss Installation
                  nezamkhan

                  Find, thanks for the help.I can't find a executable named run.bat. Is this the same as run.log? when runing run.logt  this is what I get in the txt file it opens:

                   

                  Starting JBoss EAP 5 [2010-11-01 12:51:22]
                  '"C:\jboss-ep-native-5.1.0-windows32-i386\jboss-ep-5.1\native\sbin\run.bat"' is not recognized as an internal or external command,
                  operable program or batch file.
                  Shutdown JBoss EAP 5 service [2010-11-01 12:51:22]

                   

                  Also, the only log file I found is the run.log. Here is the list of all directories and subdirectories of the JBoss I have downloaded if this might help:

                  C:\jboss-ep-native-5.1.0-windows32-i386\jboss-ep-5.1\native

                  Doc

                  etc

                  include

                  lib

                  sbin

                  README

                  • 6. Re: JBoss Installation
                    nezamkhan

                    Peter,

                     

                    Could you please provide me with a correct download link and instruction. I just removed all of my JBoss installs and I am going to start from scratch following your guidlines. Thanks!

                    • 7. Re: JBoss Installation
                      peterj

                      That is a good idea, the directory structure you mentioned is nothing that I am familiar with, and doesn't even match JBoss Native. The download for JBoss AS is easy to find: at the top of this page hover over the Project tab, in the menu that drops down hover over Servers, and then click on Application Server. That gets you to the JBoss AS home page. Click on the Downloads link. Then click on the Download link next to the 5.1.0 entry. (That download link indicates that it has been downloaded over 390,000 times.) Then click on the jboss-5.1.0.GA.zip file (if you are using JVM 5) or jboss-5.1.0.GA-jdk6.zip (if you are running JVM 6). [Yes, I could have just given the URL, but learning how to nagivate the menus on this site is important.]

                       

                      Since you are new to this, grab the free first chapter from JBoss in Action (http://www.manning.com/jamae) - it will give you some background on what the directory structure lookes likes and how to run the app server using the run script.

                      • 8. Re: JBoss Installation
                        nezamkhan

                        Peter,

                        Thanks!

                        Here is what I get now:

                        C:\jboss-5.1.0.GA-jdk6\jboss-5.1.0.GA>cd bin

                         

                        C:\jboss-5.1.0.GA-jdk6\jboss-5.1.0.GA\bin>service.bat install
                        Service JBoss Application Server 5.1 installed

                         

                        C:\jboss-5.1.0.GA-jdk6\jboss-5.1.0.GA\bin>

                         

                        Does this mean, I am done with the installation? Do I need to configure or that's it?

                        • 9. Re: JBoss Installation
                          peterj

                          That is it. You should have a JBAS50SVC service that you can start and stop. Once started (monitor the log file for the "started in xxx seconds" messages, or use Task Manager to monitor the java.exep rocess and wait until it stops using all of the processor), you should be able to access the home page.

                           

                          The default configuration is acceptable for casual, personal use. But for production use there are lots of changes you will want to make.

                           

                          Exactly what are your plans for JBoss AS? How do you plan to use it?

                          • 10. Re: JBoss Installation
                            nezamkhan

                            Peter,

                            Thanks a whole bunch for all your help. How do I access the home page? and do I need to edit/add my env variables? or am I fine?

                            Thanks

                            • 11. Re: JBoss Installation
                              peterj

                              Well, I thought you would have gotten the free chapter for JBoss in Action and thus would know how to access the home page: open a browser and enter the URL http://localhost:8080

                               

                              You do not have to set any env vars. The only one that is required is JAVA_HOME.

                              • 12. Re: JBoss Installation
                                nezamkhan

                                Peter,

                                sorry I should have mentioned it. I did try to open the  local host by opening a browswer but no luck. I also set my user  variables to:

                                JAVA_HOME

                                C:\jboss-5.1.0.GA-jdk6

                                 

                                Since I have installed the JBoss under C:\

                                I am not sure what else I need to do to start Jboss.

                                • 13. Re: JBoss Installation
                                  peterj

                                  Have you every tried starting JBoss AS manually? I suggest that you do that first before trying to start it as a service.

                                   

                                  That is the incorrect setting for JAVA_HOME. You need to set it to where you installed the Java SDK. If you don't know how, look at section 1.2.1 of JBoss in Action. In fact I suggest very strongly that you get that first chapter (it's free) and read through it. It will get you up and running.

                                  • 14. Re: JBoss Installation
                                    nezamkhan

                                    Thank you. I fixed the JAVA_HOME and it's now point to C:\jdk-6u22-windows-i586.exe. This is the JDK I had installed before. But still not able to open the localhost page.

                                    1 2 Previous Next