7 Replies Latest reply on Apr 3, 2008 11:24 AM by Peter Johnson

    Starting problem

    jk 7 Newbie

      Hi all,

      I'm a spanish newbie so, sorry for my english and inexperience.

      I've installed Jboss 4.2.2.GA (jboss-4.2.2.GA.zip)

      I've installed jdk1.6.0_05.

      All of that is under CentOS 5.

      When I Start JBoss, server runs ok (i think) but i cant reach it from other computer.

      I see Jboss in localhost (http://localhost:8080)

      I start Jboss with ./run.sh -b 0.0.0.0

      This is the start info.

      [root@pinf60 bin]# ./run.sh -b 0.0.0.0
      =========================================================================
      
       JBoss Bootstrap Environment
      
       JBOSS_HOME: /usr/local/jboss-4.2.2.GA
      
       JAVA: /usr/local/jdk1.6.0_05/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/local/jboss-4.2.2.GA/bin/run.jar:/usr/local/jdk1.6.0_05/lib/tools.jar
      
      =========================================================================
      
      13:59:24,879 INFO [Server] Starting JBoss (MX MicroKernel)...
      13:59:24,880 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
      13:59:24,881 INFO [Server] Home Dir: /usr/local/jboss-4.2.2.GA
      13:59:24,881 INFO [Server] Home URL: file:/usr/local/jboss-4.2.2.GA/
      13:59:24,882 INFO [Server] Patch URL: null
      13:59:24,882 INFO [Server] Server Name: default
      13:59:24,882 INFO [Server] Server Home Dir: /usr/local/jboss-4.2.2.GA/server/default
      13:59:24,882 INFO [Server] Server Home URL: file:/usr/local/jboss-4.2.2.GA/server/default/
      13:59:24,882 INFO [Server] Server Log Dir: /usr/local/jboss-4.2.2.GA/server/default/log
      13:59:24,882 INFO [Server] Server Temp Dir: /usr/local/jboss-4.2.2.GA/server/default/tmp
      13:59:24,883 INFO [Server] Root Deployment Filename: jboss-service.xml
      13:59:25,137 INFO [ServerInfo] Java version: 1.6.0_05,Sun Microsystems Inc.
      13:59:25,137 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 10.0-b19,Sun Microsystems Inc.
      13:59:25,137 INFO [ServerInfo] OS-System: Linux 2.6.18-53.1.6.el5,i386
      13:59:25,479 INFO [Server] Core system initialized
      13:59:27,590 INFO [WebService] Using RMI server codebase: http://pinf60.intranet.humv.es:8083/
      13:59:27,591 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
      13:59:27,989 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
      13:59:27,989 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
      13:59:28,260 INFO [TransactionManagerService] Starting recovery manager
      13:59:28,329 INFO [TransactionManagerService] Recovery manager started
      13:59:28,329 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
      13:59:30,819 INFO [EJB3Deployer] Starting java:comp multiplexer
      13:59:31,123 INFO [STDOUT] no object for null
      13:59:31,125 INFO [STDOUT] no object for null
      13:59:31,142 INFO [STDOUT] no object for null
      13:59:31,159 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
      13:59:31,167 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
      13:59:32,962 INFO [NativeServerConfig] JBoss Web Services - Native
      13:59:32,962 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=200710210837)
      13:59:37,377 INFO [Embedded] Catalina naming disabled
      13:59:37,509 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk1.6.0_05/jre/lib/i386/server:/usr/local/jdk1.6.0_05/jre/lib/i386:/usr/local/jdk1.6.0_05/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
      13:59:37,566 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      13:59:37,567 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-0.0.0.0-8009
      13:59:37,567 INFO [Catalina] Initialization processed in 189 ms
      13:59:37,567 INFO [StandardService] Starting service jboss.web
      13:59:37,569 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
      13:59:37,614 INFO [Catalina] Server startup in 46 ms
      13:59:37,729 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
      13:59:38,422 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      13:59:38,550 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
      13:59:38,637 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      13:59:39,507 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
      13:59:39,980 INFO [MailService] Mail Service bound to java:/Mail
      13:59:40,089 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
      13:59:40,116 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
      13:59:40,136 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
      13:59:40,159 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
      13:59:40,386 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
      13:59:40,408 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
      13:59:40,440 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
      13:59:40,447 INFO [QuartzResourceAdapter] start quartz!!!
      13:59:40,511 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
      13:59:40,534 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
      13:59:40,536 INFO [RAMJobStore] RAMJobStore initialized.
      13:59:40,537 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
      13:59:40,537 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
      13:59:40,537 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
      13:59:41,681 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      13:59:41,908 INFO [A] Bound to JNDI name: queue/A
      13:59:41,910 INFO [B] Bound to JNDI name: queue/B
      13:59:41,911 INFO [C] Bound to JNDI name: queue/C
      13:59:41,912 INFO [D] Bound to JNDI name: queue/D
      13:59:41,914 INFO [ex] Bound to JNDI name: queue/ex
      13:59:41,931 INFO [testTopic] Bound to JNDI name: topic/testTopic
      13:59:41,933 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      13:59:41,934 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
      13:59:41,941 INFO [testQueue] Bound to JNDI name: queue/testQueue
      13:59:41,975 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
      13:59:42,016 INFO [DLQ] Bound to JNDI name: queue/DLQ
      13:59:42,115 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      13:59:42,142 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      13:59:42,417 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      13:59:42,436 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
      13:59:42,451 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 17s:567ms
      


      Could anybody tell me what is wrong?

      Thanks a lot

        • 1. Re: Starting problem
          Peter Johnson Master

          Have you opened port 8080 in your firewall?

          I have the following ports open: 8080, 1099, 1098, 4444, 4445

          • 2. Re: Starting problem
            jk 7 Newbie

            I think I was opened them.

            Whatever, I have opened it again.

            The problem is the same.

            I have been looking for manuals and guides, i follow them but the problem goes on.

            :(

            • 3. Re: Starting problem
              Jeroen Wenting Newbie

              check your hosts file on the server.
              It may well contain a faulty line linking localhost to your actual LAN ip address rather than 127.0.0.1

              And make sure you call the server from other systems with its real address, not with "http://localhost:8080" (you'd be astounded when you see how often that's the reason people can't find their own servers from elsewhere in their networks).

              • 4. Re: Starting problem
                Peter Johnson Master

                Based on this line of output:

                13:59:42,417 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080

                JBossAS successfully opened port 8080 and will accept requests from anywhere. If it doesn't then there is some issue beyond the control of JBossAS.

                I don't use CentOS, I use Fedora and Ubuntu. On both I would check /etc/sysconfig/iptables to make sure I opened the ports and on Fedora I would also check the SELinux settings because SELinux is sometimes overeager in keeping my computer secure.

                Maybe some out there using CentOS can provide some input?

                • 5. Re: Starting problem
                  jk 7 Newbie

                   

                  -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT


                  I have add this line in /etc/sysconfig/iptables


                  File /etc/hosts contains:
                  # Do not remove the following line, or various programs
                  # that require network functionality will fail.
                  127.0.0.1 localhost.localdomain localhost
                  ::1 localhost6.localdomain6 localhost6
                  


                  I dont know what is ::1. Its in file when i edited it the first time... :S

                  The SELinux is disabled and firewall is enabled

                  I have been following this guide http://www.linuxdiyf.com/bbs/thread-79013-1-4.html



                  • 6. Re: Starting problem
                    jk 7 Newbie

                    Miracle!!!!!

                    I have startd Jboss Server...


                    The problem was that I was triying to start server with root profile and the Jboss owner is jboss profile.

                    If i start with jboss profile i can see jboss server.

                    thanks a lot for your answers and time :)



                    • 7. Re: Starting problem
                      Peter Johnson Master

                      Just FYI, the ::1 is the IPv6 equivalent of 127.0.0.1 in IPv4.

                      Glad your are up and running.