Results 1 to 7 of 7

Thread: JSP - Accessing ZMailbox - broken in Zimbra 6.x

  1. #1
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    4

    Default JSP - Accessing ZMailbox - broken in Zimbra 6.x

    Hi

    I tried to get the unofficial zimlet "Zimbra Resend Zimlet 0.8" from [url=http://www.efm.de/zimlets/]efm.de/url] to work with Zimbra 6.x

    But it seems that this is mission impossible!

    I followed the recommendations stated here:
    Zimlet JSP - Zimbra :: Wiki
    but the web.xml is overwritten every zimbra restart/start.

    I changed the resend.jsp to not use the zimbra.tld to get the zimlet option but I ran into the same problem like this guy:
    http://www.zimbra.com/forums/zimlets...imbra-6-a.html

    Is there another way in Zimbra 6.x to access the Mailbox or how I can bounce a Mail with the original header to another Mailbox?

    Thanks in advice.
    Last edited by mzi; 01-26-2011 at 08:45 AM.

  2. #2
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    Quote Originally Posted by mzi View Post
    Hi
    I followed the recommendations stated here:
    Zimlet JSP - Zimbra :: Wiki
    but the web.xml is overwritten every zimbra restart/start.
    Yes, it is an error in the wiki. The correct file to change is the template :
    /opt/zimbra/jetty/etc/zimlet.web.xml.in
    And the <env-entry> to copy are :
    httpPort, httpsPort, mailUrl, adminUrl and trustedIps

    Quote Originally Posted by mzi View Post
    I changed the resend.jsp to not use the zimbra.tld to get the zimlet option but I ran into the same problem like this guy:
    http://www.zimbra.com/forums/zimlets...imbra-6-a.html
    Is there another way in Zimbra 6.x to access the Mailbox or how I can bounce a Mail with the original header to another Mailbox?
    To access the mailbox in the jsp, you can use ZMailbox.

  3. #3
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    4

    Default

    Thanks for your answer.

    1. I edited the given web.xml.in and the problem still exists!

    • When I use <%@ taglib prefix="z" uri="/WEB-INF/zimbra.tld" %> in the zimlet JSP I got the ERROR 500 File "/WEB-INF/zimbra.tld" not found
    • When I remove the taglib and change the code to not use it I got the ERROR "Database connection pool not initialized" As many other forums entries covering.


    2. As I understand you correctly, at the moment there is no other way to use the taglib or JSP functions in Zimlets with Zimbra 6 without linking the dirs and editing the xml.in file?

    Thanks

  4. #4
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    Quote Originally Posted by mzi View Post
    Thanks for your answer.
    1. I edited the given web.xml.in and the problem still exists!
    • When I use <%@ taglib prefix="z" uri="/WEB-INF/zimbra.tld" %> in the zimlet JSP I got the ERROR 500 File "/WEB-INF/zimbra.tld" not found
    • When I remove the taglib and change the code to not use it I got the ERROR "Database connection pool not initialized" As many other forums entries covering.
    Wasn't the zimbra.tld for the version 5 of zimbra?
    You can look at the tlds in :
    /opt/zimbra/jetty/webapps/zimlet/WEB-INF/tlds

    For the "Database connection pool not initialized" error, maybe doing as I said by changing your code to use ZMailbox instead of Mailbox will help.

    Quote Originally Posted by mzi View Post
    2. As I understand you correctly, at the moment there is no other way to use the taglib or JSP functions in Zimlets with Zimbra 6 without linking the dirs and editing the xml.in file?
    Yes. Until the bug is fixed.

  5. #5
    Join Date
    Feb 2009
    Location
    Shawnigan Lake, BC, Canada
    Posts
    66
    Rep Power
    6

    Default

    Quote Originally Posted by tdesorbaix View Post
    Wasn't the zimbra.tld for the version 5 of zimbra?
    You can look at the tlds in :
    /opt/zimbra/jetty/webapps/zimlet/WEB-INF/tlds

    For the "Database connection pool not initialized" error, maybe doing as I said by changing your code to use ZMailbox instead of Mailbox will help.


    Yes. Until the bug is fixed.
    Hi,

    I'm trying to get the Resend Zimlet working in 7.1.3. Since it appears 6.x was a problem, I suppose 7.x is even less likely to work?

    This resend/bounce bug/feature request has been around since 5.x at least, so I don't understand why someone hasn't written a zimlet to do this. Or even better, Zimbra could finally add the feature... ;-)

  6. #6
    Join Date
    Feb 2009
    Location
    Shawnigan Lake, BC, Canada
    Posts
    66
    Rep Power
    6

    Default

    Quote Originally Posted by tdesorbaix View Post
    Wasn't the zimbra.tld for the version 5 of zimbra?
    You can look at the tlds in :
    /opt/zimbra/jetty/webapps/zimlet/WEB-INF/tlds

    For the "Database connection pool not initialized" error, maybe doing as I said by changing your code to use ZMailbox instead of Mailbox will help.


    Yes. Until the bug is fixed.
    Since the Dev team has now confirmed that redirect won't be backported to 7.x, I'd like to take a stab at getting this working. Can someone point me to the docs for ZMailbox?

    Thanks
    Release 7.1.4_GA_2555.UBUNTU8_64 UBUNTU8_64 NETWORK edition, Patch 7.1.4_P1

  7. #7
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    It would be cool if there was any docs for zmailbox.
    For now, the only "doc" is to download the source code and read it.

Similar Threads

  1. Old Backup stay in TO_DELETE status and no clearing..
    By bartounet in forum Administrators
    Replies: 0
    Last Post: 10-05-2010, 08:40 AM
  2. Replies: 9
    Last Post: 03-01-2008, 08:21 PM
  3. [SOLVED] Clamav problem ? What's happening ?
    By aNt1X in forum Installation
    Replies: 23
    Last Post: 02-14-2008, 05:43 AM
  4. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  5. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 10:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •