Could not find a handler capable of installing the plugin
I'm in the process of creating a custom plugin to export to HTML, and when I follow the instructions at (http://k15t.com/display/EHLP/Creating+and+shipping+a+Template+as+Confluence+Plugin), and upload the plugin as a .jar I get the following message:
Could not find a handler capable of installing the plugin at ExportTest.jar. Check that the file is a valid plugin.
Any suggestions are welcome
-
Hi,
the reason for this is probably that the atlassian-plugin.xml file is either missing or in the wrong directory structure.
Can you attach your jar file to this thread ? If it contains confidential content you can also send an email to support@k15t.com with the jar file attached.
Best regards,
Jens -
Thanks for your prompt response. I've uploaded my jar file.
Improved HTML Export.jar -
*Updated:
Improved HTML Export.jar -
Hi,
it shouldn't matter what tool you use to create the archive but you absolutely need to create a ZIP file. Jar files are similar to ZIP files that's why you can simply rename them.
You cannot rename a RAR file because the internal archive format is completely different so Confluence can't deal with it.Furthermore your first version contained a top level directory - which is not allowed. I see that the second version no longer contains that one (which is correct).
Also you copied some resources from the default template into your archive. This is not required unless you set the "copyDefaultResources" parameter to false in your template.
Best regards,
Jens -
I ran into the same problem. I jar'ed and unzipped the file that didn't work and found the directory structure had the top-level directory included, just like you mentioned above.
This is how I created the jar that didn't work:
jar cvf steffens-scroll-html-template.jar steffens-scroll-html-template
I then simply specified the target directory with the -C option and . to include all files in that directory:
jar cvf steffens-scroll-html-template.jar -C steffens-scroll-html-template .
Now it's working! Just wanted to say in case someone else has to google this issue.
You might want to consider updating the description page (http://www.k15t.com/display/HTML/Creating+and+shipping+a+Template+as+Confluence+Plugin).
Please sign in to leave a comment.
Comments
9 comments