Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Modified Bundled Plugin won´t load

P1ll3 March 10, 2020

Hello,

we modified the jira-user-profile-plugin-4.0.3. We use JIRA Server 8.6.1.

Compilation and packaging from source was successful. We exchanged the jar in the corresponding WEB-INF directory. We deleted the plugin cache as well.

The Plugin won´t load and we see a message in the logs like:

'com.atlassian.jira.jira-user-profile-plugin' - 'Atlassian Jira - Plugins - User Profile Plugin' is unaccounted for.

Why is the plugin not getting loaded/started?

It is even not getting loaded when we just replace the class and vm files in the original jar file (and again deleted the plugin cache).

One of the admins accidentally tried to install the plugin manually through the administrative page when jira was running. Could this be the cause for this error message? How can we clean this up?

The plugin is not disabled (even not listed there) in the table pluginstate.

We tried several approaches but we cannot get the problem solved.

Thanks and best regards.

2 answers

1 accepted

0 votes
Answer accepted
P1ll3 March 13, 2020

The problem was a missing annotation @ComponentImport at for a new parameter GroupManager in the constructor.
We saw following exceptions in the log:

java.lang.RuntimeException: Unable to enable web fragment

...

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.jira.plugins.userprofile.DetailsUserProfilePanel': Resolution of declared constructors on bean Class [com.atlassian.jira.plugins.userprofile.DetailsUserProfilePanel] from ClassLoader [com.atlassian.jira.user-profile-plugin [87]] failed; nested exception is java.lang.NoClassDefFoundError: com/atlassian/jira/security/groups/GroupManager

0 votes
P1ll3 March 11, 2020

We see following error in the log:

The following plugins failed to load:
Atlassian Jira - Plugins - User Profile Plugin: There was a problem loading the module descriptor: java.lang.Void.<br/>Unable to enable web fragment

 

The Plugin is compiled with a newer version of JDK than the JIRA runs on but both are of version 1.8.

JIRA Server runs on delivered openJDK:

openjdk version "1.8.0_202"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_202-b08)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.202-b08, mixed mode)

 

Plugin was built with

java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)

Suggest an answer

Log in or Sign up to answer