<?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: Add JavaScript Console in SDK 4.1 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86184#M26089</link>
    <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/87294"&gt;@Oberbrunner&lt;/A&gt;&amp;nbsp;What are you trying to say exactly? You are mentioning something that is not related to jsconsole here.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Aug 2021 16:27:40 GMT</pubDate>
    <dc:creator>abhinavmishra14</dc:creator>
    <dc:date>2021-08-31T16:27:40Z</dc:date>
    <item>
      <title>Add JavaScript Console in SDK 4.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86176#M26081</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I want to have javascript console in my Admin tools for my Alfresco SDK 4.1 project. I'm following all the steps as defined in below links.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/amps.md" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/amps.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I've added amp files to extensions folder in platfrom and share project. Then, added line in Dockerfile. Also, I've added dependencies in pom as well.&lt;/P&gt;&lt;P&gt;However, I'm getting below errors. Can anyone please help me here?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 5/8 : RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install $TOMCAT_DIR/amps_share $TOMCAT_DIR/webapps/share -directory -nobackup -force&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;---&amp;gt; Running in 6afd2d28c38d&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;java.io.FileNotFoundException: /usr/local/tomcat/amps_share/javascript-console-share-0.6.amp/module.properties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;at de.schlichtherle.truezip.file.TFileInputStream.newInputStream(TFileInputStream.java:108)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;at de.schlichtherle.truezip.file.TFileInputStream.&amp;lt;init&amp;gt;(TFileInputStream.java:81)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at org.alfresco.repo.module.tool.ModuleDetailsHelper.createModuleDetailsFromPropertyLocation(ModuleDetailsHelper.java:105)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at org.alfresco.repo.module.tool.ModuleManagementTool.installModule(ModuleManagementTool.java:229)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at org.alfresco.repo.module.tool.ModuleManagementTool.installModules(ModuleManagementTool.java:172)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at org.alfresco.repo.module.tool.ModuleManagementTool.installModules(ModuleManagementTool.java:155)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at org.alfresco.repo.module.tool.ModuleManagementTool.main(ModuleManagementTool.java:837)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Caused by: java.util.zip.ZipException: ZIP file spanning/splitting is not supported!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 14:39:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86176#M26081</guid>
      <dc:creator>jigir_shah</dc:creator>
      <dc:date>2020-06-09T14:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add JavaScript Console in SDK 4.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86177#M26082</link>
      <description>&lt;P&gt;Try adding the dependencies to *-platform-docker and *-share-docker project's pom files. You dont have to manually install amps.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&amp;lt;youProject&amp;gt;-platform-docker&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;dependency&amp;gt;
	&amp;lt;groupId&amp;gt;de.fmaul&amp;lt;/groupId&amp;gt;
	&amp;lt;artifactId&amp;gt;javascript-console-repo&amp;lt;/artifactId&amp;gt;
	&amp;lt;type&amp;gt;amp&amp;lt;/type&amp;gt;
	&amp;lt;version&amp;gt;0.6&amp;lt;/version&amp;gt;
	&amp;lt;exclusions&amp;gt;
		&amp;lt;exclusion&amp;gt;
			&amp;lt;groupId&amp;gt;*&amp;lt;/groupId&amp;gt;
			&amp;lt;artifactId&amp;gt;*&amp;lt;/artifactId&amp;gt;
		&amp;lt;/exclusion&amp;gt;
	&amp;lt;/exclusions&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/PRE&gt;

&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&amp;lt;youProject&amp;gt;-share-docker&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;dependency&amp;gt;
	&amp;lt;groupId&amp;gt;de.fmaul&amp;lt;/groupId&amp;gt;
	&amp;lt;artifactId&amp;gt;javascript-console-share&amp;lt;/artifactId&amp;gt;
	&amp;lt;type&amp;gt;amp&amp;lt;/type&amp;gt;
	&amp;lt;version&amp;gt;0.6&amp;lt;/version&amp;gt;
	&amp;lt;exclusions&amp;gt;
		&amp;lt;exclusion&amp;gt;
			&amp;lt;groupId&amp;gt;*&amp;lt;/groupId&amp;gt;
			&amp;lt;artifactId&amp;gt;*&amp;lt;/artifactId&amp;gt;
		&amp;lt;/exclusion&amp;gt;
	&amp;lt;/exclusions&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Please note that&amp;nbsp;javascript-console-xxx-0.6 version works until ACS6.x. The add-on is broken for ACS 7.x onwards. In order to use it, you can clone this git repo "&lt;A href="https://github.com/AFaust/ootbee-support-tools.git" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/AFaust/ootbee-support-tools.git&lt;/A&gt;"and checkout "feature/js-console-fork" branch, build the amps and deploy them manually.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can downlod the patched amps from &lt;A href="https://javaworld-abhinav.blogspot.com/#download-amps" target="_self" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/abhinavmishra14/js-console/releases/download/0.7-rc/javascript-console-repo-0.7.amp" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/abhinavmishra14/js-console/releases/download/0.7-rc/javascript-console-repo-0.7.amp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/abhinavmishra14/js-console/releases/download/0.7-rc/javascript-console-share-0.7.amp" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/abhinavmishra14/js-console/releases/download/0.7-rc/javascript-console-share-0.7.amp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 13:42:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86177#M26082</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-06-16T13:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add JavaScript Console in SDK 4.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86178#M26083</link>
      <description>&lt;P&gt;Hello, the indicated solution worked.&lt;BR /&gt;But if I try to add any amp in the production environment by customizing an image with Docker-Compose, I get the same error.&lt;/P&gt;&lt;P&gt;What is the solution for this error?&lt;/P&gt;&lt;P&gt;Unfortunately not all addons I can include natively via project.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 13:56:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86178#M26083</guid>
      <dc:creator>filipehtf</dc:creator>
      <dc:date>2021-08-20T13:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add JavaScript Console in SDK 4.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86179#M26084</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76712"&gt;@filipehtf&lt;/A&gt;&amp;nbsp;Can you please provide the steps you followed ? what do you mean by customizing an image in terms of above solution? and how you added the amp in prod?&lt;/P&gt;
&lt;P&gt;The above solution is for inclusion in sdk so when you are developing the amp would be included in your local dev images for acs and share.&lt;/P&gt;
&lt;P&gt;Also share the error details.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 14:41:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86179#M26084</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-08-20T14:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add JavaScript Console in SDK 4.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86180#M26085</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/74498"&gt;@abhinavmishra14&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76712"&gt;@filipehtf&lt;/A&gt;&amp;nbsp;Can you please provide the steps you followed ? what do you mean by customizing an image in terms of above solution? and how you added the amp in prod?&lt;/P&gt;&lt;P&gt;The above solution is for inclusion in sdk so when you are developing the amp would be included in your local dev images for acs and share.&lt;/P&gt;&lt;P&gt;Also share the error details.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Hi, thanks for replying. The error happens in Share and Repo image when I add any amp file such as Javascript-Console.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;FROM alfresco/alfresco-share:7.1.0-M1
ARG TOMCAT_DIR=/usr/local/tomcat

# Copy Dockerfile to avoid an error if no AMPs exist
COPY Dockerfile extensions/*.amp $TOMCAT_DIR/amps_share/
RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
    $TOMCAT_DIR/amps_share $TOMCAT_DIR/webapps/share -directory -nobackup -force&lt;/PRE&gt;&lt;P&gt;I get the error when applying the amps, saying that I couldn't find the files because it's not a folder.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 16:23:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86180#M26085</guid>
      <dc:creator>filipehtf</dc:creator>
      <dc:date>2021-08-20T16:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Add JavaScript Console in SDK 4.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86181#M26086</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76712"&gt;@filipehtf&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/74498"&gt;@abhinavmishra14&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76712"&gt;@filipehtf&lt;/A&gt;&amp;nbsp;Can you please provide the steps you followed ? what do you mean by customizing an image in terms of above solution? and how you added the amp in prod?&lt;/P&gt;
&lt;P&gt;The above solution is for inclusion in sdk so when you are developing the amp would be included in your local dev images for acs and share.&lt;/P&gt;
&lt;P&gt;Also share the error details.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Hi, thanks for replying. The error happens in Share and Repo image when I add any amp file such as Javascript-Console.&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE&gt;FROM alfresco/alfresco-share:7.1.0-M1
ARG TOMCAT_DIR=/usr/local/tomcat

# Copy Dockerfile to avoid an error if no AMPs exist
COPY Dockerfile extensions/*.amp $TOMCAT_DIR/amps_share/
RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
    $TOMCAT_DIR/amps_share $TOMCAT_DIR/webapps/share -directory -nobackup -force&lt;/PRE&gt;

&lt;P&gt;I get the error when applying the amps, saying that I couldn't find the files because it's not a folder.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is what i wanted to see. For repo layer you need to run the command by switching the user to root.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find a discussion here:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/alfresco-sdk-4-issue-with-alfresco-platform-version-6-1-1/m-p/294716#M17107" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/alfresco-sdk-4-issue-with-alfresco-platform-version-6-1-1/m-p/294716#M17107&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;For share layer your dockerfile commands looks correct, it should not be failing unless the amp is missing under extensions directory.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the full list of instructions here:&amp;nbsp;&lt;A href="https://github.com/Alfresco/acs-community-deployment/issues/131#issuecomment-691300550" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/acs-community-deployment/issues/131#issuecomment-691300550&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can also take a reference from this dockerfile:&amp;nbsp;&lt;A href="https://github.com/abhinavmishra14/change-acs-share-port-demo/blob/master/configs-to-override/share/Dockerfile" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/abhinavmishra14/change-acs-share-port-demo/blob/master/configs-to-override/share/Dockerfile&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 17:31:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86181#M26086</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-08-20T17:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add JavaScript Console in SDK 4.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86182#M26087</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/74498"&gt;@abhinavmishra14&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your attention, but what happens is that I had already tried with the USER root command, and got no results.&lt;/P&gt;&lt;P&gt;The Share layer, presents the same error, follows below.&lt;/P&gt;&lt;P&gt;The file is present, if it repairs it finds the name of the .amp file.&lt;/P&gt;&lt;P&gt;Seems to be some problem with decompression.&lt;/P&gt;&lt;P&gt;I've tried several amps, which if put as a dependency on the pom works.&lt;/P&gt;&lt;P&gt;The case is that in installations it doesn't justify a complete maven project, when you have the option to create the local image, even more when dealing with addons outside the Mavem repository.&lt;/P&gt;&lt;P&gt;I appreciate the help.&lt;/P&gt;&lt;PRE&gt;Step 8/21 : COPY Dockerfile extensions/*.amp $TOMCAT_DIR/amps_share/
 ---&amp;gt; 2a5fdb95f15b
Step 9/21 : COPY Dockerfile *.amp $TOMCAT_DIR/amps_share/
 ---&amp;gt; 87e3dfc16208
Step 10/21 : RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install     $TOMCAT_DIR/amps_share $TOMCAT_DIR/webapps/share -directory -nobackup -force
 ---&amp;gt; Running in 955ba9bebdb1
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
java.io.FileNotFoundException: /usr/local/tomcat/amps_share/alfresco-governance-services-community-share-3.5.a.amp/module.properties
        at de.schlichtherle.truezip.file.TFileInputStream.newInputStream(TFileInputStream.java:108)
        at de.schlichtherle.truezip.file.TFileInputStream.&amp;lt;init&amp;gt;(TFileInputStream.java:81)
        at org.alfresco.repo.module.tool.ModuleDetailsHelper.createModuleDetailsFromPropertyLocation(ModuleDetailsHelper.java:105)
        at org.alfresco.repo.module.tool.ModuleManagementTool.installModule(ModuleManagementTool.java:229)
        at org.alfresco.repo.module.tool.ModuleManagementTool.installModules(ModuleManagementTool.java:172)
        at org.alfresco.repo.module.tool.ModuleManagementTool.installModules(ModuleManagementTool.java:155)
        at org.alfresco.repo.module.tool.ModuleManagementTool.main(ModuleManagementTool.java:837)&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Aug 2021 20:35:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86182#M26087</guid>
      <dc:creator>filipehtf</dc:creator>
      <dc:date>2021-08-20T20:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add JavaScript Console in SDK 4.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86183#M26088</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76712"&gt;@filipehtf&lt;/A&gt;&amp;nbsp;are you getting the below error for governance services amp or every amp?&lt;/P&gt;
&lt;PRE&gt;java.io.FileNotFoundException: /usr/local/tomcat/amps_share/alfresco-governance-services-community-share-3.5.a.amp/module.properties
        at de.schlichtherle.truezip.file.TFileInputStream.newInputStream(TFileInputStream.java:108)&lt;/PRE&gt;
&lt;P&gt;Share you DockerFiles for repo and share, and docker-compose.yml, so we can look at it. The error seems strage.&lt;/P&gt;
&lt;P&gt;For reference you can have a look at this project which builds custom image with some add-on amps which is installed.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/abhinavmishra14/change-acs-share-port-demo" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/abhinavmishra14/change-acs-share-port-demo&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 18:59:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86183#M26088</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-08-21T18:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add JavaScript Console in SDK 4.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86184#M26089</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/87294"&gt;@Oberbrunner&lt;/A&gt;&amp;nbsp;What are you trying to say exactly? You are mentioning something that is not related to jsconsole here.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 16:27:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-javascript-console-in-sdk-4-1/m-p/86184#M26089</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-08-31T16:27:40Z</dc:date>
    </item>
  </channel>
</rss>

