10 Replies Latest reply on Feb 18, 2009 12:17 PM by Peter Johnson

    JBOSS installation - query

    Arvind PR Newbie

      I am using RHEL 5.2 on my Intel box.
      I am new to Jboss application server and while going through the installation documentation i got caught at one point
      below is what i find in the docs


      Download and install the appropriate -compat RPM from JPackage here2. Please ensure you
      choose a matching version of the -compat package to the JDK you installed

      ftp://jpackage.hmdc.harvard.edu/JPackage/1.7/generic/RPMS.non-free/



      nowhere can i find a compat file for jdk version 1.6.0.11. JDK installed on my machine is 1.6.0.11.

      i skipped this step and completed the installation and it went off fine. So how critical is the above step in the quote box?

      additionally
      /usr/sbin/alternatives --config javac
      AND
      /usr/sbin/alternatives --config java_sdk_1.5.0

      does not yield any results initially. i had to do a alternatives --config install . is that the right way to proceed.


      last but not the least. How can test my JBOSS installation if it is ready for a enterprise pounding? do we get any ready-made applications to test and pound the application server

        • 1. Re: JBOSS installation - query
          Peter Johnson Master

          I think that the installation document makes installation much harder than it needs to be, at least, that was my opinion the last time I looked at it. See this for some simpler instructions, including checking to see if it is working:

          http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205258

          • 2. Re: JBOSS installation - query
            Peter Johnson Master

            One thing that post doesn't talk about is the JDK - you need to either install OpenJVM (I know it is available for Fedora and Ubuntu, you'll have to use yum to see if it is available for RHEL) or install a Sun JDK (this is what I usualyy do) by downloading it from Sun's web site.

            • 3. Re: JBOSS installation - query
              Arvind PR Newbie

              thank you for your reply.

              hmm... i have installed the sun jdk and installed with a jar file.

              so do you mean the -compat file is not needed for the installation. and things will work perfectly.

              lastly,

              is that any source from where i can get applications to test my installtion. whether the application server is working the way it should.

              • 4. Re: JBOSS installation - query
                Peter Johnson Master

                No, you do not need the -compat file.

                JBoss AS comes with several apps. Accessing the root app is mentioned in the topic I linked to. Another one you might try is http://localhost:8080/jmx-console.

                Also, the app server is running correctly is, when you enter ./run.sh, there are no errors in the console log and you see the "Started in xxx seconds" message.

                • 5. Re: JBOSS installation - query
                  Arvind PR Newbie


                  Thanks a lot Peter.

                  i dont get a Started in xx seconds when i run the run.sh
                  this is what i get

                  [jboss@localhost bin]$ ./run.sh
                  
                  =========================================================================
                  
                  
                  JBoss Bootstrap Environment
                  
                   JBOSS_HOME: /home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as
                  
                   JAVA: /usr/java/jdk1.6.0_11/bin/java
                  
                   JAVA_OPTS: -Dprogram.name=run.sh -server -Xms1203m -Xmx1203m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.net.preferIPv4Stack=true
                  
                   CLASSPATH: /home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as/bin/run.jar:/usr/java/jdk1.6.0_11/lib/tools.jar
                  
                  =========================================================================
                  
                  
                  08:42:23,129 INFO [Server] Starting JBoss (MX MicroKernel)...
                  08:42:23,137 INFO [Server] Release ID: JBoss [EAP] 4.3.0.GA_CP03 (build: SVNTag=JBPAPP_4_3_0_GA_CP03 date=200810241616)
                  08:42:23,144 INFO [Server] Home Dir: /home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as
                  08:42:23,294 INFO [Server] Home URL: file:/home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as/
                  08:42:23,397 INFO [Server] Patch URL: null
                  08:42:23,399 INFO [Server] Server Name: production
                  08:42:23,400 INFO [Server] Server Home Dir: /home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as/server/production
                  08:42:23,402 INFO [Server] Server Home URL: file:/home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as/server/production/
                  08:42:23,403 INFO [Server] Server Log Dir: /home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as/server/production/log
                  08:42:23,405 INFO [Server] Server Temp Dir: /home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as/server/production/tmp
                  08:42:23,407 INFO [Server] Root Deployment Filename: jboss-service.xml
                  08:42:25,714 INFO [ServerInfo] Java version: 1.6.0_11,Sun Microsystems Inc.
                  08:42:25,716 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 11.0-b16,Sun Microsystems Inc.
                  08:42:25,717 INFO [ServerInfo] OS-System: Linux 2.6.18-53.el5,i386
                  08:42:27,822 INFO [Server] Core system initialized
                  08:42:39,096 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
                  08:42:39,104 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
                  
                  
                  



                  • 6. Re: JBOSS installation - query
                    Arvind PR Newbie

                    when i write http://localhost:8080 on my browser i do get the JBOSS welcome page.
                    are the logs which i posted OK?
                    is there anything else i need to look at?

                    • 7. Re: JBOSS installation - query
                      Arvind PR Newbie

                      when i started JBOSS with the icon on the desktop which points to $JBOSS_HOME/bin/run.sh -c all

                      i do get a message saying
                      started in 50s : 475ms

                      earlier i had run just ./run.sh without the parameter -c all

                      wonder what the difference is

                      • 8. Re: JBOSS installation - query
                        Peter Johnson Master

                        You never said you were running EAP 4.3. For that version, the default config is named 'production'. That config does not do any console logging after bootstrapping (the part of the console log you saw was from the bootstrap). The 'all' and 'default' configs retain the console log after bootstrap, hence the reason you saw more log output when running 'all'.

                        Based on what you say, you are all ready to go.

                        • 9. Re: JBOSS installation - query
                          Arvind PR Newbie

                          ok sir .... sorry abt that. i m new to jboss.
                          i jus plucked it and stated studying the documentation and started installing it.
                          how different is EAP from application server.

                          i thought both are same. i think one is Red Hat other is open source one.

                          • 10. Re: JBOSS installation - query
                            Peter Johnson Master

                            EAP 4.3 is basically AS 4.2.1 + JBoss Messaging + many fixes. The EAP 4.3 documentation provides more details on the differences.

                            You need a subscription to get EAP, while AS is the community version and thus freely downloadable. Both EAP and AS are open source.