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 Display Modes
  #11 (permalink)  
Old 01-19-2009, 06:14 PM
New Member
 
Posts: 4
Default

Quote:
Originally Posted by tdesorbaix View Post
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
Thanks, worked like a charm.
Reply With Quote
  #12 (permalink)  
Old 02-03-2009, 04:59 PM
Zimbra Employee
 
Posts: 115
Default

I know this is already a solved issue. But, on Windows XP and ZDesktop Beta1, I had to make some minor change to get it to work, so posting this just in case.

CD to..
C:\Documents and Settings\<USERNAME>\Local Settings\Application Data\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\we bapps\service\WEB-INF\lib\zimbrastore.jar -Dzimbra.config=conf\localconfig.xml com.zimbra.cs.zimlet.ZimletUtil deploy zimlets\<ZIMLET.zip>
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #13 (permalink)  
Old 07-07-2009, 01:45 AM
Junior Member
 
Posts: 9
Default This works! Great Work.



It works for me also.

Quote:
Originally Posted by markuswarlich View Post
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
  #14 (permalink)  
Old 07-13-2009, 06:12 PM
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by joannaxxvi View Post
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>
Hi, I received an error when running this code on Windows XP SP3 + Zimbra Desktop v1.0 (build 1593).

But, I did not get an error when I ran this:

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 deploy zimlets\Com_zimbra_openalldomains.zip

I received the "success message":

[] INFO: Deploying on localhost
[] INFO: Deploy initiated. (check the servers mailbox.log for the status)


NOTE: It took several minutes for the Zimlet to be deployed and show up in the jetty\webapps\service\zimlet folder. I couldn't work out what the problem was until I was just patient. :-)

Last edited by ronanhigg : 07-14-2009 at 03:23 PM. Reason: Made some progress
Reply With Quote
  #15 (permalink)  
Old 08-28-2009, 01:02 PM
bmw bmw is offline
Senior Member
 
Posts: 74
Default

Can't get it to work.

Kubuntu Jaunty 9.04 2.6.28-15-generic and latest Zdesktop v1.0 build 1593
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.0.1) Gecko/2008072406 Prism (zdesktop/1.0)
Code:
~/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/orangesoda.zip
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:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
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.

Last edited by bmw : 08-28-2009 at 03:54 PM.
Reply With Quote
  #16 (permalink)  
Old 08-31-2009, 06:36 AM
Zimlet Guru & Moderator
 
Posts: 199
Default

Quote:
Originally Posted by bmw View Post
Can't get it to work.

Kubuntu Jaunty 9.04 2.6.28-15-generic and latest Zdesktop v1.0 build 1593
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.0.1) Gecko/2008072406 Prism (zdesktop/1.0)
Code:
~/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/orangesoda.zip
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:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
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.
Suppress the space in the command in "jetty /common/lib/commons-logging.jar".
Maybe also try the command while being in "~/zimbra/zdesktop/" and not in "~/zimbra/zdesktop/zimlets".
Reply With Quote
  #17 (permalink)  
Old 08-31-2009, 02:33 PM
bmw bmw is offline
Senior Member
 
Posts: 74
Default

I found it. Another space.
POSTER: Please be sure when posting code you proof it before publishing the post.
USER: Please be sure to proof before running script.

As follows:
Code:
~/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/orangesoda.zip
Exception in thread "main" java.lang.NoClassDefFoundError: /lib/dom4j-1/5/jar:jetty/common/lib/zimbracommon/jar:jetty/webapps/service/WEB-INF/lib/zimbrastore/jar
Caused by: java.lang.ClassNotFoundException: .lib.dom4j-1.5.jar:jetty.common.lib.zimbracommon.jar:jetty.webapps.service.WEB-INF.lib.zimbrastore.jar
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: /lib/dom4j-1.5.jar:jetty/common/lib/zimbracommon.jar:jetty/webapps/service/WEB-INF/lib/zimbrastore.jar.  Program will exit.

Last edited by bmw : 08-31-2009 at 02:45 PM.
Reply With Quote
  #18 (permalink)  
Old 09-01-2009, 11:44 AM
bmw bmw is offline
Senior Member
 
Posts: 74
Default Breaks again after JRE 6 install

Just after I got the zimlets to start installing, I had to install JRE6 on my Kubuntu Jaunty 9.04 Linux machine when GoToMeeting stopped working. (Note: Macs have similar issue with latest Java update).

I have checked for typos three times before posting. If there is another, time for new glasses.

I now get this error message:

Code:
~/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/orangesoda.zip
[] ERROR: Error
com.zimbra.cs.zclient.ZClientException: invoke Connection refused, server: localhost
ExceptionId:main:1251826813965:8fffadfb7fad49fa
Code:zclient.IO_ERROR
        at com.zimbra.cs.zclient.ZClientException.IO_ERROR(ZClientException.java:47)
        at com.zimbra.cs.account.soap.SoapProvisioning.invoke(SoapProvisioning.java:196)
        at com.zimbra.cs.account.soap.SoapProvisioning.soapAdminAuthenticate(SoapProvisioning.java:145)
        at com.zimbra.cs.zimlet.ZimletUtil$ZimletSoapUtil.initZimletSoapUtil(ZimletUtil.java:1159)
        at com.zimbra.cs.zimlet.ZimletUtil$ZimletSoapUtil.<init>(ZimletUtil.java:1133)
        at com.zimbra.cs.zimlet.ZimletUtil.deployZimletBySoap(ZimletUtil.java:1101)
        at com.zimbra.cs.zimlet.ZimletUtil.deployZimletBySoap(ZimletUtil.java:1092)
        at com.zimbra.cs.zimlet.ZimletUtil.dispatch(ZimletUtil.java:1552)
        at com.zimbra.cs.zimlet.ZimletUtil.main(ZimletUtil.java:1641)
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:525)
        at java.net.Socket.connect(Socket.java:475)
        at java.net.Socket.<init>(Socket.java:372)
        at java.net.Socket.<init>(Socket.java:246)
        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)
        at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
        at com.zimbra.common.soap.SoapHttpTransport.invoke(SoapHttpTransport.java:276)
        at com.zimbra.common.soap.SoapHttpTransport.invoke(SoapHttpTransport.java:230)
        at com.zimbra.common.soap.SoapTransport.invoke(SoapTransport.java:318)
        at com.zimbra.common.soap.SoapTransport.invoke(SoapTransport.java:282)
        at com.zimbra.cs.account.soap.SoapProvisioning.invoke(SoapProvisioning.java:192)
        ... 7 more
Reply With Quote
  #19 (permalink)  
Old 09-04-2009, 04:25 PM
New Member
 
Posts: 3
Default Not Solved for Vista x64

C:\Users\brownd\AppData\Local\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\com
mon\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 deploy zimlets/com_zimbra_travelagent.zip
Exception in thread "main" java.lang.NoClassDefFoundError: \commons-logging/jar;jetty\common\lib\commons-codec-1/3/jar;jetty\common\lib\json/jar;jetty\common\lib
Caused by: java.lang.ClassNotFoundException: \commons-logging.jar;jetty\common\lib\commons-codec-1.3.jar;jetty\common\lib\json.jar;jetty\common\lib
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: \commons-logging.jar;jetty\common\lib\commons-codec-1.3.jar;jetty\common\lib\json.jar;jetty\common\lib . Program will exit.
Reply With Quote
  #20 (permalink)  
Old 09-07-2009, 01:50 AM
Zimlet Guru & Moderator
 
Posts: 199
Default

Quote:
Originally Posted by DMan View Post
C:\Users\brownd\AppData\Local\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\com
mon\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 deploy zimlets/com_zimbra_travelagent.zip
Exception in thread "main" java.lang.NoClassDefFoundError: \commons-logging/jar;jetty\common\lib\commons-codec-1/3/jar;jetty\common\lib\json/jar;jetty\common\lib
Caused by: java.lang.ClassNotFoundException: \commons-logging.jar;jetty\common\lib\commons-codec-1.3.jar;jetty\common\lib\json.jar;jetty\common\lib
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: \commons-logging.jar;jetty\common\lib\commons-codec-1.3.jar;jetty\common\lib\json.jar;jetty\common\lib . Program will exit.
...
same error as before, there is spaces in the command where there should not be.
Try the corrected command:
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\webapps\service\WEB-INF\lib\zimbrastore.jar -Dzimbra.config=conf\localconfig.xml com.zimbra.cs.zimlet.ZimletUtil deploy zimlets/com_zimbra_travelagent.zip
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0