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 |