1 Reply Latest reply on Nov 10, 2014 6:48 AM by Tomaz Cerar

    torquebox error with simple rails app ".realm is already registered"

    O W Newbie

      Any advice at all on this failure?  TIA

       

      Following the new rails app steps here:  http://torquebox.org/builds/getting-started/first-steps.html

       

      $ rails new .

      $ rails g scaffold post title body:text

      $ rake db:migrate

      $ torquebox deploy

      $ torquebox run


      fails with this


      15:01:11,983 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-6) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]

      15:01:13,704 INFO  [org.torquebox.core.runtime] (pool-2-thread-1) Created ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, context: global) in 2.48s

      15:01:13,947 INFO  [org.hornetq.core.server] (pool-5-thread-1) HQ221003: trying to deploy queue jms.queue./queues/torquebox/blog/tasks/torquebox_backgroundable

      15:01:13,957 INFO  [org.jboss.as.messaging] (pool-5-thread-1) JBAS011601: Bound messaging object to jndi name java:/queues/torquebox/blog/tasks/torquebox_backgroundable

      15:01:13,958 INFO  [org.hornetq.core.server] (pool-5-thread-3) HQ221003: trying to deploy queue jms.queue./queues/torquebox/railsapp3/tasks/torquebox_backgroundable

      15:01:13,971 INFO  [org.jboss.as.messaging] (pool-5-thread-3) JBAS011601: Bound messaging object to jndi name java:/queues/torquebox/railsapp3/tasks/torquebox_backgroundable

      15:01:13,972 INFO  [org.hornetq.core.server] (pool-5-thread-2) HQ221003: trying to deploy queue jms.queue./queues/torquebox/deadletter/tasks/torquebox_backgroundable

      15:01:13,975 INFO  [org.jboss.as.messaging] (pool-5-thread-2) JBAS011601: Bound messaging object to jndi name java:/queues/torquebox/deadletter/tasks/torquebox_backgroundable

      15:01:14,012 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."blog-knob.yml".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."blog-knob.yml".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "blog-knob.yml"

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.x.slim.incremental.16.jar:7.2.x.slim.incremental.16]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [classes.jar:1.6.0_65]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [classes.jar:1.6.0_65]

        at java.lang.Thread.run(Thread.java:695) [classes.jar:1.6.0_65]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018027: Failed to add JBoss Web deployment service

        at org.jboss.as.web.deployment.WarDeploymentProcessor.processDeployment(WarDeploymentProcessor.java:353)

        at org.jboss.as.web.deployment.WarDeploymentProcessor.deploy(WarDeploymentProcessor.java:126)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.x.slim.incremental.16.jar:7.2.x.slim.incremental.16]

        ... 5 more

      Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.web.deployment.default-host./.realm is already registered

        at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:561) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.as.web.deployment.WarDeploymentProcessor.processDeployment(WarDeploymentProcessor.java:291)

        ... 7 more

       

      15:01:14,012 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."railsapp3-knob.yml".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."railsapp3-knob.yml".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "railsapp3-knob.yml"

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.x.slim.incremental.16.jar:7.2.x.slim.incremental.16]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [classes.jar:1.6.0_65]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [classes.jar:1.6.0_65]

        at java.lang.Thread.run(Thread.java:695) [classes.jar:1.6.0_65]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018027: Failed to add JBoss Web deployment service

        at org.jboss.as.web.deployment.WarDeploymentProcessor.processDeployment(WarDeploymentProcessor.java:353)

        at org.jboss.as.web.deployment.WarDeploymentProcessor.deploy(WarDeploymentProcessor.java:126)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.x.slim.incremental.16.jar:7.2.x.slim.incremental.16]

        ... 5 more

      Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.web.deployment.default-host./.realm is already registered

        at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:561) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.as.web.deployment.WarDeploymentProcessor.processDeployment(WarDeploymentProcessor.java:291)

        ... 7 more

       

      15:01:14,035 INFO  [org.torquebox.core.runtime] (pool-2-thread-1) Creating ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: deadletter, context: web)

      15:01:14,035 INFO  [org.torquebox.core.runtime.DefaultRubyRuntimePool] (pool-2-thread-2) Deferring start for jobs runtime pool.

      15:01:14,036 INFO  [org.torquebox.core.runtime.DefaultRubyRuntimePool] (pool-2-thread-3) Deferring start for messaging runtime pool.

      15:01:14,110 INFO  [org.quartz.impl.StdSchedulerFactory] (MSC service thread 1-7) Using default implementation for ThreadExecutor