<?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 Re: SDK4 Integration Tests extending AbstractAlfrescoIT won't stop at breakpoints? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/sdk4-integration-tests-extending-abstractalfrescoit-won-t-stop/m-p/86943#M26241</link>
    <description>&lt;P&gt;If you have generated your project structure using SDK4, then all the required DockerFiles would already be available.&lt;/P&gt;
&lt;P&gt;All you need to do is, to add the below given line in your platform-docker project's DockerFile:&lt;/P&gt;
&lt;PRE&gt;COPY hotswap-agent.properties $TOMCAT_DIR/webapps/alfresco/WEB-INF/classes&lt;/PRE&gt;
&lt;P&gt;After you made the changes and restarted the containers, you need to start remote debug. You should be able to put breakpoints.&lt;/P&gt;
&lt;P&gt;For remote debugging follow the instructions given here:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/debugging/debug-intellij.md" target="_blank" rel="nofollow noopener noreferrer"&gt;Intellij: https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/debugging/debug-intellij.md&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Eclipse: &lt;A href="https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/debugging/debug-eclipse.md" target="_blank" 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;P&gt;See this post, it was similar to your case:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/sdk-4-hotswap-agent-not-working/m-p/110713" target="_blank" rel="noopener nofollow noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/sdk-4-hotswap-agent-not-working/m-p/110713&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2019 19:24:27 GMT</pubDate>
    <dc:creator>abhinavmishra14</dc:creator>
    <dc:date>2019-09-23T19:24:27Z</dc:date>
    <item>
      <title>SDK4 Integration Tests extending AbstractAlfrescoIT won't stop at breakpoints?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sdk4-integration-tests-extending-abstractalfrescoit-won-t-stop/m-p/86940#M26238</link>
      <description>&lt;P&gt;I have used the ./run.sh script to spin up an instance of ACS with docker. I want to step through the code using the IDE Intellij. This works with the HelloWorldWebScriptIT which doesn't extend any classes. However, DemoComponentIT and CustomContentModelIT which extend AbstractAlfrescoIT seem to pass the tests without stopping at the breakpoints. Am I missing any configuration?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2019 23:40:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sdk4-integration-tests-extending-abstractalfrescoit-won-t-stop/m-p/86940#M26238</guid>
      <dc:creator>phivuu-2</dc:creator>
      <dc:date>2019-09-22T23:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: SDK4 Integration Tests extending AbstractAlfrescoIT won't stop at breakpoints?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sdk4-integration-tests-extending-abstractalfrescoit-won-t-stop/m-p/86941#M26239</link>
      <description>&lt;P&gt;Can you cross check the DockerFile in your platform-docker Artifact. See if hotswap-agent.properties is being copied to the containers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"COPY hotswap-agent.properties $TOMCAT_DIR/webapps/share/WEB-INF/classes"&lt;/P&gt;
&lt;P&gt;if you can't see above instruction in the DockerFile, then add it and try again.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 12:49:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sdk4-integration-tests-extending-abstractalfrescoit-won-t-stop/m-p/86941#M26239</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-09-23T12:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: SDK4 Integration Tests extending AbstractAlfrescoIT won't stop at breakpoints?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sdk4-integration-tests-extending-abstractalfrescoit-won-t-stop/m-p/86942#M26240</link>
      <description>&lt;P&gt;I currently do not have it in DockerFile. I would like the capabilities of hotswapagent and tried to follow the guide&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/hot-reloading/hotswap-agent.md" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/hot-reloading/hotswap-agent.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Configuring HotSwapAgent in the project (Java &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, I got stuck at step 2 on this command:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cp linux_amd64_compiler2/product/libjvm.so /usr/java/default/jre/lib/amd64/server&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;cp: cannot create regular file ‘/usr/java/default/jre/lib/amd64/server’: No such file or directory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DockerFile contains:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;# Hot reload - Hotswap agent&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;COPY &lt;/SPAN&gt;hotswap-agent.properties $&lt;SPAN&gt;TOMCAT_DIR&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;webapps&lt;SPAN&gt;/&lt;/SPAN&gt;alfresco&lt;SPAN&gt;/&lt;/SPAN&gt;WEB-INF&lt;SPAN&gt;/&lt;/SPAN&gt;classes&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Download and Install the more capable DCEVM, which will allow more changes to classes, such as new methods&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;RUN &lt;/SPAN&gt;mkdir &lt;SPAN&gt;-&lt;/SPAN&gt;p dcevm \&lt;BR /&gt;    &lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;curl &lt;SPAN&gt;-&lt;/SPAN&gt;L &lt;SPAN&gt;-&lt;/SPAN&gt;o dcevm&lt;SPAN&gt;/&lt;/SPAN&gt;DCEVM-8u181-installer.jar &lt;SPAN&gt;"https://github.com/dcevm/dcevm/releases/download/light-jdk8u181%2B2/DCEVM-8u181-installer-build2.jar" &lt;/SPAN&gt;\&lt;BR /&gt;    &lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;cd dcevm \&lt;BR /&gt;    &lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;jar &lt;SPAN&gt;-&lt;/SPAN&gt;xvf DCEVM-8u181-installer.jar \&lt;BR /&gt;    &lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;cp linux_amd64_compiler2&lt;SPAN&gt;/&lt;/SPAN&gt;product&lt;SPAN&gt;/&lt;/SPAN&gt;libjvm.so &lt;SPAN&gt;/&lt;/SPAN&gt;usr&lt;SPAN&gt;/&lt;/SPAN&gt;java&lt;SPAN&gt;/&lt;/SPAN&gt;default&lt;SPAN&gt;/&lt;/SPAN&gt;jre&lt;SPAN&gt;/&lt;/SPAN&gt;lib&lt;SPAN&gt;/&lt;/SPAN&gt;amd64&lt;SPAN&gt;/&lt;/SPAN&gt;server&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Download HotSwap Agent - it is used in the Docker Compose file.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;RUN &lt;/SPAN&gt;cd &lt;SPAN&gt;/&lt;/SPAN&gt;usr&lt;SPAN&gt;/&lt;/SPAN&gt;local&lt;SPAN&gt;/&lt;/SPAN&gt;tomcat \&lt;BR /&gt;    &lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;mkdir &lt;SPAN&gt;-&lt;/SPAN&gt;p hotswap-agent \&lt;BR /&gt;    &lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;curl &lt;SPAN&gt;-&lt;/SPAN&gt;L &lt;SPAN&gt;-&lt;/SPAN&gt;o lib&lt;SPAN&gt;/&lt;/SPAN&gt;hotswap-agent-1&lt;SPAN&gt;.3.0&lt;/SPAN&gt;.jar &lt;SPAN&gt;"https://github.com/HotswapProjects/HotswapAgent/releases/download/RELEASE-1.3.0/hotswap-agent-1.3.0.jar"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;docker-compose.yml contains:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;alfresco-trap-acs&lt;/SPAN&gt;:&lt;BR /&gt;  &lt;SPAN&gt;image&lt;/SPAN&gt;: alfresco-content-services-alfresco-trap:development&lt;BR /&gt;  &lt;SPAN&gt;build&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;dockerfile&lt;/SPAN&gt;: ./Dockerfile&lt;BR /&gt;    &lt;SPAN&gt;context&lt;/SPAN&gt;: ../../../alfresco-trap-platform-docker/target&lt;BR /&gt;  &lt;SPAN&gt;environment&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;CATALINA_OPTS&lt;/SPAN&gt;: &lt;SPAN&gt;"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8888 -javaagent:/usr/local/tomcat/lib/hotswap-agent-1.3.0.jar"&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;command&lt;/SPAN&gt;: [&lt;SPAN&gt;"catalina.sh"&lt;/SPAN&gt;, &lt;SPAN&gt;"run"&lt;/SPAN&gt;]&lt;BR /&gt;  &lt;SPAN&gt;ports&lt;/SPAN&gt;:&lt;BR /&gt;    - &lt;SPAN&gt;"${acs.port}:8080"&lt;BR /&gt;&lt;/SPAN&gt;    - &lt;SPAN&gt;"${acs.debug.port}:8888"&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;volumes&lt;/SPAN&gt;:&lt;BR /&gt;    - alfresco-trap-acs-volume:/usr/local/tomcat/alf_data&lt;BR /&gt;    - ../../../alfresco-trap-platform/target/classes:/usr/local/tomcat/hotswap-agent/alfresco-trap-platform/target/classes&lt;BR /&gt;    - ../../../alfresco-trap-integration-tests/target/test-classes:/usr/local/tomcat/hotswap-agent/alfresco-trap-integration-tests/target/test-classes&lt;BR /&gt;  &lt;SPAN&gt;depends_on&lt;/SPAN&gt;:&lt;BR /&gt;    - alfresco-trap-postgres&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Sep 2019 16:21:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sdk4-integration-tests-extending-abstractalfrescoit-won-t-stop/m-p/86942#M26240</guid>
      <dc:creator>phivuu-2</dc:creator>
      <dc:date>2019-09-23T16:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: SDK4 Integration Tests extending AbstractAlfrescoIT won't stop at breakpoints?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sdk4-integration-tests-extending-abstractalfrescoit-won-t-stop/m-p/86943#M26241</link>
      <description>&lt;P&gt;If you have generated your project structure using SDK4, then all the required DockerFiles would already be available.&lt;/P&gt;
&lt;P&gt;All you need to do is, to add the below given line in your platform-docker project's DockerFile:&lt;/P&gt;
&lt;PRE&gt;COPY hotswap-agent.properties $TOMCAT_DIR/webapps/alfresco/WEB-INF/classes&lt;/PRE&gt;
&lt;P&gt;After you made the changes and restarted the containers, you need to start remote debug. You should be able to put breakpoints.&lt;/P&gt;
&lt;P&gt;For remote debugging follow the instructions given here:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/debugging/debug-intellij.md" target="_blank" rel="nofollow noopener noreferrer"&gt;Intellij: https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/debugging/debug-intellij.md&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Eclipse: &lt;A href="https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/debugging/debug-eclipse.md" target="_blank" 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;P&gt;See this post, it was similar to your case:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/sdk-4-hotswap-agent-not-working/m-p/110713" target="_blank" rel="noopener nofollow noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/sdk-4-hotswap-agent-not-working/m-p/110713&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 19:24:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sdk4-integration-tests-extending-abstractalfrescoit-won-t-stop/m-p/86943#M26241</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-09-23T19:24:27Z</dc:date>
    </item>
  </channel>
</rss>

