Alfresco Zimlet – updates and fixes

I’ve made an updated version of open-sourced Alfresco Zimlet.

New features and fixes:

  • SSO ticket based authentication support (‘alfresco_ticket’ and ‘alfresco_url’ cookies)
  • localization support (english and hungarian properties included)
  • works with Alfresco 4.x and Zimbra 7.x
  • bugfixes…

See README file for installation…

Alfresco side webscript installation steps:

1. Import web script package (ZIP) at Alfresco Explorer:
1-import_web_script_package

2. Update web scripts:
2-update_web_scripts

3. Verify installation with a simple request (update URL and PASSWORD with yours):

$curl --user "admin":"password" http://192.168.252.135:8080/alfresco/service/easy/tree
{"children": [{"title": "User managed definitions", "isDocument": false, "path": "\/Company Home\/Data Dictionary", "label": "Data Dictionary"}, {"title": "The guest root space", "isDocument": false, "path": "\/Company Home\/Guest Home", "label": "Guest Home"}, {"title": "Imap Attachments", "isDocument": false, "path": "\/Company Home\/Imap Attachments", "label": "Imap Attachments"}, {"title": "Site Collaboration Spaces", "isDocument": false, "path": "\/Company Home\/Sites", "label": "Sites"}, {"title": "User Homes", "isDocument": false, "path": "\/Company Home\/User Homes", "label": "User Homes"}]}

Download Zimlet: org.alfresco.zimbra.zip


Alfresco Zimlet provides integration between two leading open source solutions, Alfresco Enterprise Content Management and Zimbra Collaboration Suite.

It was built on top of open technologies such as Alfresco Webscript, Zimbra Zimlet and YUI library.

It allows the end user to save incoming email attachments to the Alfresco ECM Server. The user is provided with the ability to select multiple Alfresco documents and attach them to outgoing emails. Links are provided for downloading Alfresco Documents when composing emails from within Zimbra.

Alfresco Documents and features are surfaced as shortcut links within the Zimbra application. Widgets are provided for ease-of-use in Alfresco space selection and repository navigation. A simple installation and setup is provided.

Original sources: http://code.google.com/p/alfresco-zimlet/
Original developer: Yong Qu

Discussion Thread on Zimbra Community Forum: http://www.zimbra.com/forums/zimlets/21315-alfresco-zimlet-beta.html

46 thoughts on “Alfresco Zimlet – updates and fixes”

  1. Dear Andreas,

    Please follow step-by-step installation procedure (there is no AMP file):

    0. See two package files in “installer” folder:
    – org_alfresco_zimbra.zip: Alfresco Zimlet for Zimbra
    – webscripts_extensions.zip: WebScripts for Alfresco

    1. Alfresco: navigate to “Company Home/Data Dictionary/Web Scripts Extensions”
    folder and Import “webscripts_extensions.zip” file

    2. Alfresco: restart Alfresco server or refresh web scripts:
    http://localhost:8080/alfresco/service/

    3. Zimbra: enable proxy with command:
    zmprov mc default zimbraProxyAllowedDomains “*”

    4. Zimbra: import “org_alfresco_zimbra.zip” file as a new Zimlet at
    Zimbra administration interface

    5. Setup Alfresco Zimlet by double-click on icon:
    URL: http://localhost:8080
    Username: admin
    Password: *

  2. Many tanks for your fast reply!

    To first i forget the amp file.
    the second using the url http://ip:8080/alfresco and not http://ip:8080/share

    in /alfrasco i now can import the webskript.
    The zip file are now unpacked and i see an build.sh and an folder org with some subdirectories, a readmefile and the original zip file.

    I Restart the server.
    Then I look at /alfreso/service/index an search for an zimbra entry. But there is nothing. Is that right? I think i must see an zimbra entry or not?

    Regards Andreas

  3. Dear Andreas,

    Please make sure how your imported WebScript package (installer/webscript_extensions.zip) works, please send output of following service lists:
    – YOUR-ALFRESCO-SERVER-URL/alfresco/service/index/package/org/alfresco/fastpublish
    – YOUR-ALFRESCO-SERVER-URL/alfresco/service/index/package/org/alfresco/util
    – YOUR-ALFRESCO-SERVER-URL/alfresco/service/index/package/org/alfresco/util
    – YOUR-ALFRESCO-SERVER-URL/alfresco/service/index/package/org/alfresco/zimbra

    Example:

    Index of Web Scripts Package ‘/org/alfresco/zimbra’
    Community v4.0.0 (7) schema 5,025
    3 Web Scripts

    Back to Web Scripts Home

    Up to package /org/alfresco

    About Alfresco
    GET /alfresco/service/zimbra/about.json
    GET /alfresco/service/zimbra/about.html
    Description: Provides basic information about installed alfresco instance
    Authentication: user
    Transaction: required
    Format Style: extension
    Default Format: json
    Id: org/alfresco/zimbra/aboutAlfresco.get
    Description: workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts/org/alfresco/zimbra/aboutAlfresco.get.desc.xml

    Zimbra Attachment Upload
    POST /alfresco/service/zimbra/upload.json
    Description: Upload Zimbra Email Attachment to Alfresco
    Authentication: user
    Transaction: required
    Format Style: extension
    Default Format: json
    Id: org/alfresco/zimbra/attachmentUpload.post
    Description: workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts/org/alfresco/zimbra/attachmentUpload.post.desc.xml

    Hello World
    GET /alfresco/service/zimbra/helloworld.json
    GET /alfresco/service/zimbra/helloworld.html
    Description: Hello World from Alfresco
    Authentication: user
    Transaction: required
    Format Style: extension
    Default Format: json
    Id: org/alfresco/zimbra/helloWorld.get
    Description: workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts/org/alfresco/zimbra/helloWorld.get.desc.xml

  4. Hi Louise,

    wow very fast replay thanks a lot! I can do something good for you too?

    ahh.. The Web Script /alfresco/service/index/package/org/alfresco/util has responded with a status of 404 – Not Found.

    ==================================================

    Alfresco Index of Web Scripts Package ‘/org/alfresco/fastpublish’
    Community v4.2.0 (4576) schema 6.022
    3 Web Scripts

    Back to Web Scripts Home

    Up to package /org/alfresco

    Alfresco Easy Navigation Service
    GET /alfresco/service/easy/nav
    Description: Provides an autocomplete based dropdown list for easy navigation
    Authentication: user
    Transaction: required
    Format Style: any
    Default Format: json
    Id: org/alfresco/fastpublish/AlfrescoEasyNavigation.get
    Description: workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts/org/alfresco/fastpublish/AlfrescoEasyNavigation.get.desc.xml

    Alfresco Easy Tree View
    GET /alfresco/service/easy/tree
    Description: Provide a simple tree view of alfresco repository
    Authentication: user
    Transaction: required
    Format Style: any
    Default Format: html
    Id: org/alfresco/fastpublish/AlfrescoEasyTreeView.get
    Description: workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts/org/alfresco/fastpublish/AlfrescoEasyTreeView.get.desc.xml

    Alfresco ShortUrl Service
    GET /alfresco/service/d/{dbid}
    Description: Provides a short link for content download
    Authentication: user
    Transaction: required
    Format Style: any
    Default Format: html
    Id: org/alfresco/fastpublish/ShortUrl.get
    Description: workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts/org/alfresco/fastpublish/ShortUrl.get.desc.xml

    =================================================

    Alfresco Index of Web Scripts Package ‘/org/alfresco/zimbra’
    Community v4.2.0 (4576) schema 6.022
    3 Web Scripts

    Back to Web Scripts Home

    Up to package /org/alfresco

    About Alfresco
    GET /alfresco/service/zimbra/about.json
    GET /alfresco/service/zimbra/about.html
    Description: Provides basic information about installed alfresco instance
    Authentication: user
    Transaction: required
    Format Style: extension
    Default Format: json
    Id: org/alfresco/zimbra/aboutAlfresco.get
    Description: workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts/org/alfresco/zimbra/aboutAlfresco.get.desc.xml

    Zimbra Attachment Upload
    POST /alfresco/service/zimbra/upload.json
    Description: Upload Zimbra Email Attachment to Alfresco
    Authentication: user
    Transaction: required
    Format Style: extension
    Default Format: json
    Id: org/alfresco/zimbra/attachmentUpload.post
    Description: workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts/org/alfresco/zimbra/attachmentUpload.post.desc.xml

    Hello World
    GET /alfresco/service/zimbra/helloworld.json
    GET /alfresco/service/zimbra/helloworld.html
    Description: Hello World from Alfresco
    Authentication: user
    Transaction: required
    Format Style: extension
    Default Format: json
    Id: org/alfresco/zimbra/helloWorld.get
    Description: workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts/org/alfresco/zimbra/helloWorld.get.desc.xml

  5. done, but not work.

    when i look with a smb client in the folder i see the folder: fastpublish,test,util,zimbra and in util i see the file alfcommon.js

    I use Centos 6.4 Server and Alfresco language German.
    It is possible the path to util is not right?

  6. I use Alfresco 4.2c

    Output of service:

    Alfresco Web Scripts Home
    Community v4.2.0 (4576) schema 6.022
    493 Web Scripts

    Online documentation.

    Index
    Browse ‘Admin’ Web Scripts
    Browse ‘Audit’ Web Scripts
    Browse ‘Authentication’ Web Scripts
    Browse ‘Bulk Filesystem Import’ Web Scripts
    Browse ‘CMIS’ Web Scripts
    Browse ‘Caching’ Web Scripts
    Browse ‘Dojo’ Web Scripts
    Browse ‘IMAP’ Web Scripts
    Browse ‘ModuleDeployment’ Web Scripts
    Browse ‘SOLR’ Web Scripts
    Browse ‘SurfBug’ Web Scripts
    Browse ‘Tagging’ Web Scripts
    Browse ‘WCM’ Web Scripts
    Browse ‘googledocs’ Web Scripts

    Browse all Web Scripts
    Browse by Web Script URI
    Browse by Web Script Package
    Browse by Web Script Lifecycle

    Maintenance
    Alfresco Javascript Debugger
    Module Deployment

  7. I check all permissions and path and try another path to alfcommon.js but no positive result.

    When i look in the util folder i see only one file “alfcommon.js” must in the folder not a files like aboutAlfresco.desc.xml etc. to be see ?

    can the util folder not right load wenn this basic files missing?

    The Web Script /alfresco/service/index/package/org/alfresco/util has responded with a status of 404 – Not Found.

    404 Description: Requested resource is not available.

    Message: 02200495 Web Script Package ‘/org/alfresco/util’ not found

    Exception: org.springframework.extensions.webscripts.WebScriptException – 02200495 Web Script Package ‘/org/alfresco/util’ not found

    org.springframework.extensions.webscripts.bean.IndexPackage.executeImpl(IndexPackage.java:60)
    org.springframework.extensions.webscripts.DeclarativeWebScript.executeImpl(DeclarativeWebScript.java:235)
    org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
    org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:433)
    org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
    org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
    org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
    org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:349)
    org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
    org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
    org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    java.lang.Thread.run(Thread.java:722)

    Server: Community v4.2.0 (4576) schema 6.022
    Time: 20.03.2013 12:32:33

    Diagnostics: Inspect Web Script (org/springframework/extensions/webscripts/indexpackage.get)

  8. I create now an description an become this result.

    Alfresco Index of Web Scripts Package ‘/org/alfresco/util’
    Community v4.2.0 (4576) schema 6.022
    2 Web Scripts

    Back to Web Scripts Home

    Up to package /org/alfresco

    About Alfresco
    GET /alfresco/service/util/about.json
    GET /alfresco/service/util/about.html
    Description: Provides basic information about installed alfresco instance
    Authentication: user
    Transaction: required
    Format Style: extension
    Default Format: json
    Id: org/alfresco/util/aboutAlfresco.get
    Description: workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts/org/alfresco/util/aboutAlfresco.get.desc.xml

    Hello World
    GET /alfresco/service/util/helloworld.json
    GET /alfresco/service/util/helloworld.html
    Description: Hello World from Alfresco
    Authentication: user
    Transaction: required
    Format Style: extension
    Default Format: json
    Id: org/alfresco/util/helloWorld.get
    Description: workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts/org/alfresco/util/helloWorld.get.desc.xml

    but also does not fix the error.
    I think it’s a problem of the path.

    Caused by: org.alfresco.scripts.ScriptException: 02206739 Failed to execute script ‘/org/alfresco/zimbra/attachmentUpload.post.js (in repository store workspace://SpacesStore/Firmen-Home/dictionary/Web Skript Erweiterungen)’: 02206738 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/org/alfresco/util/alfcommon.js
    at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:202)
    at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
    at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)
    at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
    at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
    at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
    … 50 more
    Caused by: org.alfresco.error.AlfrescoRuntimeException: 02206738 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/org/alfresco/util/alfcommon.js

  9. Hi,

    okey i forget the util folder. I have checked some ways.
    Import Source via classpath and workspace. And a fresh Install on a fresh installed Windows 7 Computer. No luck with this try.

    Which Version of Alfresco you are use?

  10. I have installed on your examples, but alfresco zimlet of zimbra when pressing on the “about” is written
    Alfresco server: xxx.xxx.xxx.xxx:8181
    Server version: undefined
    Server edition: undefined
    User Id: undefined
    User name: undefined
    Please help me! I don’t see this problem on the forums.

  11. Hi,
    is use Release 7.2.3_GA_2872.RHEL5_64_20130304144837
    Have you try it with flush the zimbra cache or a full restart the zimbra service?

    e.g. zmprov flushcache zimlet
    or zmcontrol restart

    Regards Andreas

  12. I did as you advised, but it did not help.((((
    Maybe the problem is server alfresco?
    perhaps the zimlet can not connect to alfresco web script?
    Tell me how to check the web script zimbra zimlet of the alfresco.

  13. hmh.. run to first tcpdump to follow up the network traffic to look of a correct network connection at both sides. Run tcpdump on alfresco and zimbra server. So that you can eliminate a potantial network, fireall, selinux etc. failure. have you check this?

  14. Web Script Status 500 – Internal Error

    The Web Script /alfresco/service/zimbra/helloworld.html has responded with a status of 500 – Internal Error.

    500 Description: An error inside the HTTP server which prevented it from fulfilling the request.

    Message: 04171413 Wrapped Exception (with status template): 04172355 Failed to execute script ‘/zimlets/org/alfresco/zimbra/helloWorld.get.js (in repository store workspace://SpacesStore/Домашняя страница компании/Словарь данных/Расширения веб-сценариев)’: 04172354 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/zimlets/org/alfresco/util/json.js

    Exception: org.alfresco.error.AlfrescoRuntimeException – 04172354 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/zimlets/org/alfresco/util/json.js

    org.alfresco.repo.jscript.RhinoScriptProcessor.loadScriptResource(RhinoScriptProcessor.java:389)
    org.alfresco.scripts.ScriptResourceHelper.recurseScriptImports(ScriptResourceHelper.java:144)
    org.alfresco.scripts.ScriptResourceHelper.resolveScriptImports(ScriptResourceHelper.java:60)
    org.alfresco.repo.jscript.RhinoScriptProcessor.resolveScriptImports(RhinoScriptProcessor.java:305)
    org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:167)
    org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
    org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)
    org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
    org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
    org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
    org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:433)
    org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
    org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
    org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
    org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:349)
    org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
    org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
    org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1771)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    java.lang.Thread.run(Thread.java:722)

    Exception: org.alfresco.scripts.ScriptException – 04172355 Failed to execute script ‘/zimlets/org/alfresco/zimbra/helloWorld.get.js (in repository store workspace://SpacesStore/Домашняя страница компании/Словарь данных/Расширения веб-сценариев)’: 04172354 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/zimlets/org/alfresco/util/json.js

    org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:202)

    Exception: org.springframework.extensions.webscripts.WebScriptException – 04171413 Wrapped Exception (with status template): 04172355 Failed to execute script ‘/zimlets/org/alfresco/zimbra/helloWorld.get.js (in repository store workspace://SpacesStore/Домашняя страница компании/Словарь данных/Расширения веб-сценариев)’: 04172354 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/zimlets/org/alfresco/util/json.js

    org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)

    Server: Community v4.2.0 (4576) schema 6 022
    Time: 17.05.2013 10:23:47

  15. Look up. I think it is my problem.
    zimbra and alfresco working on individual, but zimbra dont want to connect to alfresco through the zimlet! There i can looks a log file?

  16. Andrew: just move “/Company Home/Data Dictionary/Web Scripts Extensions/zimlets/org” folder into “/Company Home/Data Dictionary/Web Scripts Extensions/” (without “zimlet” prefix)

  17. 1) I move without zimlet prefix
    2) Delete string in helloWord.get.js contains url link to json.js
    3) Correct url link (delete folder “zimlets”) in all *.js files.”
    4) refresh web scripts

    But this dont help me!

    The Web Script /alfresco/service/zimbra/helloworld.html has responded with a status of 500 – Internal Error.

    500 Description: An error inside the HTTP server which prevented it from fulfilling the request.

    Message: 04180016 Wrapped Exception (with status template): 04182889 Failed to execute script ‘/org/alfresco/zimbra/helloWorld.get.js (in repository store workspace://SpacesStore/Домашняя страница компании/Словарь данных/Расширения веб-сценариев)’: 04182888 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/org/alfresco/util/alfcommon.js

    Exception: org.alfresco.error.AlfrescoRuntimeException – 04182888 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/org/alfresco/util/alfcommon.js

    org.alfresco.repo.jscript.RhinoScriptProcessor.loadScriptResource(RhinoScriptProcessor.java:389)
    org.alfresco.scripts.ScriptResourceHelper.recurseScriptImports(ScriptResourceHelper.java:144)
    org.alfresco.scripts.ScriptResourceHelper.resolveScriptImports(ScriptResourceHelper.java:60)
    org.alfresco.repo.jscript.RhinoScriptProcessor.resolveScriptImports(RhinoScriptProcessor.java:305)
    org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:167)
    org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
    org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)
    org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
    org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
    org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
    org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:433)
    org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
    org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
    org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
    org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:349)
    org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
    org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
    org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1771)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    java.lang.Thread.run(Thread.java:722)

    Exception: org.alfresco.scripts.ScriptException – 04182889 Failed to execute script ‘/org/alfresco/zimbra/helloWorld.get.js (in repository store workspace://SpacesStore/Домашняя страница компании/Словарь данных/Расширения веб-сценариев)’: 04182888 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/org/alfresco/util/alfcommon.js

    org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:202)

    Exception: org.springframework.extensions.webscripts.WebScriptException – 04180016 Wrapped Exception (with status template): 04182889 Failed to execute script ‘/org/alfresco/zimbra/helloWorld.get.js (in repository store workspace://SpacesStore/Домашняя страница компании/Словарь данных/Расширения веб-сценариев)’: 04182888 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/org/alfresco/util/alfcommon.js

    org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)

    Server: Community v4.2.0 (4576) schema 6 022
    Time: 18.05.2013 17:21:58

    meybe problem in java?

  18. The Web Script /alfresco/service/zimbra/upload.json has responded with a status of 405 – Method Not Allowed.

    405 Description: The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

    Message: 04180018 Script url /zimbra/upload.json does not support the method GET

    Exception: org.springframework.extensions.webscripts.WebScriptException – 04180018 Script url /zimbra/upload.json does not support the method GET

    org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:179)
    org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1771)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    java.lang.Thread.run(Thread.java:722)

    Server: Community v4.2.0 (4576) schema 6 022
    Time: 18.05.2013 17:38:28

    There can I download a working version of org_alfresco_zimbra.zip and alfzimlet_webscripts.zip? My alfresco version 4.2.c and Zimbra 7.2.3 GA 2872

  19. LouiSe! You are written: So, as you requested, i’ve made a bugfixed/updated (works with Zimbra 7.x, Alfresco 4.x) version of Alfresco Zimlet – just download and install. Can you get url link to this updated files?

  20. I have the same version of alfresco, Windows. The same zimbra version, I’ve the same problem. Are you resolve the mistery.

    josemi

  21. I have windows 2008 server R2 standard with alfresco 4.2c. Alfresco is running like a service.
    I have instaled in a red hat linux Zimbra 7.2.3.

    I installed the zimlet org.alfresco.zimbra.zip in zimbra host. I only can connect but not other action like server name….

    I Import web script package too in alfresco.

    and those are my resultssss :-((((

    17:39:59,691 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript – redirecting to status template error: 04280012 Wrapped Exception (with status template): 04280691 Failed to execute script ‘/zimlets/org/alfresco/fastpublish/AlfrescoEasyTreeView.get.js (in repository store workspace://SpacesStore/Espacio de empresa/Diccionario de datos/Extensiones de Web Scripts)’: 04280690 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/zimlets/org/alfresco/util/json.js
    org.springframework.extensions.webscripts.WebScriptException: 04280012 Wrapped Exception (with status template): 04280691 Failed to execute script ‘/zimlets/org/alfresco/fastpublish/AlfrescoEasyTreeView.get.js (in repository store workspace://SpacesStore/Espacio de empresa/Diccionario de datos/Extensiones de Web Scripts)’: 04280690 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/zimlets/org/alfresco/util/json.js
    at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)
    at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
    at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:433)
    at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
    at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
    at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
    at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:349)
    at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
    at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
    at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: org.alfresco.scripts.ScriptException: 04280691 Failed to execute script ‘/zimlets/org/alfresco/fastpublish/AlfrescoEasyTreeView.get.js (in repository store workspace://SpacesStore/Espacio de empresa/Diccionario de datos/Extensiones de Web Scripts)’: 04280690 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/zimlets/org/alfresco/util/json.js
    at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:202)
    at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
    at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)
    at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
    at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
    at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
    … 28 more
    Caused by: org.alfresco.error.AlfrescoRuntimeException: 04280690 Unable to load included script repository resource: /Company Home/Data Dictionary/Web Scripts Extensions/zimlets/org/alfresco/util/json.js
    at org.alfresco.repo.jscript.RhinoScriptProcessor.loadScriptResource(RhinoScriptProcessor.java:389)
    at org.alfresco.scripts.ScriptResourceHelper.recurseScriptImports(ScriptResourceHelper.java:144)
    at org.alfresco.scripts.ScriptResourceHelper.resolveScriptImports(ScriptResourceHelper.java:60)
    at org.alfresco.repo.jscript.RhinoScriptProcessor.resolveScriptImports(RhinoScriptProcessor.java:305)
    at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:167)
    … 33 more

  22. Hi,
    I’m trying to integrate Alfresco (4.0.2 community, Linux) and Zimbra Community (7.2.0 community, Linux). I have no luck.
    It seems that Zimbra does not try to contact the Alfresco server (no traces in tcpdump).
    The installation is OK, no errors on the two servers.
    How can I test/debug the components?
    Peter

  23. I have followed the instructions, but I am still having a problem

    I am using Zimbra 8.0.4 with Alfresco 4.2 and when I try to connect I get the following error

    “NetworkError: 404 Not Found – https://ZIMBRASERVER/service/proxy?target=http%3A%2F%2FALFRESCOSERVER%3A8080%2Falfresco%2Fservice%2Fapi%2Flogin%2Fticket%2Fnull&u=admin&pw=test&auth=basic
    proxy?…h=basic

    I have changed a bit in the connection string because I saw in Alfresco documentation that now they use u instead of user and pw instead of pass in the REST API

    thanks for your help

  24. Hi Louise,
    I’ve found two situation not normal for what I see:

    1) in one ( of 3 ) installation of alfresco, the paths where all traslated in italian ( so the alfresco plugin can’t found out his libreries) – corrected, of course, but is normal that the path can be “traslated”? If yes may this be usefull for you!

    2) in all the 3 installation of alfresco, if I save an attachment, the mimetype is wrong. I’ve tried some debug and found that the guessMimeType function return the default value ( “application/octet-stream; charset=ISO-8859-1” ), even forced set the filename test.zip/.pdf/.jpg, tried to pass empty string ( so the function try to guess from the binary, from their wiki) or eve using the mimetype from the upload post… Same mimetype.

    I don’t know if I’m the only unlucky guy here..

    Thanks for the hard job writing thi whole BIG usefull stuff!

    Banterle Nicola

  25. Hi,

    I got always this exception “java.lang.IllegalArgumentException – Path elements list is empty” when execution the alfresco web script extension.

    Any help please.

  26. I have installed alfresco zimlet but when pressing on the “about” zimbra write
    Alfresco server: xxx.xxx.xxx.xxx:8080
    Server version: undefined
    Server edition: undefined
    User Id: undefined
    User name: undefined
    Please help me!

Leave a Reply

Your email address will not be published. Required fields are marked *