Karaf
  1. Karaf
  2. KARAF-1359

instance:create fails with Error executing command: Unable to find resource etc/config.properties

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: karaf-instance
    • Labels:
      None

      Description

      karaf@root> instance:create -v test
      Creating new instance on SSH port 8104 and RMI registry port 1102 / RMI server port 44447 at: C:\java\apache-karaf-3.0.0-SNAPSHOT\instances\test
      Creating file: C:\java\apache-karaf-3.0.0-SNAPSHOT\instances\test\etc\config.properties
      Error executing command: Unable to find resource etc/config.properties

      2012-04-12 13:11:26,930 | INFO | l Console Thread | Console | araf.shell.console.jline.Console 199 | 41 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
      java.io.IOException: Unable to find resource etc/config.properties
      at org.apache.karaf.instance.core.internal.InstanceServiceImpl.copyResourceToDir(InstanceServiceImpl.java:411)
      at org.apache.karaf.instance.core.internal.InstanceServiceImpl.createInstance(InstanceServiceImpl.java:174)
      at Proxy4b31c650_c82a_4ece_bfce_eb4dec7e78b1.createInstance(Unknown Source)
      at Proxyfd896baa_f9f9_4f77_8829_9d85e05a0a2c.createInstance(Unknown Source)
      at org.apache.karaf.instance.command.CreateCommand.doExecute(CreateCommand.java:63)
      at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
      at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
      at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_31]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_31]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_31]
      at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_31]
      at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)[13:org.apache.aries.proxy.impl:0.4.1.SNAPSHOT]
      at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)[13:org.apache.aries.proxy.impl:0.4.1.SNAPSHOT]
      at org.apache.karaf.shell.console.commands.$BlueprintCommand12433070.execute(Unknown Source)[41:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[41:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[41:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[41:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[41:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[41:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[41:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[41:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.karaf.shell.console.jline.Console.run(Console.java:166)[41:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at java.lang.Thread.run(Thread.java:662)[:1.6.0_31]

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Christian Schneider
            Reporter:
            Christian Schneider
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development