Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-27-2008, 06:30 PM
Junior Member
 
Posts: 6
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:

Quote:
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.
Reply With Quote
  #2 (permalink)  
Old 11-28-2008, 01:33 AM
Zimlet Guru & Moderator
 
Posts: 265
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 :
Quote:
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
Reply With Quote
  #3 (permalink)  
Old 11-28-2008, 04:04 AM
Zimbra Consultant & Moderator
 
Posts: 19,639
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
Reply With Quote
  #4 (permalink)  
Old 11-28-2008, 09:06 AM
Zimlet Guru & Moderator
 
Posts: 265
Thumbs up

It's done :
OpenHack2008 - Zimbra :: Wiki
Reply With Quote
  #5 (permalink)  
Old 11-30-2008, 05:09 AM
Junior Member
 
Posts: 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
Reply With Quote
  #6 (permalink)  
Old 12-03-2008, 01:43 AM
Junior Member
 
Posts: 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>
Reply With Quote
  #7 (permalink)  
Old 12-03-2008, 08:24 AM
Junior Member
 
Posts: 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
Reply With Quote
  #8 (permalink)  
Old 01-16-2009, 07:06 PM
New Member
 
Posts: 4
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.
Reply With Quote
  #9 (permalink)  
Old 01-16-2009, 07:08 PM
New Member
 
Posts: 4
Default

On a side note, how do you remove or disable a zimlet in Zimbra Desktop?
Reply With Quote
  #10 (permalink)  
Old 01-19-2009, 01:46 AM
Zimlet Guru & Moderator
 
Posts: 265
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.