<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Project from Studio hot deploy failed in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/project-from-studio-hot-deploy-failed/m-p/325837#M12838</link>
    <description>&lt;P&gt;Hi,
I'm triing new nuxeo platform: &lt;A href="https://connect.nuxeo.com/nuxeo/site/connect/distributions/view/NX-DISTRIB-681"&gt;Nuxeo Platform LTS 2021&lt;/A&gt;
Together with nuxeo studio.
My question is related with hot deploy:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;First time I deploy nuxeo-studio project it works fine and the module is deployed correctly in the bundle folders.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Making a new change at nuxeo-studio and re-deploy again doesn't work, &lt;STRONG&gt;the bundle is blocked already used by another process&lt;/STRONG&gt; (nxsever is using it of course)&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;To fix it: I have to stop the server, delete the bundle, start the server and re-deploy again.&lt;/P&gt;
&lt;P&gt;OS: Windows 10.&lt;/P&gt;
&lt;P&gt;Expected behaviour: Could someone confirm if "&lt;STRONG&gt;hot deployment&lt;/STRONG&gt;" is working specially with nuxeo studio projects?&lt;/P&gt;
&lt;P&gt;Many thanks&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;****** chain ******
Name: Service.HotReloadStudioSnapshot
Exception: OperationException
Caught error: org.nuxeo.ecm.core.api.NuxeoException: Error while updating studio snapshot
Caused by: org.nuxeo.ecm.automation.OperationException: org.nuxeo.ecm.core.api.NuxeoException: Error while updating studio snapshot
****** Hierarchy calls ******
Caused by: org.osgi.framework.BundleException: Unable to copy bundles to D:\Software\Nuxeo Platform\nuxeo-server-tomcat-2021.1\nxserver\bundles
        at org.nuxeo.runtime.reload.ReloadComponent.copyBundlesToDeploy(ReloadComponent.java:469) ~[nuxeo-runtime-reload-2021.1.19.jar:?]
        at org.nuxeo.runtime.reload.ReloadComponent.reloadBundles(ReloadComponent.java:362) ~[nuxeo-runtime-reload-2021.1.19.jar:?]
        at org.nuxeo.ecm.admin.runtime.ReloadHelper.hotReloadPackage(ReloadHelper.java:131) ~[nuxeo-admin-center-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.admin.operation.HotReloadStudioSnapshot.hotReloadPackage(HotReloadStudioSnapshot.java:195) ~[nuxeo-admin-center-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.admin.operation.HotReloadStudioSnapshot.run(HotReloadStudioSnapshot.java:125) ~[nuxeo-admin-center-core-2021.1.19.jar:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:168) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:180) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:147) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:212) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:209) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.lambda$run$0(OperationServiceImpl.java:105) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:105) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.server.jaxrs.OperationResource.execute(OperationResource.java:58) ~[nuxeo-automation-server-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.server.jaxrs.ExecutableResource.doPost(ExecutableResource.java:70) ~[nuxeo-automation-server-2021.1.19.jar:?]
        ... 130 more
Caused by: java.nio.file.FileSystemException: D:\Software\Nuxeo Platform\nuxeo-server-tomcat-2021.1\nxserver\bundles\myproject-master-SNAPSHOT.jar: El proceso no tiene acceso al archivo porque está siendo utilizado por otro proceso. (The process cannot access to the file because it has been locked by other process)


&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 12 Feb 2021 13:47:19 GMT</pubDate>
    <dc:creator>ivi_333</dc:creator>
    <dc:date>2021-02-12T13:47:19Z</dc:date>
    <item>
      <title>Project from Studio hot deploy failed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/project-from-studio-hot-deploy-failed/m-p/325837#M12838</link>
      <description>&lt;P&gt;Hi,
I'm triing new nuxeo platform: &lt;A href="https://connect.nuxeo.com/nuxeo/site/connect/distributions/view/NX-DISTRIB-681"&gt;Nuxeo Platform LTS 2021&lt;/A&gt;
Together with nuxeo studio.
My question is related with hot deploy:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;First time I deploy nuxeo-studio project it works fine and the module is deployed correctly in the bundle folders.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Making a new change at nuxeo-studio and re-deploy again doesn't work, &lt;STRONG&gt;the bundle is blocked already used by another process&lt;/STRONG&gt; (nxsever is using it of course)&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;To fix it: I have to stop the server, delete the bundle, start the server and re-deploy again.&lt;/P&gt;
&lt;P&gt;OS: Windows 10.&lt;/P&gt;
&lt;P&gt;Expected behaviour: Could someone confirm if "&lt;STRONG&gt;hot deployment&lt;/STRONG&gt;" is working specially with nuxeo studio projects?&lt;/P&gt;
&lt;P&gt;Many thanks&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;****** chain ******
Name: Service.HotReloadStudioSnapshot
Exception: OperationException
Caught error: org.nuxeo.ecm.core.api.NuxeoException: Error while updating studio snapshot
Caused by: org.nuxeo.ecm.automation.OperationException: org.nuxeo.ecm.core.api.NuxeoException: Error while updating studio snapshot
****** Hierarchy calls ******
Caused by: org.osgi.framework.BundleException: Unable to copy bundles to D:\Software\Nuxeo Platform\nuxeo-server-tomcat-2021.1\nxserver\bundles
        at org.nuxeo.runtime.reload.ReloadComponent.copyBundlesToDeploy(ReloadComponent.java:469) ~[nuxeo-runtime-reload-2021.1.19.jar:?]
        at org.nuxeo.runtime.reload.ReloadComponent.reloadBundles(ReloadComponent.java:362) ~[nuxeo-runtime-reload-2021.1.19.jar:?]
        at org.nuxeo.ecm.admin.runtime.ReloadHelper.hotReloadPackage(ReloadHelper.java:131) ~[nuxeo-admin-center-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.admin.operation.HotReloadStudioSnapshot.hotReloadPackage(HotReloadStudioSnapshot.java:195) ~[nuxeo-admin-center-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.admin.operation.HotReloadStudioSnapshot.run(HotReloadStudioSnapshot.java:125) ~[nuxeo-admin-center-core-2021.1.19.jar:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:168) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:180) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:147) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:212) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:209) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.lambda$run$0(OperationServiceImpl.java:105) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:105) ~[nuxeo-automation-core-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.server.jaxrs.OperationResource.execute(OperationResource.java:58) ~[nuxeo-automation-server-2021.1.19.jar:?]
        at org.nuxeo.ecm.automation.server.jaxrs.ExecutableResource.doPost(ExecutableResource.java:70) ~[nuxeo-automation-server-2021.1.19.jar:?]
        ... 130 more
Caused by: java.nio.file.FileSystemException: D:\Software\Nuxeo Platform\nuxeo-server-tomcat-2021.1\nxserver\bundles\myproject-master-SNAPSHOT.jar: El proceso no tiene acceso al archivo porque está siendo utilizado por otro proceso. (The process cannot access to the file because it has been locked by other process)


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Feb 2021 13:47:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/project-from-studio-hot-deploy-failed/m-p/325837#M12838</guid>
      <dc:creator>ivi_333</dc:creator>
      <dc:date>2021-02-12T13:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Project from Studio hot deploy failed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/project-from-studio-hot-deploy-failed/m-p/325838#M12839</link>
      <description>&lt;P&gt;Hello, it works on my side on LTS 2021 (MacOS). I'll post an update if we identify an issue specific to Windows OS, but I don't think it's the case. Regards&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 14:12:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/project-from-studio-hot-deploy-failed/m-p/325838#M12839</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2021-02-12T14:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Project from Studio hot deploy failed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/project-from-studio-hot-deploy-failed/m-p/325839#M12840</link>
      <description>&lt;P&gt;Thanks. Great! probably is windows specific error, I will try in Linux and let you know By the way this flag was already activated in nuxeo.conf org.nuxeo.dev=true&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 14:16:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/project-from-studio-hot-deploy-failed/m-p/325839#M12840</guid>
      <dc:creator>ivi_333</dc:creator>
      <dc:date>2021-02-12T14:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Project from Studio hot deploy failed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/project-from-studio-hot-deploy-failed/m-p/325840#M12841</link>
      <description>&lt;P&gt;Related to &lt;STRONG&gt;Hot Deploy&lt;/STRONG&gt; It worked in Ubuntu 20.04.2.0-desktop, so this is a bug on Windows 10, Is it a known bug?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 10:17:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/project-from-studio-hot-deploy-failed/m-p/325840#M12841</guid>
      <dc:creator>ivi_333</dc:creator>
      <dc:date>2021-02-16T10:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Project from Studio hot deploy failed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/project-from-studio-hot-deploy-failed/m-p/325841#M12842</link>
      <description>&lt;P&gt;Hello, that's actually a bug&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 15:33:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/project-from-studio-hot-deploy-failed/m-p/325841#M12842</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2021-02-16T15:33:53Z</dc:date>
    </item>
  </channel>
</rss>

