Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: Add Flickr Zimlet

  1. #21
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    That's fine, it simply depends on when you originally installed; newer installs make use of the %USERPROFILE% environmental variable for the path, thus data is stored in your profile so we can have multiple desktop users on one machine down the road.

  2. #22
    mune72 is offline Active Member
    Join Date
    Jan 2009
    Posts
    34
    Rep Power
    6

    Default

    Quote Originally Posted by spacegoose View Post
    How do I deploy Zimlets in Zimbra Desktop?
    I cannot find the zmzimletctl command, and adding them (the .zip file) to the top level zimlets or webapps/zimlets directories, and restarting zimbra doesn't seem to work either.
    Don't ZIP the files

    create the dir
    _dir
    in
    <PATH_TO_ZIMBRA>/zimbra/zdesktop/jetty/webapps/service/zimlet/

    in _dir create a dir for your zimlet, says com_zimbra_hworld

    in the folder com_zimbra_hworld put your development files, the next time that zimbra desktop restart you will find your zimlet in the zimlets' drop menu.

    Fede

  3. #23
    bmw
    bmw is offline Special Member
    Join Date
    Dec 2008
    Location
    San Rafael, CA
    Posts
    113
    Rep Power
    6

    Exclamation

    I am getting the same message following the instructions as noted above.

    Code:
    brucew@ubuntu:~/zimbra/zdesktop/zimlets$ java -cp jetty/lib/log4j-1.2.8.jar:jetty/common/lib/commons-httpclient-3.0.jar:jetty/common/lib/mail.jar:jetty/common/lib/commons-logging.jar:jetty/common/lib/commons-codec-1.3.jar:jetty/common/lib/json.jar:jetty/common/lib/dom4j-1.5.jar:jetty/common/lib/zimbracommon.jar:jetty/webapps/service/WEB-INF/lib/zimbrastore.jar -Dzimbra.config=conf/localconfig.xml com.zimbra.cs.zimlet.ZimletUtil deploy zimlets/com_zimbra_collector.zip
    Exception in thread "main" java.lang.NoClassDefFoundError: com/zimbra/cs/zimlet/ZimletUtil
    Caused by: java.lang.ClassNotFoundException: com.zimbra.cs.zimlet.ZimletUtil
            at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
    Could not find the main class: com.zimbra.cs.zimlet.ZimletUtil. Program will exit.
    brucew@ubuntu:~/zimbra/zdesktop/zimlets$

  4. #24
    rrao is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    187
    Rep Power
    9

    Default

    Those steps are incorrect. You should be on <bla/bla/zdesktop> (and not bla/bla/zdesktop/zimlet) folder when you run your commands.

    The correct steps are listed here:
    Add Flickr Zimlet

    also here:
    http://wiki.zimbra.com/index.php?tit...vel.27_Zimlets
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #25
    zwvpadmin Guest

    Default Updated command with newer libraries??

    I'm trying to install the meebo zimlet, but obviously with the release of ZD 7.0 libraries and deps are updated. My exact install is "zdesktop_7_0_1_b10791_win32"

    Here is my attempt at updating the command above:

    Code:
    java -cp jetty\lib\log4j-1.2.16.jar;jetty\common\lib\commons-httpclient-3.1.jar;jetty\common\lib\mail.jar;jetty\common\lib \commons-logging.jar;jetty\common\lib\commons-codec-1.4.jar;jetty\common\lib\json.jar;jetty\common\lib\dom4j-1.5.2.jar;jetty\common\lib\zimbracommon.jar;jetty\we bapps\service\WEB-INF\lib\zimbrastore.jar -Dzimbra.config=conf\localconfig.xml com.zimbra.cs.zimlet.ZimletUtil deploy zimlets\com_zimbra_meebo.zip
    The resulting error is:

    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/col
    lect/ImmutableMap$Builder
            at com.zimbra.common.util.Log.<clinit>(Log.java:46)
            at com.zimbra.common.util.LogFactory.getLog(LogFactory.java:50)
            at com.zimbra.common.util.ZimbraLog.<clinit>(ZimbraLog.java:115)
            at com.zimbra.common.util.CliUtil.toolSetup(CliUtil.java:40)
            at com.zimbra.common.util.CliUtil.toolSetup(CliUtil.java:36)
            at com.zimbra.common.util.CliUtil.toolSetup(CliUtil.java:32)
            at com.zimbra.cs.zimlet.ZimletUtil.main(ZimletUtil.java:1891)
    Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Immutable
    Map$Builder
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 7 more
    Running command from "d:\Zimbra\Zimbra Desktop\" which is my chosen install location.

    Any ideas?
    Last edited by zwvpadmin; 05-05-2011 at 01:25 PM.

  6. #26
    zwvpadmin Guest

    Default Part two

    Googled the error and found a reference to google-collect-1.0-rc1.jar

    So i downloaded the google java src at:

    Downloads - gdata-java-client - Google Data Java Client Library - Google Project Hosting

    and extracted google-collect-1.0-rc1.jar to jetty\webapps\service\WEB-INF\lib\

    and now I get error:

    Code:
    [] WARN: local config file `conf\localconfig.xml' is not readable
    Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/bas
    e/Strings
            at com.zimbra.common.localconfig.LC.get(LC.java:43)
            at com.zimbra.common.localconfig.KnownKey.booleanValue(KnownKey.java:154
    )
            at com.zimbra.common.net.NetConfig.<init>(NetConfig.java:36)
            at com.zimbra.common.net.NetConfig.<clinit>(NetConfig.java:29)
            at com.zimbra.common.net.SocketFactories.<clinit>(SocketFactories.java:3
    2)
            at com.zimbra.common.util.CliUtil.toolSetup(CliUtil.java:41)
            at com.zimbra.common.util.CliUtil.toolSetup(CliUtil.java:36)
            at com.zimbra.common.util.CliUtil.toolSetup(CliUtil.java:32)
            at com.zimbra.cs.zimlet.ZimletUtil.main(ZimletUtil.java:1891)
    Caused by: java.lang.ClassNotFoundException: com.google.common.base.Strings
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 9 more

  7. #27
    natalstone is offline New Member
    Join Date
    May 2011
    Posts
    3
    Rep Power
    4

    Default

    Quote Originally Posted by rrao View Post
    grandpajim,
    To undeploy..
    all the steps are similar to deploy but the 3rd one.

    Code:
     java -cp jetty\lib\log4j-1.2.8.jar;jetty\common\lib\commons-httpclient-3.0.jar;jetty\common\lib\mail.jar;jetty\common\lib \commons-logging.jar;jetty\common\lib\commons-codec-1.3.jar;jetty\common\lib\json.jar;jetty\common\lib\dom4j-1.5.jar;jetty\common\lib\zimbracommon.jar;jetty\we bapps\service\WEB-INF\lib\zimbrastore.jar -Dzimbra.config=conf\localconfig.xml com.zimbra.cs.zimlet.ZimletUtil undeploy ZIMLET-name-without-zip-or-path
    for example..
    Code:
     java -cp jetty\lib\log4j-1.2.8.jar;jetty\common\lib\commons-httpclient-3.0.jar;jetty\common\lib\mail.jar;jetty\common\lib \commons-logging.jar;jetty\common\lib\commons-codec-1.3.jar;jetty\common\lib\json.jar;jetty\common\lib\dom4j-1.5.jar;jetty\common\lib\zimbracommon.jar;jetty\we bapps\service\WEB-INF\lib\zimbrastore.jar -Dzimbra.config=conf\localconfig.xml com.zimbra.cs.zimlet.ZimletUtil undeploy com_zimbra_emailreminderhavaianas flip flops
    Edit by mmorse:
    v3 for both Email Reminder & Birthday Reminder for Zimbra Desktop usage are in the gallery.
    This code helped me a lot, thanks mate!

  8. #28
    gracedman is offline Special Member
    Join Date
    May 2009
    Posts
    134
    Rep Power
    6

    Default

    I'm having some significant grief installing zimlets into ZDC 7.1.2 in a Windows Server 2003 Terminal Server environment. ZDC installed fine but had only a handful of zimlets. I copied the rest of our zimlet zip files into an appropriate directory.

    After struggling to find the new libraries not listed in the above commands (my ignorance of java probably), I came up with:

    java -cp jetty\lib\log4j-1.2.16.jar;jetty\common\lib\commons-httpclient-3.1.jar;jetty\common\lib\zimbra-native.jar;jetty\common\lib\gdata-core-1.0.jar;jetty\common\lib\guava-r09.jar;jetty\common\lib\mail.jar;jetty\common\lib \commons-logging.jar;jetty\common\lib\commons-codec-1.4.jar;jetty\common\lib\json.jar;jetty\common\lib \dom4j-1.5.2.jar;jetty\common\lib\zimbracommon.jar;jetty\ webapps\service\WEB-INF\lib\zimbrastore.jar -Dzimbra.config=data\conf\localconfig.xml com.zimbra.cs.zimlet.ZimletUtil deploy ZimbraZimlets\ch_bnc_asterisk

    to use the asterisk zimlet as an example. This was run from "D:\Program Files\Zimbra\Zimbra Desktop"

    However, it generates the following errors:

    Unable to determine platform because @install.data.root@\.platform does not exist.
    java.lang.NumberFormatException: For input string: "@port@"
    at java.lang.NumberFormatException.forInputString(Unk nown Source)
    at java.lang.Long.parseLong(Unknown Source)
    at java.lang.Long.parseLong(Unknown Source)
    at com.zimbra.common.localconfig.KnownKey.longValue(K nownKey.java:192)
    at com.zimbra.cs.httpclient.URLUtil.getAdminURL(URLUt il.java:101)
    at com.zimbra.cs.zimlet.ZimletUtil$ZimletSoapUtil.ini tZimletSoapUtil(ZimletUtil.java:1376)
    at com.zimbra.cs.zimlet.ZimletUtil$ZimletSoapUtil.<in it>(ZimletUtil.java:1354)
    at com.zimbra.cs.zimlet.ZimletUtil.deployZimletBySoap (ZimletUtil.java:1175)
    at com.zimbra.cs.zimlet.ZimletUtil.dispatch(ZimletUti l.java:1798)
    at com.zimbra.cs.zimlet.ZimletUtil.main(ZimletUtil.ja va:1895)
    [] ERROR: Error
    java.lang.NumberFormatException: For input string: "@port@"
    at java.lang.NumberFormatException.forInputString(Unk nown Source)
    at java.lang.Long.parseLong(Unknown Source)
    at java.lang.Long.parseLong(Unknown Source)
    at com.zimbra.common.localconfig.KnownKey.longValue(K nownKey.java:192)
    at com.zimbra.cs.httpclient.URLUtil.getAdminURL(URLUt il.java:101)
    at com.zimbra.cs.zimlet.ZimletUtil$ZimletSoapUtil.ini tZimletSoapUtil(ZimletUtil.java:1376)
    at com.zimbra.cs.zimlet.ZimletUtil$ZimletSoapUtil.<in it>(ZimletUtil.java:1354)
    at com.zimbra.cs.zimlet.ZimletUtil.deployZimletBySoap (ZimletUtil.java:1175)
    at com.zimbra.cs.zimlet.ZimletUtil.dispatch(ZimletUti l.java:1798)
    at com.zimbra.cs.zimlet.ZimletUtil.main(ZimletUtil.ja va:1895)

    What is causing this and how can I fix it? I am running this as administrator because, I am assuming, the clients would not have rights to install into the ZDC installation directory. However, administrator does not have a Zimbra mail account. Any help would be much appreciated! Thanks - John
    www.spiritualoutreach.com
    Making Christianity intelligible to secular society

  9. #29
    gracedman is offline Special Member
    Join Date
    May 2009
    Posts
    134
    Rep Power
    6

    Default

    After having done run this failing command, users could no longer open ZDC. After a maddening, inconsistent, and hours long effort at trying to restore access which I will record under Unable to launch Zimbra Desktop we were able to get users running again.

    To just get the zimlets we absolutely needed, we installed them on a per user basis via the ZDC preferences and, to our surprise, they worked. So I am guessing that deployed zimlets are not stored under zimlets-deployed in the installation directory as we did not see them there and did not want to see them there lest regular users have access to areas we don't want them to access on a multi-user system.
    www.spiritualoutreach.com
    Making Christianity intelligible to secular society

Page 3 of 3 FirstFirst 123

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Outlook 2007 Beta error
    By bersrker in forum Zimbra Connector for Outlook
    Replies: 13
    Last Post: 07-17-2008, 07:38 AM
  3. Replies: 5
    Last Post: 01-11-2008, 05:34 AM
  4. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  5. Using Zimlet to add zimbra account
    By dzed in forum Zimlets
    Replies: 2
    Last Post: 05-05-2006, 02:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •