java script console

cancel
Showing results for 
Search instead for 
Did you mean: 
brijeshnk
Established Member

java script console

Jump to solution

guys , i have installed  , javascript console using below command .

java -jar alfresco-mmt.jar install javascript-console-share-<version>.amp /path/to/share.war

without any error , i could instal the amp file . when i tried to list the package using list option , i can see  its available as shown below  : -

-------------------------------------------------------

C:\Windows\system32>java -jar D:\alfresco-content-services\bin\alfresco-mmt.jar list D:\alfresco-content-services\tomcat\webapps\share.war
Module 'de.fme.alfresco.JavascriptConsole-share' installed in 'D:\alfresco-content-services\tomcat\webapps\share.war'
- Title: fme Javascript Console Share Extension
- Version: 0.7.2001201140
- Install Date: Mon Jan 20 14:18:48 GMT 2020
- Description: Adminstration console module to execute arbitrary javascript code.
----------------------------------------------------------------------------------------------------------

But I am not able to see option to access  java script console in left menu as mentioned in usage section . I cant see even this in 'module browser' menu . I have logged in Admin account .

Is there any further setting , i need to do make this module (amp) available in Alfresco  ? I am using following version of Alfresco

Enterprise - 5.2.4 (r726ca8d5-b18)

Any help is highly appreciated.

1 Solution

Accepted Solutions
afaust
Master

Re: java script console

Jump to solution

The addon comes as two AMPs, one for the Repository tier (alfresco.war) and one for the Share tier (share.war). You must install both for it to be fully usable.

It looks like you built the module yourself from the GitHub code base. This should not be necessary, since pre-built binaries are available from Maven Central. As far as I can see, the current master only contains 2-3 minor fixes beyond the released version on Maven Central.

After installing - as with any other AMP install - you must make sure to delete the unpacked tomcat/webapps/share and tomcat/webapps/alfresco folders, otherwise you will not see any update, as the AMPs are installed into the WAR, which will not be unpacked when those folders still exist. So in essence, your installation is incomplete.

View solution in original post

3 Replies
afaust
Master

Re: java script console

Jump to solution

The addon comes as two AMPs, one for the Repository tier (alfresco.war) and one for the Share tier (share.war). You must install both for it to be fully usable.

It looks like you built the module yourself from the GitHub code base. This should not be necessary, since pre-built binaries are available from Maven Central. As far as I can see, the current master only contains 2-3 minor fixes beyond the released version on Maven Central.

After installing - as with any other AMP install - you must make sure to delete the unpacked tomcat/webapps/share and tomcat/webapps/alfresco folders, otherwise you will not see any update, as the AMPs are installed into the WAR, which will not be unpacked when those folders still exist. So in essence, your installation is incomplete.

View solution in original post

brijeshnk
Established Member

Re: java script console

Jump to solution

I did the same step as mentioned , didnt use locally build version . I have used same version downloaded from Maven repo  .Works perfectly fine

thanks for this solution

Community Manager
Community Manager

Re: java script console

Jump to solution

Hi @brijeshnk,

Thanks for accepting the solution - helps everyone else who encounters a similar problem. 

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!