7 Replies Latest reply on Oct 22, 2010 1:53 PM by peterj

    JBoss 4.0.5 GA Bind Issues

    mward

      Hello

       

      I have installed JBoss 4.0.5 GA on a Win 2003 64 bit server

       

      I have made a copy of the Default server instance and named it FileNet, when i start it from the command line using

       

      run.bat -c FileNet

       

      is is starting fine and i have teh url working as expected.

       

      However, when i attempt to bind it to the Hostname or IP Address and run either of the following commands

       

      run.bat -c FileNet -b <SERVER-HOSTNAME>

       

      run.bat -c FileNet -b <IP-ADDRESS>

       

      The JBoss is starting but the JBoss URL is not displaying the JBoss page

       

      Have i missed some steps in the configuration of the bind process ?

       

      Rgs Michael.

        • 1. Re: JBoss 4.0.5 GA Bind Issues
          peterj

          What do you mean by "JBoss URL"? I hope you mean: http://<server-hostname>:8080. Note that when you bind to a specific address (other than localhost) that http://localhost:8080 will not work.

           

          Also, look at the console log, a few lines before the "started in xxx seconds" messages you will see something like this that tells you the exact URL that the server bound to:

           

          2010-10-20 08:29:36,251 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080

          • 2. Re: JBoss 4.0.5 GA Bind Issues
            peterj

            Michael's reply to me follows:

             

            Hello Peter

             

            I  hope you dont mind me contacting you in this manner, some things is up  with the reply on my IE - as i cannot reply to your post...

             

            I wanted to provide you with more information

             

            Yes, when i write JBoss URL - I mean the  http://localhost:8080 wiil not work
            I have just ran two tests -
            Test 1 -
            run.bat -c FileNet -b 0.0.0.0
            in the boot.log is the following error - this command did not create a server.log
            17:57:04,261 DEBUG [ServiceController] Creating service jboss:service=WebService
            17:57:04,261 DEBUG [WebService] Creating jboss:service=WebService
            17:57:04,261 INFO  [WebService] Using RMI server codebase: http://EULUP8AE01-D:8083/
            17:57:04,261 DEBUG [WebService] Created jboss:service=WebService
            17:57:04,261  DEBUG [LocalJBossServerDomain] handleNotification:  javax.management.Notification[source=jboss.system:service=ServiceController][type=org.jboss.system.ServiceMBean.create][message=]
            17:57:04,261  DEBUG [DefaultManagedObjectFactoryMap] Failed to find factory for  event:  javax.management.Notification[source=jboss.system:service=ServiceController][type=org.jboss.system.ServiceMBean.create][message=]
            17:57:04,261 DEBUG [ServiceController] Creating dependent components for: jboss:service=WebService dependents are: []
            17:57:04,261 DEBUG [ServiceController] Creating service jboss:service=Naming
            17:57:04,261 DEBUG [NamingService] Creating jboss:service=Naming
            17:57:04,261 DEBUG [NamingService] Created jboss:service=Naming
            17:57:04,261  DEBUG [LocalJBossServerDomain] handleNotification:  javax.management.Notification[source=jboss.system:service=ServiceController][type=org.jboss.system.ServiceMBean.create][message=]
            17:57:04,277 DEBUG [JNDIResource] Service name: jboss:service=Naming
            17:57:04,277 DEBUG [JNDIResource] postRegister(), parent: jboss.management.local:j2eeType=J2EEServer,name=Local
            17:57:04,277 DEBUG [JNDIResource] Created JSR-77 JNDIResource: LocalJNDI
            17:57:04,277 DEBUG [ServiceController] Creating dependent components for: jboss:service=Naming dependents are: []
            17:57:04,277 DEBUG [ServiceController] Creating service jboss.system:type=Log4jService,service=Logging
            17:57:04,277 DEBUG [Log4jService] Creating jboss.system:type=Log4jService,service=Logging
            17:57:04,277 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
            Test 2 -
            run.bat -c FileNet -b EULUP8AE01-D

             

            and in the boot.log there is the first error

             

            18:08:36,050 ERROR [WebServer] Invalid host address specified: EULUP8AE01-1
            java.net.UnknownHostException: EULUP8AE01-1
            at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
            at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849)
            at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1200)

             

            Further down is the following...

             

            18:08:36,065 DEBUG [ServiceConfigurator] BindAddress set to EULUP8AE01-1 in jboss:service=WebService
            18:08:36,065 ERROR [WebServer] Invalid host address specified: EULUP8AE01-1
            java.net.UnknownHostException: EULUP8AE01-1
            at java.net.InetAddress.getAllByName0(InetAddress.java:1157)
            at java.net.InetAddress.getAllByName(InetAddress.java:1083)
            at java.net.InetAddress.getAllByName(InetAddress.java:1019)

             

            Further down is the following.......

            18:08:36,206 INFO  [ServiceConfigurator] Problem configuring service jboss:service=Naming
            org.jboss.deployment.DeploymentException:  Exception setting attribute BindAddress = EULUP8AE01-1 on mbean  jboss:service=Naming; - nested throwable:  (java.net.UnknownHostException: EULUP8AE01-1)
            at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:698)

             

            Further down is the following.......

            18:08:36,784 DEBUG [WebService] Initialization failed jboss:service=WebService
            java.lang.NullPointerException
            at org.jboss.web.WebServer.getBindHostname(WebServer.java:141)
            at org.jboss.web.WebService.getHost(WebService.java:140)

             

            In the server.log - the first entry is

            2010-10-20  18:08:36,972 ERROR [org.jboss.invocation.jrmp.server.JRMPInvoker]  Failed to setBindAddress=EULUP8AE01-1 on socket factory
            java.net.UnknownHostException: EULUP8AE01-1
            at java.net.InetAddress.getAllByName0(InetAddress.java:1157)
            at java.net.InetAddress.getAllByName(InetAddress.java:1083)

             

            followed by

            2010-10-20  18:08:49,549 ERROR  [org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactoryService]  Caught exception during startService()
            javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
            at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1317)
            at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1446)

             

            I guess that i have missed something is the setup ?

             

            Rgs Michael.

             

            Regarding:

             

            some things is up  with the reply on my IE - as i cannot reply to your pos

             

            IE often has trouble with this forum. Switch to a real brwoser such as Firefox or Chrome.

             

            Regarding test 1:

             

            Test 1 -
            run.bat -c FileNet -b 0.0.0.0
            in the boot.log is the following error - this command did not create a server.log

             

             

            I'm sorry, but I don't see any error in that output, only DEBUG and INFO entries. As to the server.log not being created, that all depends on the settings in server/FileNet/conf/log4j.xml

             

            Regarding test 2:

             

            run.bat -c FileNet -b EULUP8AE01-D
            . . .

            18:08:36,050 ERROR [WebServer] Invalid host address specified: EULUP8AE01-1
            java.net.UnknownHostException: EULUP8AE01-1

             

            This means that your network configuration is incorrect. The hostname EULUP8AE01-D must map to an IP address on the host machine, either via DNS or via the etc/hosts file. Apparently, EULUP8AE01-D maps to an IP address which maps to EULUP8AE01-1 which doesn't map to any IP address. You have a mess here which needs to be straightened out first. I am more used to fixing this kind of mess in Linux (where it is usually limited to a misconfigured /etc/hosts file) than in Windows, but tools such as ping, ipconfig and nslookup should help.

            • 3. Re: JBoss 4.0.5 GA Bind Issues
              jaikiran

              Peter Johnson wrote:

               

              Michael's reply to me follows:

               


              Regarding:

               

              some things is up  with the reply on my IE - as i cannot reply to your pos

               

              IE often has trouble with this forum. Switch to a real brwoser such as Firefox or Chrome.

               

              And if Firefox and Chrome too don't like the forum editor then see if this thread has a solution http://community.jboss.org/thread/157743

              • 4. Re: JBoss 4.0.5 GA Bind Issues
                peterj

                Michael's reply to me:

                 

                Hello Peter


                 


                I have now downloaded the FireFox and still the Reply Button is not working, latest is

                I have updated the Hosts file in the AE Server with the IP-Address of the AE server

                and re-run the Test


                run.bat -c FileNet -bind EULUP8AE01-D

                 

                Now in the Boot.log i see the following error


                ....


                08:57:17,848 ERROR [WebServer] Invalid host address specified:  ind
                java.net.UnknownHostException: ind
                at  java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
                at  java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849)


                ...


                Further down, i see


                08:57:17,863 DEBUG [ServiceConfigurator]  BindAddress set to ind in jboss:service=WebService
                08:57:17,863 ERROR  [WebServer] Invalid host address specified:  ind
                java.net.UnknownHostException: ind
                at  java.net.InetAddress.getAllByName0(InetAddress.java:1157)
                at  java.net.InetAddress.getAllByName(InetAddress.java:1083)

                ...


                Further down, i see


                08:57:18,566 DEBUG [WebService] Creating  jboss:service=WebService
                08:57:18,566 ERROR [WebServer] Invalid host address  specified: ind
                java.net.UnknownHostException: ind
                at  java.net.InetAddress.getAllByName0(InetAddress.java:1157)
                at  java.net.InetAddress.getAllByName(InetAddress.java:1083)
                at  java.net.InetAddress.getAllByName(InetAddress.java:1019)


                Further down, i see

                08:57:18,598 DEBUG [WebService] Initialization failed  jboss:service=WebService
                java.lang.NullPointerException
                at  org.jboss.web.WebServer.getBindHostname(WebServer.java:141)
                at  org.jboss.web.WebService.getHost(WebService.java:140)
                at  org.jboss.web.WebService.createService(WebService.java:311)


                And in the server.log, i see

                2010-10-21 08:57:18,941 ERROR  [org.jboss.invocation.jrmp.server.JRMPInvoker] Failed to setBindAddress=ind on  socket factory
                java.net.UnknownHostException: ind
                at  java.net.InetAddress.getAllByName0(InetAddress.java:1157)



                2010-10-21  08:57:31,926 ERROR   [org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactoryService]  Caught  exception during startService()
                javax.naming.CommunicationException: Receive  timed out [Root exception is java.net.SocketTimeoutException: Receive timed  out]
                at  org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1317)



                2010-10-21  08:57:35,410 ERROR  [org.jboss.deployment.MainDeployer] Could not start  deployment: file:/D:/Program   Files/jboss-4.0.5.GA/server/FileNet/deploy/http-invoker.sar/invoker.war/
                org.jboss.deployment.DeploymentException:   Error during deploy; - nested throwable:  (javax.naming.NameNotFoundException:  comp not bound)
                at  org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:380)



                Caused by: javax.naming.NameNotFoundException: comp not  bound
                at  org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
                at  org.jnp.server.NamingServer.getBinding(NamingServer.java:537)


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

                In the Hosts file i did the entry

                EULUP8AE01-D   <IP-Address>


                Should i do something more ?


                Rgs Michael.

                 

                Regarding:

                 

                I have now downloaded the FireFox and still the Reply Button is not working,

                Are you signed into the forum? Is JavaScript enabled?

                 

                I was scratching my head when I saw this error:

                 

                08:57:17,848 ERROR [WebServer] Invalid host address specified:  ind

                 

                This means that somewhere the host name of 'ind' was used, which usually means a network config error. But then I looked more closely at the command you entered:

                 

                run.bat -c FileNet -bind EULUP8AE01-D

                 

                Apparently, it took the 'ind' after '-b' as the hostname.

                 

                As for the other errors, I never bother with additonal errors until the first one goes away - way too often the extra errors are a side-effect of the first error.

                • 5. Re: JBoss 4.0.5 GA Bind Issues
                  peterj

                  Michael's reply to me:

                   

                  Hi Peter


                   


                  Yes, your correct ... I have now corrected that command


                   


                  I also did find that the IP Address were incorrectly configured... Which i have got corrected...


                   


                  However is not displaying the URL ->   http://eulup8ae01-d:8080/


                   


                  So now, i have Test the following


                  run.bat -c FileNet -b EULUP8AE01-D


                   


                  and  in the boot.log i see no errors, i find the following which looks to me  that it is binding in the correct manner - However i still do get the http://eulup8ae01-d:8080/ URL to resolve correctly


                   


                  15:52:55,579 DEBUG [ServiceConfigurator] DownloadResources set to false in jboss:service=WebService
                  15:52:55,579 DEBUG [ServiceConfigurator] Host set to EULUP8AE01-D in jboss:service=WebService
                  15:52:55,579 DEBUG [ServiceConfigurator] BindAddress set to EULUP8AE01-D in jboss:service=WebService
                  15:52:55,579 DEBUG [ServiceController] recording that jboss:service=WebService depends on jboss.system:service=ThreadPool
                  15:52:55,579 DEBUG [ServiceConfigurator] considering ThreadPool with object name jboss.system:service=ThreadPool
                  15:52:55,610 DEBUG [ServiceCreator] About to create xmbean object:   jboss:service=Naming with code: org.jboss.naming.NamingService with   descriptor: resource:xmdesc/NamingService-xmbean.xml
                  15:52:55,688 DEBUG [ModelMBeanInvoker] Ignoring obsolete legacy interceptor: org.jboss.mx.interceptor.PersistenceInterceptor2
                  15:52:55,688 DEBUG [ModelMBeanInvoker] Ignoring obsolete legacy interceptor: org.jboss.mx.interceptor.ModelMBeanInterceptor
                  15:52:55,688 DEBUG [ModelMBeanInvoker] Ignoring obsolete legacy  interceptor: org.jboss.mx.interceptor.ObjectReferenceInterceptor
                  15:52:55,688 DEBUG [ServiceCreator] Created bean: jboss:service=Naming
                  15:52:55,688 DEBUG [ServiceConfigurator] CallByValue set to false in jboss:service=Naming
                  15:52:55,688 DEBUG [ServiceConfigurator] Port set to 1099 in jboss:service=Naming
                  15:52:55,688 DEBUG [ServiceConfigurator] BindAddress set to EULUP8AE01-D in jboss:service=Naming
                  15:52:55,688 DEBUG [ServiceConfigurator] RmiPort set to 1098 in jboss:service=Naming
                  15:52:55,688 DEBUG [ServiceConfigurator] RmiBindAddress set to EULUP8AE01-D in jboss:service=Naming
                  15:52:55,688 DEBUG [ServiceController] recording that jboss:service=Naming depends on jboss.system:service=ThreadPool
                  15:52:55,688 DEBUG [ServiceConfigurator] considering LookupPool with object name jboss.system:service=ThreadPool
                  15:52:55,704 DEBUG [ServiceCreator] About to create xmbean object:   jboss:service=JNDIView with code: org.jboss.naming.JNDIView with   descriptor: resource:xmdesc/JNDIView-xmbean.xml
                  15:52:55,735 DEBUG [ServiceCreator] Created bean: jboss:service=JNDIView
                  15:52:55,735 DEBUG [ServiceConfigurator] HANamingService set to jboss:service=HAJNDI in jboss:service=JNDIView



                  15:52:56,063 DEBUG [ServiceController] Creating service jboss:service=WebService
                  15:52:56,063 DEBUG [WebService] Creating jboss:service=WebService
                  15:52:56,063 INFO  [WebService] Using RMI server codebase: http://EULUP8AE01-D:8083/
                  15:52:56,063 DEBUG [WebService] Created jboss:service=WebService
                  15:52:56,063 DEBUG [LocalJBossServerDomain] handleNotification:   javax.management.Notification[source=jboss.system:service=ServiceController][type=org.jboss.system.ServiceMBean.create][message=]
                  15:52:56,063 DEBUG [DefaultManagedObjectFactoryMap] Failed to find   factory for event:   javax.management.Notification[source=jboss.system:service=ServiceController][type=org.jboss.system.ServiceMBean.create][message=]
                  15:52:56,063 DEBUG [ServiceController] Creating dependent components for: jboss:service=WebService dependents are: []
                  15:52:56,063 DEBUG [ServiceController] Creating service jboss:service=Naming
                  15:52:56,063 DEBUG [NamingService] Creating jboss:service=Naming
                  15:52:56,063 DEBUG [NamingService] Created jboss:service=Naming
                  15:52:56,063 DEBUG [LocalJBossServerDomain] handleNotification:   javax.management.Notification[source=jboss.system:service=ServiceController][type=org.jboss.system.ServiceMBean.create][message=]
                  15:52:56,063 DEBUG [JNDIResource] Service name: jboss:service=Naming
                  15:52:56,079 DEBUG [JNDIResource] postRegister(), parent: jboss.management.local:j2eeType=J2EEServer,name=Local
                  15:52:56,079 DEBUG [JNDIResource] Created JSR-77 JNDIResource: LocalJNDI
                  15:52:56,079 DEBUG [ServiceController] Creating dependent components for: jboss:service=Naming dependents are: []
                  15:52:56,079 DEBUG [ServiceController] Creating service jboss.system:type=Log4jService,service=Logging
                  15:52:56,079 DEBUG [Log4jService] Creating jboss.system:type=Log4jService,service=Logging
                  15:52:56,079 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml


                  Also it is not creating a server.log


                  So i have got further but its now yet ok


                  Rgs Michael.

                  The last line in the console log indicates that logging is switching from bootstrap logging (controlled by a log4j.properties file in run.jar) to app server logging (controlled by server/FileNet/conf/log4j.xml). If there is no more console log output, and there is no server log, then check the log4j.xml file because apparently it is configured to not generate any logs.
                  Try using netstat or better yet tcpview from sysinternals to see what port the app server is bound to.
                  Oh, and it would be great if you found a system where you could actually reply to the forum posts yourself.
                  • 6. Re: JBoss 4.0.5 GA Bind Issues
                    mward

                    Hello Peter

                     

                    I am testing this from my private laptop back at the apartment..

                     

                    And this is clearly working fine here, so work much have some blocker in operation..

                     

                    Rgs Michael.

                    • 7. Re: JBoss 4.0.5 GA Bind Issues
                      peterj

                      Received from Michael:

                       

                      Hello Peter


                       


                      I  am really sorry for communicating in this manner for this post, I have  tried Chrome and Firefox but none are working correct - I think they  must have a something disabled here - i did enable the Java scripts and  unblock the Block Pop-Up but still fails to allow me to Reply.. I just  get a small "Reply to Peter" box at the bottom but i cannot write in it,  and when clicking on the Advanced Editor, nothing happens.


                       


                      Regardint the log4j file


                       


                      I swapped in the original the log4j with all the default settings and ran the command


                      run.bat -c FileNet -b EULUP8AE01-D


                       


                      Now its filling up the server.log with details, but the only error i could see is near the bottom of the log file


                       


                      2010-10-21  17:42:38,293 DEBUG  [org.jboss.mq.pm.jdbc2.PersistenceManager] Could  not create table with SQL:  CREATE CACHED TABLE JMS_MESSAGES ( MESSAGEID  INTEGER NOT NULL, DESTINATION  VARCHAR(255) NOT NULL, TXID INTEGER,  TXOP CHAR(1), MESSAGEBLOB OBJECT, PRIMARY  KEY (MESSAGEID, DESTINATION) )
                      java.sql.SQLException: Table already exists:  JMS_MESSAGES in statement [CREATE CACHED TABLE JMS_MESSAGES]
                      at  org.hsqldb.jdbc.Util.throwError(Unknown Source)
                      at  org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
                      at  org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedStatement.java:95)



                      2010-10-21  17:42:38,293 DEBUG  [org.jboss.mq.pm.jdbc2.PersistenceManager] Could  not create table with SQL:  CREATE CACHED TABLE JMS_TRANSACTIONS ( TXID  INTEGER, PRIMARY KEY (TXID)  )
                      java.sql.SQLException: Table already exists: JMS_TRANSACTIONS in statement  [CREATE CACHED TABLE JMS_TRANSACTIONS]
                      at  org.hsqldb.jdbc.Util.throwError(Unknown Source)
                      at  org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
                      at  org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedStatement.java:95)
                      at  org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:251)



                      At the end, It is indicating that it is starting OK




                      2010-10-21 17:42:39,043 DEBUG  [org.jboss.deployment.MainDeployer] End deployment start on package:  jmx-console.war
                      2010-10-21  17:42:39,043 DEBUG  [org.jboss.deployment.MainDeployer] Deployed  package: file:/D:/Program   Files/jboss-4.0.5.GA/server/FileNet/deploy/jmx-console.war/
                      2010-10-21   17:42:39,043 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner]  Watch URL  for: file:/D:/Program   Files/jboss-4.0.5.GA/server/FileNet/deploy/jmx-console.war/ ->   file:/D:/Program   Files/jboss-4.0.5.GA/server/FileNet/deploy/jmx-console.war/WEB-INF/web.xml
                      2010-10-21   17:42:39,043 DEBUG   [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread]  Notified  that enabled: true
                      2010-10-21 17:42:39,043 DEBUG   [org.jboss.deployment.scanner.URLDeploymentScanner] Started   jboss.deployment:type=DeploymentScanner,flavor=URL
                      2010-10-21  17:42:39,043  DEBUG [org.jboss.system.ServiceController] Starting  dependent components for:   jboss.deployment:type=DeploymentScanner,flavor=URL dependent  components:  []
                      2010-10-21 17:42:39,215 DEBUG [org.jboss.deployment.MainDeployer] End  deployment start on package: jboss-service.xml
                      2010-10-21  17:42:39,215 DEBUG  [org.jboss.deployment.MainDeployer] Deployed  package: file:/D:/Program   Files/jboss-4.0.5.GA/server/FileNet/conf/jboss-service.xml
                      2010-10-21   17:42:39,215 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] Saw   org.jboss.system.server.started notification, starting connectors
                      2010-10-21   17:42:39,230 INFO  [org.apache.coyote.http11.Http11BaseProtocol]  Starting Coyote  HTTP/1.1 on http-EULUP8AE01-D%2F10.74.93.15-8080
                      2010-10-21 17:42:39,402  INFO  [org.apache.jk.common.ChannelSocket] JK: ajp13 listening on  EULUP8AE01-D/10.74.93.15:8009
                      2010-10-21 17:42:39,402 INFO   [org.apache.jk.server.JkMain] Jk running ID=0 time=0/78   config=null
                      2010-10-21  17:42:39,418 INFO  [org.jboss.system.server.Server]  JBoss (MX  MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)]   Started in 10s:171ms


                       


                      But still not resolving the URL  http://eulup8ae01-d:8080/

                       

                      The first set of log messages you posted (the ones that are JMS-related) are expected. JBossMQ will attempt to create the JMS tables in the database each time it startes up. Of course, that works fine only the first time, al the other times the tables are already there and you get the DEBUG log entries. Since they are just debug, you can ignore them.

                       

                      As far as not being able to access the URL, where are you entering the URL? But I suspect that you have it correct that there are some firewall or other restrictions in your work netwrok that is preventing the connection.