<?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 SDK 4 hotswap-agent not working. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/sdk-4-hotswap-agent-not-working/m-p/111710#M31175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have followed the&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/hot-reloading/hotswap-agent.md" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/hot-reloading/hotswap-agent.md&lt;/A&gt;&amp;nbsp;for setting up hot reloading using&amp;nbsp;hotswap-agent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the ACS 6.1 so followed the setup method for JAVA 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the logs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2019 08:50:55 GMT</pubDate>
    <dc:creator>rohit9637</dc:creator>
    <dc:date>2019-08-28T08:50:55Z</dc:date>
    <item>
      <title>SDK 4 hotswap-agent not working.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sdk-4-hotswap-agent-not-working/m-p/111710#M31175</link>
      <description>I have followed the&amp;nbsp;https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/hot-reloading/hotswap-agent.md&amp;nbsp;for setting up hot reloading using&amp;nbsp;hotswap-agent.I am using the ACS 6.1 so followed the setup method for JAVA 11.I have attached the logs.</description>
      <pubDate>Wed, 28 Aug 2019 08:50:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sdk-4-hotswap-agent-not-working/m-p/111710#M31175</guid>
      <dc:creator>rohit9637</dc:creator>
      <dc:date>2019-08-28T08:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 4 hotswap-agent not working.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sdk-4-hotswap-agent-not-working/m-p/111711#M31176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at your log, it looks like the error is because of :&amp;nbsp;java.lang.ClassNotFoundException: javax.xml.bind.ValidationEventHandler.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From java9 onwards there are some&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;changes for&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;java.xml.bind&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;. Check here, It says deprecated:&amp;nbsp;&lt;A href="https://docs.oracle.com/javase/9/docs/api/java.xml.bind-summary.html" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/javase/9/docs/api/java.xml.bind-summary.html&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;javax.xml.bind&amp;nbsp;is sub package of Module&amp;nbsp;java.xml.bind.&amp;nbsp;So Module&amp;nbsp;javax.xml.bind&amp;nbsp;will not be available on classpath by default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;You are trying to use java11 here as i understand. There might be some custom code which&amp;nbsp;could be causing this error :&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;java.lang.ClassNotFoundException: javax.xml.bind.ValidationEventHandler.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;See if&amp;nbsp;&lt;SPAN&gt;jaxb-api is part of your classpath or not. Otherwise try to include it as a dependency.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;lt;dependency&amp;gt;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;lt;groupId&amp;gt;javax.xml.bind&amp;lt;/groupId&amp;gt;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;lt;artifactId&amp;gt;jaxb-api&amp;lt;/artifactId&amp;gt;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;lt;version&amp;gt;2.3.0&amp;lt;/version&amp;gt;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;lt;/dependency&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:34:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sdk-4-hotswap-agent-not-working/m-p/111711#M31176</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-08-28T12:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 4 hotswap-agent not working.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sdk-4-hotswap-agent-not-working/m-p/111712#M31177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it was helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still, hot reloading is not working with hotswapagent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;HOTSWAP AGENT: 12:05:19.758 DEBUG (org.hotswap.agent.command.impl.SchedulerImpl) - Executing executeCommand: initClassLoader(org.mozilla.javascript.DefiningClassLoader@40b307a5)&lt;BR /&gt;alfresco | HOTSWAP AGENT: 12:05:19.839 DEBUG (org.hotswap.agent.util.classloader.ClassLoaderDefineClassPatcher) - Classloader org.mozilla.javascript.DefiningClassLoader@40b307a5 patched with plugin classes from agent classloader jdk.internal.loader.ClassLoaders$AppClassLoader@2cdf8d8a.&lt;BR /&gt;alfresco | HOTSWAP AGENT: 12:05:19.839 DEBUG (org.hotswap.agent.config.PluginConfiguration) - Classloader does not contain 'hotswap-agent.properties', using parent file 'jar:file:/usr/java/dcevm-11.0.1+7/lib/hotswap/hotswap-agent.jar!/hotswap-agent.properties'&lt;BR /&gt;alfresco | HOTSWAP AGENT: 12:05:19.839 DEBUG (org.hotswap.agent.annotation.handler.InitHandler) - Init plugin class org.hotswap.agent.plugin.watchResources.WatchResourcesPlugin at classloader org.mozilla.javascript.DefiningClassLoader@40b307a5.&lt;BR /&gt;alfresco | HOTSWAP AGENT: 12:05:19.839 DEBUG (org.hotswap.agent.plugin.watchResources.WatchResourcesPlugin) - Init plugin at classLoader org.mozilla.javascript.DefiningClassLoader@40b307a5&lt;BR /&gt;alfresco | HOTSWAP AGENT: 12:05:19.839 DEBUG (org.hotswap.agent.plugin.watchResources.WatchResourcesPlugin) - ClassLoader org.mozilla.javascript.DefiningClassLoader@40b307a5 does not contain hotswap-agent.properties file, WatchResources skipped.&lt;BR /&gt;alfresco | HOTSWAP AGENT: 12:05:19.839 DEBUG (org.hotswap.agent.annotation.handler.InitHandler) - Init plugin class org.hotswap.agent.plugin.hotswapper.HotswapperPlugin at classloader org.mozilla.javascript.DefiningClassLoader@40b307a5.&lt;BR /&gt;alfresco | HOTSWAP AGENT: 12:05:19.839 DEBUG (org.hotswap.agent.plugin.hotswapper.HotswapperPlugin) - Init plugin at classLoader org.mozilla.javascript.DefiningClassLoader@40b307a5&lt;BR /&gt;alfresco | HOTSWAP AGENT: 12:05:19.840 DEBUG (org.hotswap.agent.plugin.hotswapper.HotswapperPlugin) - ClassLoader org.mozilla.javascript.DefiningClassLoader@40b307a5 does not contain hotswap-agent.properties file, hotswapper skipped.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2019 13:38:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sdk-4-hotswap-agent-not-working/m-p/111712#M31177</guid>
      <dc:creator>rohit9637</dc:creator>
      <dc:date>2019-08-29T13:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 4 hotswap-agent not working.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sdk-4-hotswap-agent-not-working/m-p/111713#M31178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not followed each and every steps as mentioned in the link you have posted, but the debug message says:&lt;/P&gt;&lt;P&gt;Classloader does not contain 'hotswap-agent.properties', using parent file 'jar:file:/usr/java/dcevm-11.0.1+7/lib/hotswap/hotswap-agent.jar!/hotswap-agent.properties'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the&amp;nbsp;hotswap-agent.properties can not be found and that's why its not working. Please check the setup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, i have setup a project using SDK4 which runs ACS6.1. I can make the changes in java classes and it loads properly. Refer the project:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/abhinavmishra14/acs6.x-aio-demo-community/archive/master.zip" title="https://github.com/abhinavmishra14/acs6.x-aio-demo-community/archive/master.zip" rel="nofollow noopener noreferrer"&gt;https://github.com/abhinavmishra14/acs6.x-aio-demo-community/archive/master.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2019 14:33:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sdk-4-hotswap-agent-not-working/m-p/111713#M31178</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-08-29T14:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 4 hotswap-agent not working.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sdk-4-hotswap-agent-not-working/m-p/111714#M31179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have downloaded your project. Made changes to hello world webscript class. It didn't reflect even after refreshing webscript.&lt;/P&gt;&lt;P&gt;I have also made changes in the log statement in the same class still didn't reflect in logs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 08:06:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sdk-4-hotswap-agent-not-working/m-p/111714#M31179</guid>
      <dc:creator>rohit9637</dc:creator>
      <dc:date>2019-08-30T08:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 4 hotswap-agent not working.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sdk-4-hotswap-agent-not-working/m-p/111715#M31180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before uploading the project to github, i missed to add 'COPY' instructions in DockerFile. I have added it now.&lt;/P&gt;&lt;P&gt;Download the project again, or just add this line into&amp;nbsp;&lt;SPAN class="" style="font-weight: 600 !important;"&gt;&lt;SPAN class=""&gt;&lt;A data-pjax="true" href="https://github.com/abhinavmishra14/acs6.x-aio-demo-community" style="color: #0366d6; background-color: transparent; text-decoration: underline;" rel="nofollow noopener noreferrer"&gt;&lt;SPAN&gt;acs6.x-aio-demo-community&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A data-pjax="true" href="https://github.com/abhinavmishra14/acs6.x-aio-demo-community/tree/master/acs6-aio-demo-project-platform-docker" style="color: #0366d6; background-color: transparent; text-decoration: none;" rel="nofollow noopener noreferrer"&gt;&lt;SPAN&gt;acs6-aio-demo-project-platform-docker&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A data-pjax="true" href="https://github.com/abhinavmishra14/acs6.x-aio-demo-community/tree/master/acs6-aio-demo-project-platform-docker/src" style="color: #0366d6; background-color: transparent; text-decoration: none;" rel="nofollow noopener noreferrer"&gt;&lt;SPAN&gt;src&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A data-pjax="true" href="https://github.com/abhinavmishra14/acs6.x-aio-demo-community/tree/master/acs6-aio-demo-project-platform-docker/src/main" style="color: #0366d6; background-color: transparent; text-decoration: none;" rel="nofollow noopener noreferrer"&gt;&lt;SPAN&gt;main&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A data-pjax="true" href="https://github.com/abhinavmishra14/acs6.x-aio-demo-community/tree/master/acs6-aio-demo-project-platform-docker/src/main/docker" style="color: #0366d6; background-color: transparent; text-decoration: none;" rel="nofollow noopener noreferrer"&gt;&lt;SPAN&gt;docker&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; font-weight: 600;"&gt;&lt;STRONG class=""&gt;Dockerfile&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE data-tab-size="8" style="color: #24292e; background-color: #ffffff;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" style="color: #24292e; padding: 0px 10px;"&gt;&lt;SPAN class="" style="color: #d73a49;"&gt;COPY&lt;/SPAN&gt; hotswap-agent.properties $TOMCAT_DIR/webapps/alfresco/WEB-INF/classes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" data-line-number="18" style="color: rgba(27, 31, 35, 0.3); padding: 0px 10px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H2 class="" style="color: #586069; background-color: #ffffff; font-weight: 400 !important; font-size: 16px; margin: 0px 16px 0px 8px !important;" id="toc-hId-1616882286"&gt;&lt;SPAN class="" style="font-weight: 600 !important;"&gt;&lt;SPAN class=""&gt;&lt;A data-pjax="true" href="https://github.com/abhinavmishra14/acs6.x-aio-demo-community" style="color: #0366d6; background-color: transparent; text-decoration: underline;" rel="nofollow noopener noreferrer"&gt;https://github.com/abhinavmishra14/acs6.x-aio-demo-community&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;See some screenshots below where i tried making the changes and it reflects properly :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="27963" class="jive-image image-4" src="https://connect.hyland.com/legacyfs/online/alfresco/27963_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="27961" class="image-2 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/27961_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;Initial Log:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="27962" class="image-3 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/27962_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Made changes to the webscript, updated the values and added additional logs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="27964" class="image-5 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/27964_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;See updated message:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="27965" class="image-6 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/27965_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;Updated logs:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="27966" class="image-7 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/27966_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note- Remember to start remote debugging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For remote debugging follow the instructions given here:&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/debugging/debug-eclipse.md" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/debugging/debug-eclipse.md&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:14:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sdk-4-hotswap-agent-not-working/m-p/111715#M31180</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-08-30T15:14:47Z</dc:date>
    </item>
  </channel>
</rss>

