How to install Add-On properly in JIRA System?

JIRA Plugin Developer August 10, 2014

Hello to all,

I've finished my plugin. Now I have already uploaded and installed the jar-file from the target-folder into the jira system. Whenever I jump to the homepage of my plugin, it seems the plugin doesn't read the css and javascript files. In the JIRA System where I created the plugin everything is running correctly. And all functionalities are working fine.

What do I have to care for when uploading my plugin into an existing JIRA System. My Plugin uses

  • Webwork
  • Active Objects
  • Web Resources

Please help me.

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 10, 2014

What are the differences between your development server and production? Compare the system info pages for a start.

Are you getting any log errors on production? Either when running the plugin or loading it initially?

JIRA Plugin Developer August 10, 2014

I use different tomcat servers. The java version is also different.

I don't know how to check the log infos in an already existing jira system. I only know how to see the logs on my own system from the installation wizard.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 11, 2014

Right. Well, the Tomcat variation might be it, but running stuff compiled under one version of Java in a different version is asking for trouble.

Try building your plugin using the version of Java (and ideally, Tomcat) that you are using in production.

JIRA Plugin Developer August 11, 2014

Where can I change my java version of my Plugin?

JIRA Plugin Developer August 11, 2014

OK, java version is now the same. Still the views aren't displayed properly. Do you think it depends on my base url. For the system I want to integrat the plugin it's https instead http?

I've got an oracle db instead of hsql and I am using active objects.

Do I have to restart the JIRA System, so the plugin can run correctly?

Any ideas?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 11, 2014

You've completely recompiled the plugin with the correct target version of Java, and re-installed it. A restart of Jira might be helpful to ensure it's all "clean"

The base url is critical to Jira, you can only have one, so I'm not sure why you're asking about http and https. It's one or the other, but your plugin should not really care, it should just work. If it's trying to use a different url from the base in Jira, then it's wrong and it's not going to work.

Database and active objects shouldn't matter at all - if you've written the code correctly, then that's all abstracted and you could be using hsql, mysql or anything else Jira runs on.

JIRA Plugin Developer August 11, 2014

Yes, I've recompiled it completly. But no effects.

how can I restart Jira? It's the test-system of my company I'm focusing. I've got admin rights.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 11, 2014

Log in to the server, stop the service (or use the shutdown script), then start it again (or use the startup script)

JIRA Plugin Developer August 13, 2014

OK, I found the mistake why all my views were displayed weird in our productive system.

In my own test system, I always used URL paths including jira like <host>/jira/secure/Resource.jspa.

Omitting "jira" in the URL causes that the single websites are called correctly and displayed properly like intended. But now when I use my own JIRA test-system I can't call the websites anymore because jira is missing in the URL. Well, what counts is that my plugin works fine in productive system.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 13, 2014

Sounds like you've written a plugin with a hard-coded path. You should have used the base url in the application - <base url>/secure in your example.

Suggest an answer

Log in or Sign up to answer