Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: [SOLVED] Deploying a Zimlet in Zimbra Desktop

  1. #1
    mohaps is offline Junior Member
    Join Date
    Mar 2006
    Posts
    6
    Rep Power
    9

    Default [SOLVED] Deploying a Zimlet in Zimbra Desktop

    I found this link on deploying a zimlet into Zimbra Desktop (zdesktop_0_91_build_1344_win32):
    OpenHack2008 - Zimbra :: Wiki


    got this error:

    C:\WorkArea\MyInstalls\Zimbra\zdesktop>java -cp jetty/lib/log4j-1.2.8.jar:jetty/common/lib/commons-httpclient-3.0.jar:jetty/c
    ommon/lib/mail.jar:jetty/common/lib/commons-logging.jar:jetty/common/lib/commons-codec-1.3.jar:jetty/common/lib/json.jar:jett
    y/common/lib/dom4j-1.5.jar:jetty/common/lib/zimbracommon.jar:jetty/webapps/service/WEB-INF/lib/zimbrastore.jar -Dzimbra.confi
    g=conf/localconfig.xml com.zimbra.cs.zimlet.ZimletUtil deploy zimlets/com_dimdim_zimlet3.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(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)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: com.zimbra.cs.zimlet.ZimletUtil. Program will exit.

    I scanned the jar files in the install directory and the ZimletUtil class is not there. Any ideas as to how to deploy the zimlet into ZDesktop?
    In order to understand recursion, one must first understand recursion.

  2. #2
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Cool

    The command in the wiki works well if you are using linux.
    If you use windows, you must replace the : by ;
    Use this command instead :
    java -cp jetty/lib/*;jetty/common/lib/*;jetty/webapps/service/WEB-INF/lib/* -Dzimbra.config=conf/localconfig.xml com.zimbra.cs.zimlet.ZimletUtil deploy zimlets/com_dimdim_zimlet3.zip

  3. #3
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,499
    Rep Power
    56

    Default

    Quote Originally Posted by tdesorbaix View Post
    The command in the wiki works well if you are using linux.
    If you use windows, you must replace the : by ;
    Use this command instead :
    Could you update the wiki with that information, please?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

  5. #5
    markuswarlich is offline Junior Member
    Join Date
    Oct 2008
    Posts
    6
    Rep Power
    6

    Default Error deploying zimlet

    Hello,
    I get following error message:
    Exception in thread "main" java.lang.NoClassDefFoundError: /common/lib/commons-logging/jar:jetty/common/lib/commons-codec-1/3/jar:jetty/common/lib/json/jar:jetty/common
    Caused by: java.lang.ClassNotFoundException: .common.lib.commons-logging.jar:jetty.common.lib.commons-codec-1.3.jar:jetty.common.lib.json.jar:jetty.common
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 23)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 68)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:336)
    Could not find the main class: /common/lib/commons-logging.jar:jetty/common/lib/commons-codec-1.3.jar:jetty/common/lib/json.jar:jetty/common. Program will exit.
    root@markus-AcerONE:/home/markus/zimbra/zdesktop#

    Ubuntu 8.10, Desktop last Version
    Cent OS5.2 Server Open Source last Version

    Best Regards markus

  6. #6
    joannaxxvi is offline Junior Member
    Join Date
    Nov 2008
    Posts
    6
    Rep Power
    6

    Default

    Quote Originally Posted by mohaps View Post
    I found this link on deploying a zimlet into Zimbra Desktop (zdesktop_0_91_build_1344_win32):
    OpenHack2008 - Zimbra :: Wiki


    got this error:




    I scanned the jar files in the install directory and the ZimletUtil class is not there. Any ideas as to how to deploy the zimlet into ZDesktop?
    I was also having the same problem, I eventually found out that you have to use '\' instead of '/', plus you have to specifically write the path of the jar files instead of '*'. Hope the code below works for you..

    C:\Documents and Settings\<Your Home Directory>\Local Settings\Application Data\Zimbra\zdesktop>jre\bin\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;jettycommon\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 deploy zimlets/<Your Zimlet>

  7. #7
    markuswarlich is offline Junior Member
    Join Date
    Oct 2008
    Posts
    6
    Rep Power
    6

    Default

    For linux.
    cd /home/USER/zimbra/zdesktop

    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/ZIMLET-NAME.zip

    Works for me.

    :-) Markus

  8. #8
    jmathai is offline New Member
    Join Date
    Jan 2009
    Posts
    4
    Rep Power
    6

    Default

    Mac osx is similar to linux:

    Code:
    jmathai@[/Applications/zimbra/zdesktop]: 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 ~/Y/zimlets/com_zimbra_hello.zip
    Using zdesktop start/stop didn't work for me as starting seemed to hang. You can right click on the icon in your doc and select shutdown service, and then reopen the app.

  9. #9
    jmathai is offline New Member
    Join Date
    Jan 2009
    Posts
    4
    Rep Power
    6

    Default

    On a side note, how do you remove or disable a zimlet in Zimbra Desktop?

  10. #10
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    To remove it, try the command you use to install zimlet, and change :
    Code:
    deploy ~/Y/zimlets/com_zimbra_hello.zip
    into :
    Code:
    undeploy com_zimbra_hello

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  2. Replies: 12
    Last Post: 02-25-2008, 07:28 PM
  3. [SOLVED] Clamav problem ? What's happening ?
    By aNt1X in forum Installation
    Replies: 23
    Last Post: 02-14-2008, 05:43 AM
  4. Big Fubar on 5 FOSS GA Upgrade
    By uxbod in forum Administrators
    Replies: 24
    Last Post: 01-21-2008, 03:37 AM
  5. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 11:16 AM

Posting Permissions

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