vnc-biz / zcs-openerp-connector

OpenERP connector for Zimbra ZCS
GNU Affero General Public License v3.0
6 stars 1 forks source link

Setup zimbra #1

Closed govereem closed 11 years ago

govereem commented 12 years ago

Hi,

Can you give an explanation on how to install this zimlet? It cant be upload from backend. I ceated an new zip file with the files from src\com_zimbra_erp_mail_connector\src. Now I dont get the message about the description message is missing.

Command: zmzimletctl install com_zimbra_erp_mail_connector.zip

But now it results in java.lang.NumberFormatException: For input string: "@ZIMLET" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at com.zimbra.cs.zimlet.Version.parse(Version.java:61) at com.zimbra.cs.zimlet.Version.(Version.java:45) at com.zimbra.cs.zimlet.ZimletMeta.validate(ZimletMeta.java:88) at com.zimbra.cs.zimlet.ZimletMeta.(ZimletMeta.java:67) at com.zimbra.cs.zimlet.ZimletDescription.(ZimletDescription.java:48) at com.zimbra.cs.zimlet.ZimletFile.initZimletDescription(ZimletFile.java:253) at com.zimbra.cs.zimlet.ZimletFile.initialize(ZimletFile.java:206) at com.zimbra.cs.zimlet.ZimletFile.initialize(ZimletFile.java:163) at com.zimbra.cs.zimlet.ZimletFile.(ZimletFile.java:144) at com.zimbra.cs.zimlet.ZimletUtil.dispatch(ZimletUtil.java:1812) at com.zimbra.cs.zimlet.ZimletUtil.main(ZimletUtil.java:1907) [] ERROR: Error java.lang.NumberFormatException: For input string: "@ZIMLET" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at com.zimbra.cs.zimlet.Version.parse(Version.java:61) at com.zimbra.cs.zimlet.Version.(Version.java:45) at com.zimbra.cs.zimlet.ZimletMeta.validate(ZimletMeta.java:88) at com.zimbra.cs.zimlet.ZimletMeta.(ZimletMeta.java:67) at com.zimbra.cs.zimlet.ZimletDescription.(ZimletDescription.java:48) at com.zimbra.cs.zimlet.ZimletFile.initZimletDescription(ZimletFile.java:253) at com.zimbra.cs.zimlet.ZimletFile.initialize(ZimletFile.java:206) at com.zimbra.cs.zimlet.ZimletFile.initialize(ZimletFile.java:163) at com.zimbra.cs.zimlet.ZimletFile.(ZimletFile.java:144) at com.zimbra.cs.zimlet.ZimletUtil.dispatch(ZimletUtil.java:1812) at com.zimbra.cs.zimlet.ZimletUtil.main(ZimletUtil.java:1907)

Can it be its missing the files from src\lib-vnc-openerp\src, if yes where do i need to place them? How does this work?

Thanks and kind regards, Gideon

metux commented 11 years ago

Where exactly did you get that zipfile from ? It looks like you just packed (parts of) the source tree to a zipfile and tried to deploy it manually - this cannot work.

Instead it needs to be built (running 'make') and then deployed via zmpkg.

One of the main reasons is that they're more than just zimlets.

Traditional zimlets only work with pure frontend code (javascript, css, etc). As soon as backend side java stuff is coming in (eg. JSP that requires classes that are not per default available in zimlet servlet context, or even additional jar's), the zimbra-builtin deployment mechanism causes big trouble - it has no way of tracking or pulling in dependencies, prevent conflicts, etc, etc). Even worse: when other things, eg. mailboxd extensions, etc, come in, there's no builtin deployment mechanism - it has to be done fully manually.

Therefore we've introduced an application level package management system (which is indepenent from the operating system's package management - just needs dpkg+friends installed on the system).

The core of all is zmpkg. It needs to be installed on the target system, as well as on build/development system (eg. when you're building on your own). Please refer to zmpkg documentation for more details.

metux commented 11 years ago

By the way: if you just wanna deploy our prebuilt packages, you just need to initially install zmpkg on your target system, setup the apt-repository (see zmpkg docs) and then you can install directly via zm-apt-get or zm-aptitute, without having to care about dependencie etc.

flavioelawi commented 11 years ago

the "http://packages.vnc.biz/zmpkg/helix-current/ helix main testing" is not working, is there a different url, and with ironmaiden support?

i had to use the "http://packages.vnc.biz/zmpkg/OLD/ironmaiden-current/" but the zimlet threw an error

[] INFO: Deploy initiated. Check the server's mailbox.log for the status. Fixing current skin list Warn: attribute zimbraInstalledSkin has been deprecated since 5.0

W: Could not open file '/opt/zimbra/var/log/apt/term.log' - OpenLog (13: Permission denied)

the zimlet now loads but throw an error "unexpected token" when the zimbra UI loads.

metux commented 11 years ago

Hi,

the "http://packages.vnc.biz/zmpkg/helix-current/ helix main testing" is not working, is there a different url, and with ironmaiden support?

you've got an old url for helix-only, which of course can't work for ironmaiden ;-)

Things have changed a lot for ironmaiden:

If you've previously installed zmpkg-1.2.*, you'll need to re-run the bootstrap install to fix the dpkg database (architecture name has changed).

http://packages.vnc.biz/zmpkg/bootstrap/ironmaiden/zcs-zmpkg-1.3.0.3-ironmaiden-0.tar.gz

The correct repo for ironmaiden is:

deb http://packages.vnc.biz/zmpkg/current/ ironmaiden free restricted commercial

(note packages in "commercial" are not free of charge, except for evaluation purposes)

You should run zm-apt-get update && zm-apt-get upgrade

In case anything goes wrong, you'll can directly call the underlying dpkg with

zmpkg dpkg <params>

For example list installed (raw) packages:

zmpkg dpkg -l

It should not show any packages with ":All" in the name. (those packages should be removed manually)

Once that's done, you should be able to install packages via zm-apt-get or zm-aptitutde.

cu

Mit freundlichen Grüßen / Kind regards

Enrico Weigelt VNC - Virtual Network Consult GmbH Head Of Development

Pariser Platz 4a, D-10117 Berlin Tel.: +49 (30) 3464615-20 Mobile: +49 (151) 27565287 Fax: +49 (30) 3464615-59

enrico.weigelt@vnc.biz; www.vnc.de

flavioelawi commented 11 years ago

thanks metux, now i'm getting permission errors during the installation of the dependencies in lib/jars, by default zimbra has root as owner of /opt/zimbra/lib, but the zm-apt-get is run by the zimbra user, and so i get these errors

zimbra@zcs01:~/lib$ zm-apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: zcs-lib-gson22 zcs-lib-javacsv zcs-lib-json-simple zcs-lib-redstone-xmlrpc The following NEW packages will be installed: zcs-lib-gson22 zcs-lib-javacsv zcs-lib-json-simple zcs-lib-redstone-xmlrpc 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/1,023 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? (Reading database ... 168 files and directories currently installed.) Unpacking zcs-lib-json-simple:All (from .../zcs-lib-json-simple_1.1.1.6-0_All.deb) ... dpkg: error processing /opt/zimbra/var/lib/apt/cache/archives/zcs-lib-json-simple_1.1.1.6-0_All.deb (--unpack): unable to create /opt/zimbra/lib/jars/zcs-lib-json-simple.jar.dpkg-new' (while processing./lib/jars/zcs-lib-json-simple.jar'): Permission denied Unpacking zcs-lib-javacsv:All (from .../zcs-lib-javacsv_2.0.0.1-3_All.deb) ... dpkg: error processing /opt/zimbra/var/lib/apt/cache/archives/zcs-lib-javacsv_2.0.0.1-3_All.deb (--unpack): unable to create /opt/zimbra/lib/jars/zcs-lib-javacsv.jar.dpkg-new' (while processing./lib/jars/zcs-lib-javacsv.jar'): Permission denied Unpacking zcs-lib-gson22:All (from .../zcs-lib-gson22_2.2.2.1-0_All.deb) ... dpkg: error processing /opt/zimbra/var/lib/apt/cache/archives/zcs-lib-gson22_2.2.2.1-0_All.deb (--unpack): unable to create /opt/zimbra/lib/jars/zcs-lib-gson22.jar.dpkg-new' (while processing./lib/jars/zcs-lib-gson22.jar'): Permission denied dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Unpacking zcs-lib-redstone-xmlrpc:All (from .../zcs-lib-redstone-xmlrpc_1.1.1.3-1_All.deb) ... dpkg: error processing /opt/zimbra/var/lib/apt/cache/archives/zcs-lib-redstone-xmlrpc_1.1.1.3-1_All.deb (--unpack): unable to create /opt/zimbra/lib/jars/zcs-lib-redstone-xmlrpc.jar.dpkg-new' (while processing./lib/jars/zcs-lib-redstone-xmlrpc.jar'): Permission denied No apport report written because MaxReports is reached already Errors were encountered while processing: /opt/zimbra/var/lib/apt/cache/archives/zcs-lib-json-simple_1.1.1.6-0_All.deb /opt/zimbra/var/lib/apt/cache/archives/zcs-lib-javacsv_2.0.0.1-3_All.deb /opt/zimbra/var/lib/apt/cache/archives/zcs-lib-gson22_2.2.2.1-0_All.deb /opt/zimbra/var/lib/apt/cache/archives/zcs-lib-redstone-xmlrpc_1.1.1.3-1_All.deb E: Sub-process /opt/zimbra/bin/zmpkg-dpkg returned an error code (1)

is that normal? should i run zm-aptitude as root?

metux commented 11 years ago

Hi,

now i'm getting permission errors during the installation of the dependencies in lib/jars, by default zimbra has root as owner of /opt/zimbra/lib, but the zm-apt-get is run by the zimbra user, and so i get these errors

Oh, this should have been fixed by the bootstrap install (see install.sh script).

Did you somehow run /opt/zimbra/libexec/zmfixperms ?

With Z8 this script makes /opt/zimbra/lib/jars and the files in it completely unwritable to zimbra user.

Please have another try after re-running the bootstrap install, lets see if it fixes that.

zimbra@zcs01:~/lib$ zm-apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: zcs-lib-gson22 zcs-lib-javacsv zcs-lib-json-simple zcs-lib-redstone-xmlrpc The following NEW packages will be installed: zcs-lib-gson22 zcs-lib-javacsv zcs-lib-json-simple zcs-lib-redstone-xmlrpc 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/1,023 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? (Reading database ... 168 files and directories currently installed.) Unpacking zcs-lib-json-simple:All (from .../zcs-lib-json-simple_1.1.1.6-0_All.deb) ...

Oh, there are lots of packages with architecture "All" and w/o -ironmaiden version.

Are you sure you've fixed sources.list and run zm-apt-get update ?

cu

Mit freundlichen Grüßen / Kind regards

Enrico Weigelt VNC - Virtual Network Consult GmbH Head Of Development

Pariser Platz 4a, D-10117 Berlin Tel.: +49 (30) 3464615-20 Mobile: +49 (151) 27565287 Fax: +49 (30) 3464615-59

enrico.weigelt@vnc.biz; www.vnc.de

flavioelawi commented 11 years ago

yes i ran fixperm after the installation of zmpkg, i'm gonna try to rerun the bootstrap.

I don't know why i keep getting the All packagest, the sources.list is correctly edited with the new deb URI, i guess i have to somehow delete the cache. edit: i'm guessing that it has some kind of problem writing in the apt cache since i run the fixperm, so i'm stuck with the old repo cache.

flavioelawi commented 11 years ago

cleaned all, reinstalled zmpkg, no problems whatsoever but after the zm-apt-get update i get the _All packages

user@zcs01:/$ sudo cat /opt/zimbra/extensions-extra/zmpkg/etc/apt/sources.list [sudo] password for user: deb http://packages.vnc.biz/zmpkg/current/ ironmaiden free restricted commercial

user@zcs01:/$

zimbra@zcs01:~/extensions-extra/zmpkg$ zm-aptitude Selecting previously unselected package zcs-lib-gson22:All. (Reading database ... 56 files and directories currently installed.) Unpacking zcs-lib-gson22:All (from .../zcs-lib-gson22_2.2.2.1-0_All.deb) ... Selecting previously unselected package zcs-lib-javacsv:All. Unpacking zcs-lib-javacsv:All (from .../zcs-lib-javacsv_2.0.0.1-3_All.deb) ... Selecting previously unselected package zcs-lib-json-simple:All. Unpacking zcs-lib-json-simple:All (from .../zcs-lib-json-simple_1.1.1.6-0_All.deb) ... Selecting previously unselected package zcs-lib-redstone-xmlrpc:All. Unpacking zcs-lib-redstone-xmlrpc:All (from .../zcs-lib-redstone-xmlrpc_1.1.1.3-1_All.deb) ... Selecting previously unselected package zcs-lib-vnc-common:All. Unpacking zcs-lib-vnc-common:All (from .../zcs-lib-vnc-common_0.11.0-6_All.deb) ... Selecting previously unselected package zcs-openerp-connector-z8:All. Unpacking zcs-openerp-connector-z8:All (from .../zcs-openerp-connector-z8_1.2.3.0-0_All.deb) ... dpkg: warning: there's no installed package matching zcs-lib-gson22 dpkg: warning: there's no installed package matching zcs-lib-javacsv dpkg: warning: there's no installed package matching zcs-lib-json-simple dpkg: warning: there's no installed package matching zcs-lib-redstone-xmlrpc dpkg: warning: there's no installed package matching zcs-lib-vnc-common dpkg: warning: there's no installed package matching zcs-openerp-connector-z8 Deploying sql file: /opt/zimbra/zimlets-install/zcs-lib-vnc-common/mailboxd-db-schema.sql ERROR 1061 (42000) at line 20: Duplicate key name '_zcs_zimlet_user_config_si1' ERROR 1061 (42000) at line 21: Duplicate key name '_zcs_zimlet_user_config_ui1' Deploying zimlet: /opt/zimbra/zimlets-install/zcs-openerp-connector-z8/com_zimbra_erp_mail_connector.zip [] INFO: Deploying on zcs01.internal.lan [] INFO: Deploy initiated. Check the server's mailbox.log for the status. Fixing current skin list Warn: attribute zimbraInstalledSkin has been deprecated since 5.0

Press return to continue.

metux commented 11 years ago

cleaned all, reinstalled zmpkg, no problems whatsoever but after the zm-apt-get update i get the _All packages

Whoops! Our 'current' repo still had old packages left. Fixed. (maybe that's what caused all the trouble in the first place, sorry for that ;-o)

Just tested on a fresh system, went through smoothly.

On your case, you probably need to rerun the bootstrap install to fix the architecture.

cu

Mit freundlichen Grüßen / Kind regards

Enrico Weigelt VNC - Virtual Network Consult GmbH Head Of Development

Pariser Platz 4a, D-10117 Berlin Tel.: +49 (30) 3464615-20 Mobile: +49 (151) 27565287 Fax: +49 (30) 3464615-59

enrico.weigelt@vnc.biz; www.vnc.de

flavioelawi commented 11 years ago

thanks metus, finally i have installed the package along with zmpkg. now i simply can't manage to connect the zimlet against the openerp server using the internal ip address and port 8069. my client, the zimbra server and the openerp server are on the same subnet and i can connect to 8069 via browser or telnet, am i missing something in the openerp configuration?

metux commented 11 years ago

perhaps you need to deploy the openerp module you'll find in the vnc_zimbra_connector directory in the source tree. (unfortunately, it's not packaged yet)

flavioelawi commented 11 years ago

ok, is there a special way to make the package? download the whole tree and use make as zimbra in the zimbra root?

metux commented 11 years ago

ok, is there a special way to make the package? download the whole tree and use make as zimbra in the zimbra root?

nope. it's an openerp-module (on the other side of the line). just put that directory into openerp's module search path and activate it in the openerp admin gui (see openerp manual).

cu

Mit freundlichen Grüßen / Kind regards

Enrico Weigelt VNC - Virtual Network Consult GmbH Head Of Development

Pariser Platz 4a, D-10117 Berlin Tel.: +49 (30) 3464615-20 Mobile: +49 (151) 27565287 Fax: +49 (30) 3464615-59

enrico.weigelt@vnc.biz; www.vnc.de

flavioelawi commented 11 years ago

ok i have managed to install the module in openerp and it seems fine (zipped the vnc_zimbra_connector and thrown in the addons folder), updated the modules list and installed.

but in zimbra i get an unexpected token message when I open the webmail and i am unable to get the database list in the zimlet configuration

i guess there are more configurations to do in the zimlet package itself

err1 err2

metux commented 11 years ago

hmm, could there be a firewall problem at your site ?

flavioelawi commented 11 years ago

Nope, the client, the zimbra server and the openerp server are on the same subnet wih iptables turned off (i can reach the 8069 Port Just fine from anywhere)

metux commented 11 years ago

hmmpf. have you checked w/ tcpdump if there's some traffic going between the boxes ?

dhaval-vnc commented 11 years ago

@galiral is openerp01.internal.lan is accessible from the machine where zimbra is installed? Try http://openerp01.internal.lan in server box.

flavioelawi commented 11 years ago

yes, i can connect via telnet to the 8069 port

user@zcs01:/opt/zimbra/log$ telnet openerp01.internal.lan 8069 Trying 192.168.1.11... Connected to openerp01.internal.lan. Escape character is '^]'.

i think it's something with the zimlet.

Using tshark ("tshark -i eth0 not port 22") i can't see any connection to the openerp server when i try to find a database. Is there a debug mode or a log i can enable on the zimlet to see what's wrong?

dhaval-vnc commented 11 years ago

@galiral ok try giving http://openerp01.internal.lan 8069 as server in configuration window.

flavioelawi commented 11 years ago

err1

same error, i guess it isn't even trying to connect because it gives me the time out as soon as i click the get database button.

dhaval-vnc commented 11 years ago

Paste java exception stack trace from the backend logs.

flavioelawi commented 11 years ago

i can't see any trace regarding the zimlet in mailbox.log, i just get this in /opt/zimbra/log/2013_01_29.trace.log

21:23:15.564:qtp1259286773-142795:https://192.168.1.3:443/service/zimlet/com_zimbra_erp_mail_connector/GetDatabaseRpc.jsp?urladdress=http://openerp01.internal.lan&port=8069 192.168.6.2 GET utma=32600504.660120915.1358186596.1358960656.1359383091.9; utmz=32600504.1358186596.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ZM_TEST=true; ZM_AUTH_TOKEN=0_43cafd40b1e0b49beac0a7f50d41202c64e4c7d4_69643d33363a65373931633630622d666262662d346436652d616162342d3036363865373163363232613b6578703d31333a313335393636323635313830353b747970653d363a7a696d6272613b; JSESSIONID=1ljeqpi5t5fcyz4zycflha9yc; Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17 21:23:15.587:qtp1259286773-142795:https://192.168.1.3:443/service/zimlet/com_zimbra_erp_mail_connector/GetDatabaseRpc.jsp?urladdress=http://openerp01.internal.lan&port=8069 500 text/html;charset=ISO-8859-1 2028'''

dhaval-vnc commented 11 years ago

check it under /opt/zimbra/log/mailbox.log /opt/zimbra/log/zmmailbox.out

flavioelawi commented 11 years ago

When first loading the page

2013-01-30 10:52:57.577:WARN:oejs.ServletHandler:/service/zimlet/com_zimbra_erp_mail_connector/readConfig.jsp org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP||PWC6197: An error occurred at line: 25 in the jsp file: /com_zimbra_erp_mail_connector/readConfig.jsp|PWC6199: Generated servlet error:|cannot access com.zimbra.cs.account.AuthTokenException| class file for com.zimbra.cs.account.AuthTokenException not found|| at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:126) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:372) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:433) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:476) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:542) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:288) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115) at com.zimbra.cs.zimlet.ZimletResources.service(ZimletResources.java:98) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1361) at com.zimbra.cs.zimlet.ZimletFilter.doFilter(ZimletFilter.java:240) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) at com.zimbra.cs.servlet.SetHeaderFilter.doFilter(SetHeaderFilter.java:57) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77) at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:181) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) at com.zimbra.cs.servlet.ThrottlingFilter.doFilter(ThrottlingFilter.java:71) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) at org.eclipse.jetty.servlets.DoSFilter.doFilterChain(DoSFilter.java:464) at org.eclipse.jetty.servlets.DoSFilter.doFilter(DoSFilter.java:327) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:312) at org.eclipse.jetty.server.handler.DebugHandler.handle(DebugHandler.java:77) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:349) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:191) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) at java.lang.Thread.run(Thread.java:722) Total time for which application threads were stopped: 0.0011970 seconds

flavioelawi commented 11 years ago

when trying to get databases

Total time for which application threads were stopped: 0.0012320 seconds 2013-01-30 10:54:24.034:WARN:oejs.ServletHandler:/service/zimlet/com_zimbra_erp_mail_connector/GetDatabaseRpc.jsp org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP||PWC6197: An error occurred at line: 25 in the jsp file: /com_zimbra_erp_mail_connector/GetDatabaseRpc.jsp|PWC6199: Generated servlet error:|cannot access com.zimbra.cs.account.AuthTokenException| class file for com.zimbra.cs.account.AuthTokenException not found|| at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:126) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:372) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:433) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:476) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:542) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:288) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115) at com.zimbra.cs.zimlet.ZimletResources.service(ZimletResources.java:98) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1361) at com.zimbra.cs.zimlet.ZimletFilter.doFilter(ZimletFilter.java:240) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) at com.zimbra.cs.servlet.SetHeaderFilter.doFilter(SetHeaderFilter.java:57) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77) at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:181) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) at com.zimbra.cs.servlet.ThrottlingFilter.doFilter(ThrottlingFilter.java:71) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) at org.eclipse.jetty.servlets.DoSFilter.doFilterChain(DoSFilter.java:464) at org.eclipse.jetty.servlets.DoSFilter.doFilter(DoSFilter.java:327) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:312) at org.eclipse.jetty.server.handler.DebugHandler.handle(DebugHandler.java:77) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:349) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:191) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) at java.lang.Thread.run(Thread.java:722) Total time for which application threads were stopped: 0.0012720 seconds

dhaval-vnc commented 11 years ago

Aha. Got it. It seems like zcs-core-lib is not installed properly on your machine. What zmpkg list command says?

flavioelawi commented 11 years ago

zimbra@zcs01:~/log$ zmpkg-dpkg -l Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-=============================================-=============================================-========================================================================================================== ii zcs-lib-gson22 2.2.2.2-ironmaiden-1 Google json library ii zcs-lib-javacsv 2.0.0.2-ironmaiden-0 Java CSV library ii zcs-lib-json-simple 1.1.1.6-ironmaiden-0 Simple JSON library ii zcs-lib-redstone-xmlrpc 1.1.1.4-ironmaiden-0 Redstone XML-RPC library ii zcs-lib-vnc-common 0.11.0-Z8.1-ironmaiden-0 Common classes library for VNC packages ii zcs-openerp-connector 1.2.3.1-Z8-ironmaiden-0 OpenERP integration ii zcs-zmpkg 1.3.0.3-ironmaiden-0 Zimbra package management system

dhaval-vnc commented 11 years ago

Yes, right. zcs-core-libs is not installed. Please install it and restart mailboxd.

flavioelawi commented 11 years ago

wasn't it supposed to be installed with the dependences of the connector?

dhaval-vnc commented 11 years ago

Yes, it should be.

flavioelawi commented 11 years ago

ok, now it works fine, thanks :)

dhaval-vnc commented 11 years ago

It's a bug and will be fixed in next release.

metux commented 11 years ago

Actually, it's a bug in zcs-lib-vnc-common.

Fixed in bugfix release zcs-lib-vnc-common-0.11.1 (yet needs to pass validation).