9 Replies Latest reply on Oct 25, 2010 6:02 AM by maxandersen

    timeout waiting for jboss 4.2

    tobiasmueller

      I'm not able to start jboss 4.2 from within eclipse 3.3 WTP with the JBoss AS Tools 1.0.1GA on Mac OS X 10.4
      The Server is starting and runs to "Started in 17s:450ms" but the IDE did not detect that the server is started and ends up with a "timeout waiting for jboss 4.2"

      Tobias

        • 1. Re: timeout waiting for jboss 4.2
          rob.stryker

          You should check the JBoss Servers View and expand the "Event Log" to see what's going wrong in startup.

          • 2. Re: timeout waiting for jboss 4.2
            tobiasmueller

            Event log
            javax.naming.CommunicationException:Could not obtain connection to any of these urls: localhost 1099 and discovery failed with error: javax.naming.CommunicationException: received timeout


            I took a look at netstat before starting. Port 1099 was not in use.

            Thanks

            Tobias

            • 3. Re: timeout waiting for jboss 4.2
              rob.stryker

              Sorry for the delay.

              WHere are you setting your JNDI / naming port? In which xml file?

              • 4. Re: timeout waiting for jboss 4.2
                tobiasmueller

                I didn't configure any values.
                There are three directories under the 'server' directory 'all','default' and 'minimal'. They all have a 'conf' directory with a jboss-service.xml file and jndi.properties file.
                All three jboss-service.xml files have an section concerning the jndi port.

                attribute name="Port" with an value of 1099

                Thanks

                Tobias

                • 5. Re: timeout waiting for jboss 4.2
                  tobiasmueller

                  After changing the servername from 'localhost' to '127.0.0.1' it worked as expected.

                  • 6. Re: timeout waiting for jboss 4.2
                    apparaonali

                    I am getting same error while running jboss tests. Can you tell me in which file I need to replace the servername from 'localhost' to '127.0.0.1'?

                    • 7. Re: timeout waiting for jboss 4.2
                      maxandersen

                      double click the server - in the editor is a host field.

                       

                      but wondering what is causing it then to fail since localhost should be the same as 127.0.0.1...

                      • 8. Re: timeout waiting for jboss 4.2
                        apparaonali

                        I am getting the below errors while running jboss testcases especially "tests-db", most of the testcases failed due to below errors.

                        I am very new to web technologies. I was told to run the jboss testcases as a part of jboss evaluation for our new project.

                         

                        Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1690) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1761) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:695) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.jboss.test.bank.test.BankStressTestCase.setUp(BankStressTestCase.java:462) at junit.framework.TestCase.runBare(TestCase.java:132) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:23) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.extensions.TestSetup.run(TestSetup.java:27) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1339) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:831) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1785) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:785) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) Caused by: java.net.SocketTimeoutException: Receive timed out at java.net.PlainDatagramSocketImpl.receive0(Native Method) at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) at java.net.DatagramSocket.receive(DatagramSocket.java:725) at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1659) ... 39 more

                        javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
                             at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1690)
                             at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1761)
                             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:695)
                             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
                             at javax.naming.InitialContext.lookup(InitialContext.java:392)
                             at org.jboss.test.bank.test.BankStressTestCase.setUp(BankStressTestCase.java:462)
                             at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
                             at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
                             at junit.extensions.TestSetup.run(TestSetup.java:27)
                        Caused by: java.net.SocketTimeoutException: Receive timed out
                             at java.net.PlainDatagramSocketImpl.receive0(Native Method)
                             at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
                             at java.net.DatagramSocket.receive(DatagramSocket.java:725)
                             at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1659)
                         [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
                             at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1780)
                             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:695)
                             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
                             at javax.naming.InitialContext.lookup(InitialContext.java:392)
                             at org.jboss.test.bank.test.BankStressTestCase.setUp(BankStressTestCase.java:462)
                             at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
                             at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
                             at junit.extensions.TestSetup.run(TestSetup.java:27)
                        Caused by: javax.naming.CommunicationException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
                             at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:337)
                             at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1746)
                        Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is java.net.ConnectException: Connection refused: connect]
                             at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:307)
                        Caused by: java.net.ConnectException: Connection refused: connect
                             at java.net.PlainSocketImpl.socketConnect(Native Method)
                             at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
                             at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
                             at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
                             at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
                             at java.net.Socket.connect(Socket.java:529)
                             at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:97)
                             at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:82)
                             at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:303)
                        
                        • 9. Re: timeout waiting for jboss 4.2
                          maxandersen

                          Hi,

                           

                          None of this seem to be related to JBoss Tools, but more a question for JBoss AS user forum ?