6 Replies Latest reply on Apr 2, 2008 11:57 AM by jwenting

    Running JbossAS

    gregory.carlin

      I'm a newbie in Jboss, and I have problems to run it :

      I've download Jboss-4.2.2.GA.zip and follow the online installation guide. The problem is nothing appears on http://localhost:8080...

      JDK 1.6 is installed. JAVA_HOME and JBOSS_HOME are defined. Java and Jboss are both in /usr. I'm working under Red Hat Linux Entreprise 4.5.

      I have some remarks : is that normal that i have to put ANT_HOME if ant isn't on my computer... ? It seems that just Java DK is needed.

      Hope u'll be able to help me :)


      I let you the log :


      [root@pdocu1 bin]# ./run.sh
      =========================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: /usr/jboss

      JAVA: /usr/java/bin/java

      JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true

      CLASSPATH: /usr/jboss/bin/run.jar:/usr/java/lib/tools.jar

      =========================================================================

      17:39:01,099 INFO [Server] Starting JBoss (MX MicroKernel)...
      17:39:01,100 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
      17:39:01,101 INFO [Server] Home Dir: /usr/jboss
      17:39:01,101 INFO [Server] Home URL: file:/usr/jboss/
      17:39:01,102 INFO [Server] Patch URL: null
      17:39:01,102 INFO [Server] Server Name: default
      17:39:01,102 INFO [Server] Server Home Dir: /usr/jboss/server/default
      17:39:01,102 INFO [Server] Server Home URL: file:/usr/jboss/server/default/
      17:39:01,102 INFO [Server] Server Log Dir: /usr/jboss/server/default/log
      17:39:01,102 INFO [Server] Server Temp Dir: /usr/jboss/server/default/tmp
      17:39:01,103 INFO [Server] Root Deployment Filename: jboss-service.xml
      17:39:01,327 INFO [ServerInfo] Java version: 1.6.0_05,Sun Microsystems Inc.
      17:39:01,328 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 10.0-b19,Sun Microsystems Inc.
      17:39:01,328 INFO [ServerInfo] OS-System: Linux 2.6.9-55.ELsmp,i386
      17:39:01,599 INFO [Server] Core system initialized
      17:39:02,910 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
      17:39:02,911 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
      17:39:03,166 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
      17:39:03,166 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
      17:39:03,267 INFO [TransactionManagerService] Starting recovery manager
      17:39:03,321 INFO [TransactionManagerService] Recovery manager started
      17:39:03,321 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
      17:39:04,711 INFO [EJB3Deployer] Starting java:comp multiplexer
      17:39:04,872 INFO [STDOUT] no object for null
      17:39:04,874 INFO [STDOUT] no object for null
      17:39:04,892 INFO [STDOUT] no object for null
      17:39:04,904 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
      17:39:04,910 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
      17:39:05,960 INFO [NativeServerConfig] JBoss Web Services - Native
      17:39:05,961 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=200710210837)
      17:39:06,404 INFO [Embedded] Catalina naming disabled
      17:39:06,492 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jre/lib/i386/server:/usr/java/jre/lib/i386:/usr/java/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
      17:39:06,525 INFO [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto http-127.0.0.1-8080
      17:39:06,525 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
      17:39:06,525 INFO [Catalina] Initialization processed in 121 ms
      17:39:06,525 INFO [StandardService] Arrancando servicio jboss.web
      17:39:06,526 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
      17:39:06,551 INFO [Catalina] Server startup in 25 ms
      17:39:06,618 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
      17:39:06,952 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      17:39:07,034 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
      17:39:07,103 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      17:39:07,482 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
      17:39:07,730 INFO [MailService] Mail Service bound to java:/Mail
      17:39:07,806 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
      17:39:07,848 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
      17:39:07,875 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
      17:39:07,889 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
      17:39:07,967 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
      17:39:07,992 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
      17:39:08,015 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
      17:39:08,020 INFO [QuartzResourceAdapter] start quartz!!!
      17:39:08,054 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
      17:39:08,067 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
      17:39:08,069 INFO [RAMJobStore] RAMJobStore initialized.
      17:39:08,070 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'17:39:08,070 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
      17:39:08,070 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
      17:39:08,369 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      17:39:08,539 INFO [A] Bound to JNDI name: queue/A
      17:39:08,540 INFO [B] Bound to JNDI name: queue/B
      17:39:08,541 INFO [C] Bound to JNDI name: queue/C
      17:39:08,549 INFO [D] Bound to JNDI name: queue/D
      17:39:08,550 INFO [ex] Bound to JNDI name: queue/ex
      17:39:08,561 INFO [testTopic] Bound to JNDI name: topic/testTopic
      17:39:08,563 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      17:39:08,565 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic17:39:08,566 INFO [testQueue] Bound to JNDI name: queue/testQueue
      17:39:08,587 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
      17:39:08,607 INFO [DLQ] Bound to JNDI name: queue/DLQ
      17:39:08,679 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      17:39:08,694 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      17:39:08,866 INFO [Http11Protocol] Arrancando Coyote HTTP/1.1 en puerto http-127.0.0.1-8080
      17:39:08,916 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
      17:39:08,924 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 7s:820ms

        • 1. Re: Running JbossAS
          peterj

          According to the output you posted, you should be able to see the home page using http://localhost:8080. Note this line of the output:

          17:39:08,866 INFO [Http11Protocol] Arrancando Coyote HTTP/1.1 en puerto http-127.0.0.1-8080

          Are you sure you are using htpp://localhost:8080 and not http://myhostname:8080?

          What is this about ANT_HOME? For the JBossAS binary you downloaded, the entire set of installation steps are:

          1) Unzip the binary zip file to a directory of your choice
          2) Make sure JAVA_HOME is set to a JDK

          Also, one warning: JBossAS 4.2.2 is not qualified to run with JDK 6, only JDK 5. You will run into some glitches, especially with web services. See http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithJDK6

          • 2. Re: Running JbossAS

            just a question: are you trying to access localhost:8080 from the same computer you have JBoss running?
            If not it will of course never work.

            • 3. Re: Running JbossAS
              gregory.carlin

              It seems that Java wasn't conrrectly configure, but the problem still remain.

              I've accessed to http://localhost:8080/ from the coñputer i've installed it.

              I wonder if it's not a problem in Redhat configuration for Internet and ports (/etc/hosts or something else...). How can I check it.

              I've started from 0. SO that's a pure Reh Hat Linux Entreprise version with only JDK installed. Can something be missing ?

              Some lines in the log woory me :

              11:17:46,328 INFO [STDOUT] no object for null
              11:17:46,329 INFO [STDOUT] no object for null
              11:17:46,340 INFO [STDOUT] no object for null
              11:17:46,352 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
              11:17:46,357 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType


              Thx for your help.

              I let you my new log : =========================================================================

              JBoss Bootstrap Environment

              JBOSS_HOME: /home/jboss

              JAVA: /usr/java/jdk1.5.0_12/bin/java

              JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.clien t.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIP v4Stack=true

              CLASSPATH: /home/jboss/bin/run.jar:/usr/java/jdk1.5.0_12/lib/tools.jar

              =========================================================================

              11:17:42,591 INFO [Server] Starting JBoss (MX MicroKernel)...
              11:17:42,592 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag= JBoss_4_2_2_GA date=200710221139)
              11:17:42,593 INFO [Server] Home Dir: /home/jboss
              11:17:42,601 INFO [Server] Home URL: file:/home/jboss/
              11:17:42,602 INFO [Server] Patch URL: null
              11:17:42,602 INFO [Server] Server Name: default
              11:17:42,602 INFO [Server] Server Home Dir: /home/jboss/server/default
              11:17:42,602 INFO [Server] Server Home URL: file:/home/jboss/server/default/
              11:17:42,603 INFO [Server] Server Log Dir: /home/jboss/server/default/log
              11:17:42,603 INFO [Server] Server Temp Dir: /home/jboss/server/default/tmp
              11:17:42,604 INFO [Server] Root Deployment Filename: jboss-service.xml
              11:17:42,856 INFO [ServerInfo] Java version: 1.5.0_12,Sun Microsystems Inc.
              11:17:42,856 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_12-b04 ,Sun Microsystems Inc.
              11:17:42,856 INFO [ServerInfo] OS-System: Linux 2.6.9-55.ELsmp,i386
              11:17:43,117 INFO [Server] Core system initialized
              11:17:44,288 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083 /
              11:17:44,289 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour ce:jboss-log4j.xml
              11:17:44,540 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
              11:17:44,540 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
              11:17:44,631 INFO [TransactionManagerService] Starting recovery manager
              11:17:44,683 INFO [TransactionManagerService] Recovery manager started
              11:17:44,683 INFO [TransactionManagerService] Binding TransactionManager JNDI R eference
              11:17:46,167 INFO [EJB3Deployer] Starting java:comp multiplexer
              11:17:46,328 INFO [STDOUT] no object for null
              11:17:46,329 INFO [STDOUT] no object for null
              11:17:46,340 INFO [STDOUT] no object for null
              11:17:46,352 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
              11:17:46,357 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
              11:17:47,798 INFO [NativeServerConfig] JBoss Web Services - Native
              11:17:47,798 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=20071021 0837)
              11:17:48,389 INFO [Embedded] Catalina naming disabled
              11:17:48,535 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java .library.path: /usr/java/jdk1.5.0_12/jre/lib/i386/server:/usr/java/jdk1.5.0_12/j re/lib/i386:/usr/java/jdk1.5.0_12/jre/../lib/i386
              11:17:48,612 INFO [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto http -127.0.0.1-8080
              11:17:48,612 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-80 09
              11:17:48,612 INFO [Catalina] Initialization processed in 223 ms
              11:17:48,612 INFO [StandardService] Arrancando servicio jboss.web
              11:17:48,614 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
              11:17:48,646 INFO [Catalina] Server startup in 33 ms
              11:17:48,715 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-w eb.deployer/ROOT.war/
              11:17:49,067 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/ http-invoker.sar/invoker.war/
              11:17:49,175 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/ jbossws.sar/jbossws-context.war/
              11:17:49,232 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../ deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
              11:17:49,675 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../dep loy/management/console-mgr.sar/web-console.war/
              11:17:49,935 INFO [MailService] Mail Service bound to java:/Mail
              11:17:50,018 INFO [RARDeployment] Required license terms exist, view META-INF/r a.xml in .../deploy/jboss-ha-local-jdbc.rar
              11:17:50,038 INFO [RARDeployment] Required license terms exist, view META-INF/r a.xml in .../deploy/jboss-ha-xa-jdbc.rar
              11:17:50,075 INFO [RARDeployment] Required license terms exist, view META-INF/r a.xml in .../deploy/jboss-local-jdbc.rar
              11:17:50,091 INFO [RARDeployment] Required license terms exist, view META-INF/r a.xml in .../deploy/jboss-xa-jdbc.rar
              11:17:50,121 INFO [RARDeployment] Required license terms exist, view META-INF/r a.xml in .../deploy/jms/jms-ra.rar
              11:17:50,136 INFO [RARDeployment] Required license terms exist, view META-INF/r a.xml in .../deploy/mail-ra.rar
              11:17:50,158 INFO [RARDeployment] Required license terms exist, view META-INF/r a.xml in .../deploy/quartz-ra.rar
              11:17:50,164 INFO [QuartzResourceAdapter] start quartz!!!
              11:17:50,207 INFO [SimpleThreadPool] Job execution threads will use class loade r of thread: main
              11:17:50,224 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
              11:17:50,227 INFO [RAMJobStore] RAMJobStore initialized.
              11:17:50,227 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzSchedule r' initialized from default resource file in Quartz package: 'quartz.properties'
              11:17:50,227 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
              11:17:50,228 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUS TERED started.
              11:17:50,568 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb oss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
              11:17:50,734 INFO [A] Bound to JNDI name: queue/A
              11:17:50,735 INFO [B] Bound to JNDI name: queue/B
              11:17:50,742 INFO [C] Bound to JNDI name: queue/C
              11:17:50,743 INFO [D] Bound to JNDI name: queue/D
              11:17:50,746 INFO [ex] Bound to JNDI name: queue/ex
              11:17:50,763 INFO [testTopic] Bound to JNDI name: topic/testTopic
              11:17:50,765 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
              11:17:50,767 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
              11:17:50,770 INFO [testQueue] Bound to JNDI name: queue/testQueue
              11:17:50,802 INFO [UILServerILService] JBossMQ UIL service available at : /127. 0.0.1:8093
              11:17:50,832 INFO [DLQ] Bound to JNDI name: queue/DLQ
              11:17:50,938 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
              11:17:50,961 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep loy/jmx-console.war/
              11:17:51,107 INFO [Http11Protocol] Arrancando Coyote HTTP/1.1 en puerto http-12 7.0.0.1-8080
              11:17:51,121 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
              11:17:51,129 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBos s_4_2_2_GA date=200710221139)] Started in 8s:523ms

              • 4. Re: Running JbossAS
                gregory.carlin

                Is there other variables I should check expect JBOSS_HOME ?

                • 5. Re: Running JbossAS
                  peterj

                  This output all looks good to me. The "no object for null" messages you can ignore, I get those too.

                  Are you saying that you can access the app server from the local machine using http://localhost:8080, but not from a remote machine? If so, did you read the release notes (readme.html)? First bullet under JBossAS 4.2.0.GA in the Configuration Issues section.

                  • 6. Re: Running JbossAS

                    yes, check your hosts file. But that should probably not prevent you from accessing localhost (unless of course that was mapped to something weird, like a disconnected network card).