Results 1 to 3 of 3

Thread: zimlets in Zimbra 6.0.1 and JSP

  1. #1
    Join Date
    Jul 2006
    Location
    Stuttgart / Germany
    Posts
    223
    Rep Power
    9

    Default zimlets in Zimbra 6.0.1 and JSP

    Hi everybody,

    I am currently trying to port a self written Zimlet to ZCS 6.0.1. The Zimlet worked fine in 5.0.x and has a JSP component that imports some com.zimbra.cs... classes.

    In ZCS 6.0.1 it seems to be impossible to import zimbra classes. I always get errors like:

    Code:
    Only a type can be imported. com.zimbra.cs.account.Provisioning resolves to a package
    
    Only a type can be imported. com.zimbra.cs.account.Provisioning.AccountBy resolves to a package
    I had a look into other zimlets in /opt/zimbra/zimlets|zimlets-extra|zimlets-experimental but I could not find a single zimlets that:
    a: works in ZCS 6.0.1
    b: imports zimbra classes in a jsp

    As I am neither a zimlet nor a java expert I want to know if I am missing something or if it is just not possible in ZCS 6.0.1 to import zimbra classes.

    Regards
    Thomas

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

    Default

    I think it's the architecture of the classes in the JAR that changed. Look at the jar content in your server ZCS 6.0.1. or the source code if you have it.

  3. #3
    Join Date
    Jul 2006
    Location
    Stuttgart / Germany
    Posts
    223
    Rep Power
    9

    Default

    Quote Originally Posted by tdesorbaix View Post
    I think it's the architecture of the classes in the JAR that changed. Look at the jar content in your server ZCS 6.0.1. or the source code if you have it.
    Indeed. jar packages and classes have changed somewhat in 6.0. I verified this using the Zimbra Source (fetched from perforce).

    Up to version 5.0.19 you could import com.zimbra.cs.mailbox.Mailbox.OperationContext and then use the OperationContext class.

    Now this class has moved to com.zimbra.cs.mailbox.OperationContext but it seems impossible to import because I get the aforementioned errors...

    Regards
    Thomas

Similar Threads

  1. Replies: 14
    Last Post: 09-26-2011, 11:50 PM
  2. Zimbra Taglib support missing for Zimlets in ZCS 6?
    By chlauber in forum Developers
    Replies: 2
    Last Post: 10-03-2009, 02:00 PM
  3. ZCS 6 not allowing POST to Zimlet's jsp?
    By chlauber in forum Developers
    Replies: 1
    Last Post: 09-15-2009, 10:31 AM
  4. [SOLVED] Getting at Zimbra Data from JSP
    By Chewie71 in forum Zimlets
    Replies: 3
    Last Post: 11-26-2008, 10:15 PM
  5. setting jsp session attributes in Zimbra 5
    By maneesh_81 in forum Developers
    Replies: 0
    Last Post: 09-10-2008, 11:44 PM

Posting Permissions

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