zimlet description not found error

Interested in talking about Mash-up's? This is the place.
jisenburg
Posts: 32
Joined: Fri Sep 12, 2014 11:32 pm

zimlet description not found error

Postby jisenburg » Fri Dec 04, 2009 3:14 pm

HELLO I AM ATTEMPTING TO CREATE A REALLY SIMPLE ZIMLET. I WANT TO MAKE A ZIMLET THAT IS A PANELITEM THAT WHEN CLICKING ON IT OPENS A WINDOW TO A WEBSITE.
AS I MENTIONED, BIGTIME NEWBIE HERE, WHEN IT COMES TO MAKING ZIMLETS. :)
I BELIEVE I HAVE THE CORRECT SYNTAX, I THINK, BUT WHEN I ATTEMPT TO DEPLOY VIA THE CLI AND I CHECK THE MAILBOX.LOG I RECIEVE THIS ERROR
JAVA.IO.FILENOTFOUNDEXCEPTION: ZIMLET DESCRIPTION NOT FOUND:
"ROOT_DOMAIN_SIS.XML" ("ROOT_DOMAIN" BEING THE NAME OF MY ZIMLET)
AT COM.ZIMBRA.CS.ZIMLET.ZIMLETFILE.INITZIMLETDESCRIPTION(ZIMLETFILE.JAVA:199)

AT COM.ZIMBRA.CS.ZIMLET.ZIMLETFILE.INITIALIZE(ZIMLETFILE.JAVA:191)

AT COM.ZIMBRA.CS.ZIMLET.ZIMLETFILE.(ZIMLETFILE.JAVA:146)

AT COM.ZIMBRA.CS.SERVICE.ADMIN.DEPLOYZIMLET$DEPLOY
I RENAMED THE XML OF MY ZIMLET TO "COM_ZIMBRA_SIS" AND HAVE ATTACHED THE FILE HERE ON MY POST. I CHECKED MY DESCRIPTION AND I THINK I HAVE THE CORRECT SYNTAX. CAN ANYONE HELP ME?
THANKS.
AGAIN IF ANYONE THINKS I AM WAY OFF ON MY SYNTAX ANY HELP WOULD BE APPRICIATED.

com_zimbra_SIS.txt



sposetti
Advanced member
Advanced member
Posts: 103
Joined: Sat Sep 13, 2014 12:51 am

zimlet description not found error

Postby sposetti » Fri Dec 04, 2009 4:57 pm

The name of your zimlet, the folder and the zimlet definition file name xml all need to match. Looks like you have a zimlet named "root_domain" but have your zimlet definition file named ="root_domain_SIS.xml".
Here is what your zimlet folder structure should look like (for example, for a zimlet named "my_test_zimlet"):
/my_test_zimlet/

/my_test_zimlet/my_test_zimlet.xml


And in my_test_zimlet.xml, in the tag, the name attribute should = "my_test_zimlet" like this:
jisenburg
Posts: 32
Joined: Fri Sep 12, 2014 11:32 pm

zimlet description not found error

Postby jisenburg » Fri Dec 04, 2009 5:20 pm

Thanks,
I have that info correct. Do I need to zip the folder above the .xml in the zimlet zip file? Does that make sense? I know that i have not been doing that. Also i have been reading; do i need to export my zimlet template config? with getConfigTemplate? if so what exactly do i need to do with it?
It is strange I am getting that same error even with the corrections you mentioned.
Thanks again for any help.
sposetti
Advanced member
Advanced member
Posts: 103
Joined: Sat Sep 13, 2014 12:51 am

zimlet description not found error

Postby sposetti » Fri Dec 04, 2009 8:49 pm

You want to zip from the folder (not above it). And you want to be sure nothing else is in the ZIP other than the zimlet files. If you are making your zip on Mac (and using the UI "Compress" feature), it will put other hidden Mac stuff (__MACOX stuff) in there which will cause the zimlet to fail to deploy. So zip your zimlet from the terminal. This situation doesn't look like the error you are showing but just an FYI.
For the type of zimlet you are building, you will really only need two files in the ZIP:
my_test_zimlet.xml - the zimlet definition file

config_template.xml - the zimlet config file (used to allow access to the domain you plan on to access when clicking the url)
Here's a sample "google" zimlet that will link to google when it sees the word "google". Here is the zimlet definition file:






google





http://www.google.com" />






And this is the config_template.xml file:




*.google.com,goole.com




There is nothing you need to do to the config_template.xml file. It will be read on deploy and will adjust the allowedDomains.
Beyond that, if you want, you can post your zimlet zip and I can take a quick look.
jisenburg
Posts: 32
Joined: Fri Sep 12, 2014 11:32 pm

zimlet description not found error

Postby jisenburg » Mon Dec 07, 2009 8:07 am

Here is my zimlet thus far. Could you take a look? I am not quite sure why it is not deploying. It has to be something simple i am missing I think. I tried the config_template.xml as well and that did not work either.
Thanks for all you help.

org_tremont702_SIS.zip

sposetti
Advanced member
Advanced member
Posts: 103
Joined: Sat Sep 13, 2014 12:51 am

zimlet description not found error

Postby sposetti » Mon Dec 07, 2009 11:49 am

A couple things I changed/fixed and got it to deploy:
1) Doublecheck your config_template.xml...looks like it had syntax errors in it. You have:
*.sisk12.com,sisk12.com
Should be:
"allowedDomains">*.sisk12.com,sisk12.com
2) Don't use UPPERCASE letters in your zimlet name. It should all be lower case. Be sure to change in all applicable places:
Zimlet Bundle: org_tremont702_sis.zip

Zimlet Definition File: org_tremont702_sis.xml
Zimlet tag inside of Definition file:
sis" ...
jisenburg
Posts: 32
Joined: Fri Sep 12, 2014 11:32 pm

zimlet description not found error

Postby jisenburg » Mon Dec 07, 2009 1:17 pm

Thanks a bunch for your help with getting my zimlet to deploy. I got it to deploy on my system however I think I have not used the proper syntax.
In my zimlet I wanted to have the panelItem be a link to open the website on a singleClick. However when i single click it it does not work. Do you have any tips or a good direction for me to try and figure out what i am doing wrong?
Sorry again. I am a major newb at java, zimlet stuff.
Thanks again for you help!
jisenburg
Posts: 32
Joined: Fri Sep 12, 2014 11:32 pm

zimlet description not found error

Postby jisenburg » Tue Dec 08, 2009 10:02 am

Alright I found it! Instead of selecting the "singleClicked" option i should have used the "onClick" option. Works like a charm. :)


Now it's onto trying to integrate a feature for someone to enter their user credentials and have it save that for when they click on the link it automatically logs them in.
Any tips on how to do that. I have been looking at the userProperties option but to no avail on getting it to link the the website.
Thanks again!
sposetti
Advanced member
Advanced member
Posts: 103
Joined: Sat Sep 13, 2014 12:51 am

zimlet description not found error

Postby sposetti » Wed Dec 09, 2009 8:49 pm

Add the user properties you want to store to your Zimlet Definition File:







When you double-click on the zimlet, the Property Editor dialog will be presented. A user can enter these two properties and these properties will be stored away.
To use these user properties values as, for example, parameters to an action url, you can specify to the action url and use the props.
http://www.google.com">

${prop.my_test_username}

${prop.my_test_password}


The ${prop.my_test_username} and ${prop.my_test_password} syntax will replace those variables with the user properties and append that information to the action url.
http://www.google.com?myusername=whatevertheusernameuserpropis&password=whatevertheusernameuserpropis
Note: I don't suggest you pass the password as a url param in plain text like this. Just showing providing you this as an example of using user props.
jisenburg
Posts: 32
Joined: Fri Sep 12, 2014 11:32 pm

zimlet description not found error

Postby jisenburg » Thu Dec 10, 2009 7:40 am

Thanks for the info. You have helped me tons!
How would I go about encrypting the password instead of using the URL? Does that require me to utilize javascript?
Like I have said in my past posts. I would like to have them be able to save their username and password and then upon clicking the zimlet it would open the site and log them in with these credentials.
Is there a way to encrypt the password?
This is working out great! :) Thanks again.
On another quick note however all my sites are https. Does this make a difference in your opinion?

Return to “Zimlets”

Who is online

Users browsing this forum: No registered users and 2 guests