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 Search this Thread Display Modes
  #1 (permalink)  
Old 01-26-2011, 07:33 AM
mzi mzi is offline
Beginner Member
 
Posts: 3
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:
How to retrieve the mailbox object with MailboxManager in Zimbra 6 ?

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 07:45 AM..
Reply With Quote
  #2 (permalink)  
Old 01-27-2011, 01:10 AM
Zimlet Guru & Moderator
 
Posts: 288
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:
How to retrieve the mailbox object with MailboxManager in Zimbra 6 ?
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.
Reply With Quote
  #3 (permalink)  
Old 01-27-2011, 02:38 AM
mzi mzi is offline
Beginner Member
 
Posts: 3
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
Reply With Quote
  #4 (permalink)  
Old 01-27-2011, 09:04 AM
Zimlet Guru & Moderator
 
Posts: 288
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.
Reply With Quote
  #5 (permalink)  
Old 03-15-2012, 04:14 PM
Senior Member
 
Posts: 63
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... ;-)
Reply With Quote
  #6 (permalink)  
Old 03-28-2012, 09:16 AM
Senior Member
 
Posts: 63
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
Reply With Quote
  #7 (permalink)  
Old 04-02-2012, 01:18 AM
Zimlet Guru & Moderator
 
Posts: 288
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.
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.