Hi,

This is what I get on the log:
---
2012-11-05 12:59:50,456 | INFO  | l Console Thread | Console                    
      | araf.shell.console.jline.Console  199 | 14 - 
org.apache.karaf.shell.console - 2.3.0 | Exception caught while executing 
command
java.io.IOException: The process cannot access the file because another process 
has locked a portion of the file
                             at java.io.FileInputStream.readBytes(Native 
Method)[:1.6.0_29]
                             at 
java.io.FileInputStream.read(FileInputStream.java:198)[:1.6.0_29]
                             at 
org.apache.karaf.admin.internal.AdminServiceImpl.copy(AdminServiceImpl.java:530)[43:org.apache.karaf.admin.core:2.3.0]
                             at 
org.apache.karaf.admin.internal.AdminServiceImpl.copy(AdminServiceImpl.java:523)[43:org.apache.karaf.admin.core:2.3.0]
                             at 
org.apache.karaf.admin.internal.AdminServiceImpl.copy(AdminServiceImpl.java:523)[43:org.apache.karaf.admin.core:2.3.0]
                             at 
org.apache.karaf.admin.internal.AdminServiceImpl.copy(AdminServiceImpl.java:523)[43:org.apache.karaf.admin.core:2.3.0]
                             at 
org.apache.karaf.admin.internal.AdminServiceImpl.cloneInstance(AdminServiceImpl.java:325)[43:org.apache.karaf.admin.core:2.3.0]
                             at 
Proxyde2739f5_f2da_4053_befb_f05bb173bebe.cloneInstance(Unknown Source)[:]
                             at 
org.apache.karaf.admin.command.CloneCommand.doExecute(CloneCommand.java:57)[27:org.apache.karaf.admin.command:2.3.0]
                             at 
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[14:org.apache.karaf.shell.console:2.3.0]
                             at 
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[14:org.apache.karaf.shell.console:2.3.0]
                             at 
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[14:org.apache.karaf.shell.console:2.3.0]
                             at 
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[14:org.apache.karaf.shell.console:2.3.0]
                             at 
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[14:org.apache.karaf.shell.console:2.3.0]
                             at 
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[14:org.apache.karaf.shell.console:2.3.0]
                             at 
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[14:org.apache.karaf.shell.console:2.3.0]
                             at 
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[14:org.apache.karaf.shell.console:2.3.0]
                             at 
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[14:org.apache.karaf.shell.console:2.3.0]
                             at 
org.apache.karaf.shell.console.jline.Console.run(Console.java:175)[14:org.apache.karaf.shell.console:2.3.0]
                             at java.lang.Thread.run(Thread.java:662)[:1.6.0_29]

Doesn’t seem to have the names of the locked files though.


-          Petri

From: jbonofre [via Karaf] [mailto:[email protected]]
Sent: 5. marraskuuta 2012 12:55
To: Riipinen Petri
Subject: Re: Cloning the root

Hi,

do you have the complete stack trace (especially to see which files are
locked) ?

I will try to reproduce this issue (AFAIR, I tried it when adding root
instance support).

Regards
JB

On 11/05/2012 11:52 AM, PJR69 wrote:

> I'm trying to clone my root instance with the command: "*admin:clone root
> newroot*" on the  Karaf 2.3.0 console.
>
> However, I'm getting an error:
> /Error executing command: The process cannot access the file because another
> process has locked a portion of the file/
>
> Should this be possible?
>
> The reason why I'm doing this that I've installed some features to Karaf
> root (like war deploying etc) and I've then zipped and copied the whole
> distribution to an internal server that's not connected to the internet. On
> that server I'd like to create several instances that have the same features
> that the root has. AFAIU, that needs to be done with cloning because just
> creating a new instance doesn't give the features from root to that
> instance.
>
> Hmm... Another alternative I guess would be to create a "template" instance
> on the internet-side server and install the features there and then clone
> that one instead of root. Is this the way to do it?
>
>
>
> --
> View this message in context: 
> http://karaf.922171.n3.nabble.com/Cloning-the-root-tp4026678.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

--
Jean-Baptiste Onofré
[hidden email]</user/SendEmail.jtp?type=node&node=4026679&i=0>
http://blog.nanthrax.net
Talend - http://www.talend.com

________________________________
If you reply to this email, your message will be added to the discussion below:
http://karaf.922171.n3.nabble.com/Cloning-the-root-tp4026678p4026679.html
To start a new topic under Karaf - User, email 
[email protected]<mailto:[email protected]>
To unsubscribe from Cloning the root, click 
here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4026678&code=cGV0cmkucmlpcGluZW5AaW5zdGEuZml8NDAyNjY3OHw1OTU2OTkzMzg=>.
NAML<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Cloning-the-root-tp4026678p4026680.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to