1 2 Previous Next 15 Replies Latest reply on Sep 24, 2014 7:01 PM by jmiguel77 Go to original post
      • 15. Re: Error while starting JBoss Fuse
        jmiguel77

        and if i change the file like this

        rmiRegistryHost = 0.0.0.0 to rmiRegistryHost = 127.0.0.1

         

        and

         

        serviceUrl = service:jmx:rmi://0.0.0.0:${rmiServerPort}/jndi/rmi://${rmiRegistryHost}:${rmiRegistryPort}/karaf-${karaf.name}

        to

        serviceUrl = service:jmx:rmi://127.0.0.1:${rmiServerPort}/jndi/rmi://${rmiRegistryHost}:${rmiRegistryPort}/karaf-${karaf.name}

         

        when i issue the command fabric:container-create-child root locations-container i get the error

        Error executing command: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: karaf-root

         

        and in the log file i see this error

        17:59:53,109 | INFO  | l Console Thread | Console                          | 16 - org.apache.karaf.shell.console - 2.3.0.redhat-60061 | Exception caught while executing command

        org.fusesource.fabric.api.FabricException: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: karaf-root

          at org.fusesource.fabric.service.ContainerTemplate.createConnector(ContainerTemplate.java:169)[58:org.fusesource.fabric.fabric-core:7.2.0.redhat-061]

          at org.fusesource.fabric.service.ContainerTemplate$1.createConnector(ContainerTemplate.java:56)[58:org.fusesource.fabric.fabric-core:7.2.0.redhat-061]

          at org.fusesource.fabric.service.NonCachingJmxTemplate.execute(NonCachingJmxTemplate.java:34)[58:org.fusesource.fabric.fabric-core:7.2.0.redhat-061]

          at org.fusesource.fabric.service.ContainerTemplate.execute(ContainerTemplate.java:97)[58:org.fusesource.fabric.fabric-core:7.2.0.redhat-061]

          at org.fusesource.fabric.service.ChildContainerProvider.create(ChildContainerProvider.java:57)[58:org.fusesource.fabric.fabric-core:7.2.0.redhat-061]

          at org.fusesource.fabric.service.ChildContainerProvider.create(ChildContainerProvider.java:40)[58:org.fusesource.fabric.fabric-core:7.2.0.redhat-061]

          at org.fusesource.fabric.service.FabricServiceImpl.createContainers(FabricServiceImpl.java:329)[58:org.fusesource.fabric.fabric-core:7.2.0.redhat-061]

          at Proxya643ee24_77e8_4f6d_8d1a_1d9f7a03c4a7.createContainers(Unknown Source)[:]

          at org.fusesource.fabric.commands.ContainerCreateChild.doExecute(ContainerCreateChild.java:74)[236:org.fusesource.fabric.fabric-commands:7.2.0.redhat-061]

          at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[16:org.apache.karaf.shell.console:2.3.0.redhat-60061]

          at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[16:org.apache.karaf.shell.console:2.3.0.redhat-60061]

          at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[16:org.apache.karaf.shell.console:2.3.0.redhat-60061]

          at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[16:org.apache.karaf.shell.console:2.3.0.redhat-60061]

          at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[16:org.apache.karaf.shell.console:2.3.0.redhat-60061]

          at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[16:org.apache.karaf.shell.console:2.3.0.redhat-60061]

          at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[16:org.apache.karaf.shell.console:2.3.0.redhat-60061]

          at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[16:org.apache.karaf.shell.console:2.3.0.redhat-60061]

          at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[16:org.apache.karaf.shell.console:2.3.0.redhat-60061]

          at org.apache.karaf.shell.console.jline.Console.run(Console.java:176)[16:org.apache.karaf.shell.console:2.3.0.redhat-60061]

          at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[16:org.apache.karaf.shell.console:2.3.0.redhat-60061]

        Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: karaf-root

          at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369)[:1.7.0_51]

          at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268)[:1.7.0_51]

          at org.fusesource.fabric.service.ContainerTemplate.createConnector(ContainerTemplate.java:165)[58:org.fusesource.fabric.fabric-core:7.2.0.redhat-061]

          ... 19 more

        Caused by: javax.naming.NameNotFoundException: karaf-root

          at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:116)[:1.7.0_51]

          at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)[:1.7.0_51]

          at javax.naming.InitialContext.lookup(InitialContext.java:411)[:1.7.0_51]

          at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1936)[:1.7.0_51]

          at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1903)[:1.7.0_51]

          at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:286)[:1.7.0_51]

          ... 21 more

        1 2 Previous Next