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 09-26-2009, 10:15 AM
Senior Member
 
Posts: 51
Default please look over my .xml file.

I have a zimple zimlet named com_dmrcom_addCustomer I have the xml file named com_dmrcom_addCustomer.xml as the only file zipped into com_dmrcom_addcustomer.zip


When I upload it I get a failure .

here is my com_dmrcom_addCustomer.xml
Code:
<zimlet name="com_dmrcom_addCustomer" version="1.0" description="add new customer to DMR">

<zimletPanelItem label="Create Customer">
  <toolTipText>
  Drag a customer install from the calendar to put it into the DMR customer DB
  </toolTipText>

  <dragSource type="ZmAppt">
      <canvas type="window"/>
      <actionUrl target="/DMRCustomer/customers" method=post>
          <param name="subject">${obj.subject}</param>
          <param name="notes">${obj.notes}</param>
          <param name="id">${obj.id}</param>
          <param name="command">newZimbra</param>
      </actionUrl>
  </dragSource>

</zimletPanelItem>

</zimlet>
Here is my log file

Code:
 
2009-09-25 11:18:33,735 INFO  [btpool0-1159] [ip=208.92.0.2;ua=Mozilla/5.0 (X11;; U;; Linux i686;; en-US;; rv:1.9.0.14) Gecko/2009090216 Ubuntu/8.04 (hardy) Firefox/3.0.14;] mailbox - FileUploadServlet received Upload: { accountId=7fe5cfe1-2e4e-4ed8-8950-c83688fe6796, time=Fri Sep 25 11:18:33 PDT 2009, uploadId=0b800e13-1672-41de-8c65-68270db1db27:41a59583-3030-481c-b9d1-fc5163e91769, com_dmrcom_addCustomer.zip}
ip=208.92.0.2;ua=ZimbraWebClient - FF3.0 (Linux);] soap - DeployZimletRequest
2009-09-25 11:18:34,374 INFO  [Thread-10688] [] zimlet - deploy
java.io.FileNotFoundException: zimlet description not found: com_dmrcom_addCustomer.xml
        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.<init>(ZimletFile.java:146)
        at com.zimbra.cs.service.admin.DeployZimlet$DeployThread.run(DeployZimlet.java:96)
        at java.lang.Thread.run(Thread.java:595)
2009-09-25 11:18:35,064 INFO  [btpool0-1159] [name=sage@dmrcom.com;mid=167;ip=208.92.0.2;ua=ZimbraWebClient - FF3.0 (Linux);] soap - DeployZimletRequest
2009-09-25 11:18:35,106 INFO  [btpool0-1159] [name=sage@dmrcom.com;mid=167;ip=208.92.0.2;ua=ZimbraWebClient - FF3.0 (Linux);] soap - GetAllZimletsRequest

any ideas of what to do
Reply With Quote
  #2 (permalink)  
Old 09-26-2009, 10:56 AM
Project Contributor
 
Posts: 67
Default

Hello, It sounds like you are missing a config_template.xml in your .zip file:

Code:
<zimletConfig name="com_dmrcom_addCustomer" version="1.0">
</zimletConfig>
Reply With Quote
  #3 (permalink)  
Old 09-26-2009, 11:12 AM
Senior Member
 
Posts: 51
Default

I did not see that anywhere in the samples. What do I put in that file?

My zip only had the com_dmrcom_addCustomer.xml zipped into it. It was all that was mentioned in the hello example

Sage
Reply With Quote
  #4 (permalink)  
Old 09-26-2009, 11:43 AM
Project Contributor
 
Posts: 67
Default

Never mind, apparently the config_template.xml file is not necessary. But, I did find the issue (working version of your zimlet attached):

You needed quotes around method=post -> method="post"
Attached Files
File Type: zip com_dmrcom_addcustomer.zip (457 Bytes, 5 views)
Reply With Quote
  #5 (permalink)  
Old 09-26-2009, 11:59 AM
Senior Member
 
Posts: 51
Default

wow, thanks, I spent a day trying to figure it out.
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.