Hi there,
I recently developed a plugin which displays some FAQ content of our JIRA instance. Two weeks ago, everything worked really smoothly. Yesterday I relaunced the plugin (atlas-create). However, it is not working anymore (no web item links, not accessible over the local address /plugins/servlet/help. Did anybody of you have this problem as well? Is there something wrong in my atlassian-plugin.xml file. Thanks for answering!
<?xml version="1.0" encoding="UTF-8"?> <atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2"> <plugin-info> <description>${project.description}</description> <version>${project.version}</version> <vendor name="${project.organization.name}" url="${project.organization.url}"/> <param name="plugin-icon">images/pluginIcon.png</param> <param name="plugin-logo">images/pluginLogo.png</param> </plugin-info> <!-- add our i18n resource --> <resource type="i18n" name="i18n" location="Help"/> <!-- add our web resources --> <web-resource key="Help-resources" name="Help Web Resources"> <dependency>com.atlassian.auiplugin:ajs</dependency> <resource type="download" name="Help.css" location="/css/Help.css"/> <resource type="download" name="Help.js" location="/js/Help.js"/> <resource type="download" name="images/" location="/images"/> <context>Help</context> </web-resource> <!-- publish our component --> <component key="myPluginComponent" class="ch.uzh.ifi.help.MyPluginComponentImpl" public="true"> <interface>ch.uzh.ifi.help.MyPluginComponent</interface> </component> <!-- import from the product container --> <component-import key="applicationProperties" interface="com.atlassian.sal.api.ApplicationProperties"/> <!-- Websection and Webitems --> <web-section key="help-section" name="HelpSection" location="help-link" weight="10"/> <web-item key="help-link" name="Help" section="system.top.navigation.bar" weight="47"> <label>Help</label> <link linkId="help-link">http://www.atlassian.com</link> </web-item> <web-item key="i-cockpit-description" name="iCockpit Description" section="help-link/help-section" weight="47"> <label>iCockpit Description</label> <link linkId="help-link">/plugins/servlet/description</link> </web-item> <web-item key="faq" name="FAQ" section="help-link/help-section" weight="47"> <label>FAQ</label> <link linkId="help-link">/plugins/servlet/help</link> </web-item> <!-- Servlets (Help, Description) --> <servlet name="Help" i18n-name-key="help.name" key="help" class="ch.uzh.ifi.help.Help"> <description key="help.description">The Help Plugin</description> <url-pattern>/help</url-pattern> </servlet> <servlet name="Description" i18n-name-key="description.name" key="description" class="ch.uzh.ifi.description.Description"> <description key="description.description">The Description Plugin</description> <url-pattern>/description</url-pattern> </servlet> <component-import key="templateRenderer" interface="com.atlassian.templaterenderer.TemplateRenderer" filter=""/> <component-import key="userManager" interface="com.atlassian.sal.api.user.UserManager" filter=""/> <component-import key="loginUriProvider" interface="com.atlassian.sal.api.auth.LoginUriProvider" filter=""/> <component-import key="pluginSettingsFactory" interface="com.atlassian.sal.api.pluginsettings.PluginSettingsFactory" filter=""/> </atlassian-plugin>
Community moderators have prevented the ability to post new answers.
What does the log file say?
I am sorry, I couldn't upload everything but I just saw that warning that the plugins failed to load. Is there something wrong probably with the Java file? Thanks a lot for answering Nic!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The link the log gives you is worth a read, but your pom is referring to lasses that aren't in your code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks a lot for your hint to always check the log. just got it working again. I don't know why, but one of my Java classes just disappeared.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.