6 Replies Latest reply on May 8, 2008 11:54 AM by Brandon Barlow

    Errors running quickstart in standalone mode

    patrickjolliffe Newbie

      Downloaded 4.21GA Server and following instructions in readme to run helloworld in standalone mode. I get the following errors:

      [echo] Launching Quickstart in standalone mode...
       [qsjava] +----------------------------------------------------------+
       [qsjava] | |
       [qsjava] | Starting JBossESB... |
       [qsjava] | |
       [qsjava] +----------------------------------------------------------+
       [qsjava] Reading config from C:\jbossesb-server-4.2.1GA\samples\quickstarts\helloworld\jboss-esb.xml
       [qsjava] 16:37:36,890 INFO [main][SimpleThreadPool] Job execution threads will use class loader of thread: main
       [qsjava] 16:37:36,969 INFO [main][QuartzScheduler] Quartz Scheduler v.1.5.2created.
       [qsjava] 16:37:36,984 INFO [main][RAMJobStore] RAMJobStore initialized.
       [qsjava] 16:37:36,984 INFO [main][StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from an externally provided properties instance
      .
       [qsjava] 16:37:37,000 INFO [main][StdSchedulerFactory] Quartz scheduler version: 1.5.2
       [qsjava] 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.SocketTime
      outException: Receive timed out] [Root exception is javax.naming.CommunicationEx
      ception: Failed to connect to server localhost:1099 [Root exception is javax.nam
      ing.ServiceUnavailableException: Failed to connect to server localhost:1099 [Roo
      t exception is java.net.ConnectException: Connection refused: connect]]]
       [qsjava] at org.apache.ws.scout.transport.RMITransport.send(RMITransport.
      java:91)
       [qsjava] at org.apache.ws.scout.registry.RegistryImpl.execute(RegistryImp
      l.java:271)
       [qsjava] at org.apache.ws.scout.registry.RegistryImpl.findTModel(Registry
      Impl.java:793)
       [qsjava] at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findCla
      ssificationSchemeByName(BusinessQueryManagerImpl.java:440)
       [qsjava] at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl
      .findService(JAXRRegistryImpl.java:488)
       [qsjava] at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl
      .registerEPR(JAXRRegistryImpl.java:204)
       [qsjava] at org.jboss.soa.esb.listeners.RegistryUtil.register(RegistryUti
      l.java:139)
       [qsjava] at org.jboss.soa.esb.listeners.message.MessageAwareListener.doIn
      itialise(MessageAwareListener.java:213)
       [qsjava] at org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycl
      e.initialise(AbstractManagedLifecycle.java:133)
       [qsjava] at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleControl
      ler.initialiseInstances(ManagedLifecycleController.java:150)
       [qsjava] at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleControl
      ler.start(ManagedLifecycleController.java:69)
       [qsjava] at org.jboss.soa.esb.listeners.config.ConfigurationController.st
      artController(ConfigurationController.java:366)
       [qsjava] at org.jboss.soa.esb.listeners.config.ConfigurationController.st
      artController(ConfigurationController.java:354)
       [qsjava] at org.jboss.soa.esb.listeners.config.ConfigurationController.pr
      ocessConfiguration(ConfigurationController.java:328)
       [qsjava] at org.jboss.soa.esb.listeners.config.ConfigurationController.<i
      nit>(ConfigurationController.java:128)
       [qsjava] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.initiateCo
      ntroller(StandAloneBootStrapper.java:219)
       [qsjava] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.<init>(Sta
      ndAloneBootStrapper.java:154)
       [qsjava] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.<init>(Sta
      ndAloneBootStrapper.java:130)
       [qsjava] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.main(Stand
      AloneBootStrapper.java:97)
       [qsjava] Caused by: javax.naming.CommunicationException: Could not obtain con
      nection to any of these urls: localhost:1099 and discovery failed with error: ja
      vax.naming.CommunicationException: Receive timed out [Root exception is java.net
      .SocketTimeoutException: Receive timed out] [Root exception is javax.naming.Comm
      unicationException: Failed to connect to server localhost:1099 [Root exception i
      s javax.naming.ServiceUnavailableException: Failed to connect to server localhos
      t:1099 [Root exception is java.net.ConnectException: Connection refused: connect
      ]]]
       [qsjava] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
      1416)
       [qsjava] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:59
      6)
       [qsjava] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:58
      9)
       [qsjava] at javax.naming.InitialContext.lookup(InitialContext.java:392)
       [qsjava] at org.apache.ws.scout.transport.RMITransport.send(RMITransport.
      java:80)
       [qsjava] ... 18 more
       [qsjava] Caused by: javax.naming.CommunicationException: Failed to connect to
       server localhost:1099 [Root exception is javax.naming.ServiceUnavailableExcepti
      on: Failed to connect to server localhost:1099 [Root exception is java.net.Conne
      ctException: Connection refused: connect]]
       [qsjava] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
      :269)
       [qsjava] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
      1387)
       [qsjava] ... 22 more
       [qsjava] Caused by: javax.naming.ServiceUnavailableException: Failed to conne
      ct to server localhost:1099 [Root exception is java.net.ConnectException: Connec
      tion refused: connect]
       [qsjava] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
      :243)
       [qsjava] ... 23 more
       [qsjava] Caused by: java.net.ConnectException: Connection refused: connect
       [qsjava] at java.net.PlainSocketImpl.socketConnect(Native Method)
       [qsjava] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
       [qsjava] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav
      a:195)
       [qsjava] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
       [qsjava] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
       [qsjava] at java.net.Socket.connect(Socket.java:519)
       [qsjava] at java.net.Socket.connect(Socket.java:469)
       [qsjava] at java.net.Socket.<init>(Socket.java:366)
       [qsjava] at java.net.Socket.<init>(Socket.java:267)
       [qsjava] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocke
      tFactory.java:84)
       [qsjava] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocke
      tFactory.java:77)
       [qsjava] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
      :239)
       [qsjava] ... 23 more
       [qsjava] 16:37:44,125 ERROR [main][ConfigurationController] Unexpected except
      ion starting controller
       [qsjava] org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Une
      xpected error during registration for epr JMSEpr [ PortReference < <wsa:Address
      jms://localhost/queue/quickstart_helloworld_Request_esb/>, <wsa:ReferencePropert
      ies jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFacto
      ry/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : jnp://127.0.0
      .1:1099/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.
      jboss.naming:org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination
      -type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>
      , <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <w
      sa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jb
      ossesb:acknowledge-mode : 1/> > ]
       [qsjava] at org.jboss.soa.esb.listeners.message.MessageAwareListener.doIn
      itialise(MessageAwareListener.java:218)
       [qsjava] at org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycl
      e.initialise(AbstractManagedLifecycle.java:133)
       [qsjava] at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleControl
      ler.initialiseInstances(ManagedLifecycleController.java:150)
       [qsjava] at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleControl
      ler.start(ManagedLifecycleController.java:69)
       [qsjava] at org.jboss.soa.esb.listeners.config.ConfigurationController.st
      artController(ConfigurationController.java:366)
       [qsjava] at org.jboss.soa.esb.listeners.config.ConfigurationController.st
      artController(ConfigurationController.java:354)
       [qsjava] at org.jboss.soa.esb.listeners.config.ConfigurationController.pr
      ocessConfiguration(ConfigurationController.java:328)
       [qsjava] at org.jboss.soa.esb.listeners.config.ConfigurationController.<i
      nit>(ConfigurationController.java:128)
       [qsjava] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.initiateCo
      ntroller(StandAloneBootStrapper.java:219)
       [qsjava] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.<init>(Sta
      ndAloneBootStrapper.java:154)
       [qsjava] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.<init>(Sta
      ndAloneBootStrapper.java:130)
       [qsjava] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.main(Stand
      AloneBootStrapper.java:97)
       [qsjava] Caused by: org.jboss.soa.esb.services.registry.RegistryException: ja
      vax.naming.CommunicationException: Could not obtain connection to any of these u
      rls: localhost:1099 and discovery failed with error: javax.naming.CommunicationE
      xception: Receive timed out [Root exception is java.net.SocketTimeoutException:
      Receive timed out] [Root exception is javax.naming.CommunicationException: Faile
      d to connect to server localhost:1099 [Root exception is javax.naming.ServiceUna
      vailableException: Failed to connect to server localhost:1099 [Root exception is
       java.net.ConnectException: Connection refused: connect]]]
       [qsjava] at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl
      .registerEPR(JAXRRegistryImpl.java:231)
       [qsjava] at org.jboss.soa.esb.listeners.RegistryUtil.register(RegistryUti
      l.java:139)
       [qsjava] at org.jboss.soa.esb.listeners.message.MessageAwareListener.doIn
      itialise(MessageAwareListener.java:213)
       [qsjava] ... 11 more
       [qsjava] Caused by: javax.xml.registry.JAXRException: javax.naming.Communicat
      ionException: Could not obtain connection to any of these urls: localhost:1099 a
      nd discovery failed with error: javax.naming.CommunicationException: Receive tim
      ed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [R
      oot exception is javax.naming.CommunicationException: Failed to connect to serve
      r localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Fa
      iled to connect to server localhost:1099 [Root exception is java.net.ConnectExce
      ption: Connection refused: connect]]]
       [qsjava] at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findCla
      ssificationSchemeByName(BusinessQueryManagerImpl.java:459)
       [qsjava] at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl
      .findService(JAXRRegistryImpl.java:488)
       [qsjava] at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl
      .registerEPR(JAXRRegistryImpl.java:204)
       [qsjava] ... 13 more
      

      Anything I have missed in configuration? It works fine in 'esb' archive mode.