Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Desktop > General Questions

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
  #21 (permalink)  
Old 02-18-2009, 08:15 AM
Moderator
 
Posts: 6,236
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.
Reply With Quote
  #22 (permalink)  
Old 03-09-2009, 08:03 AM
Active Member
 
Posts: 34
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
Reply With Quote
  #23 (permalink)  
Old 04-15-2009, 11:30 PM
bmw bmw is offline
Loyal Member
 
Posts: 93
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$
Reply With Quote
  #24 (permalink)  
Old 04-16-2009, 08:14 AM
Zimbra Employee
 
Posts: 187
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!
Reply With Quote
  #25 (permalink)  
Old 05-05-2011, 02:20 PM
Active Member
 
Posts: 45
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?
__________________
-ZW

Last edited by zwvpadmin; 05-05-2011 at 02:25 PM..
Reply With Quote
  #26 (permalink)  
Old 05-05-2011, 02:42 PM
Active Member
 
Posts: 45
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
__________________
-ZW
Reply With Quote
  #27 (permalink)  
Old 05-11-2011, 08:05 AM
New Member
 
Posts: 3
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!
Reply With Quote
  #28 (permalink)  
Old 11-22-2011, 05:54 AM
Special Member
 
Posts: 130
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
Reply With Quote
  #29 (permalink)  
Old 11-22-2011, 10:56 PM
Special Member
 
Posts: 130
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
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.