It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Error enabling a plugin Edited

Hello.
I am using JSD 4.0.2 and Jira Core 8.0.2.
I am trying to enable a plugin in my Jira (NTX Plugin) but I am getting errors.

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.atlassian.ntx.utils.PropertiesSetup]; nested exception is java.io.FileNotFoundException: OSGi resource[classpath:com/atlassian/plugin/web/baseconditions/BaseCondition.class|bnd.id=236|bnd.sym=com.atlassian.ntx.ntxUI] cannot be resolved to URL because it does not exist

Can you help me with this?

 

Errors:

2019-03-25 14:38:55,559 ThreadPoolAsyncTaskExecutor::Thread 38 ERROR admin 878x587x1 9rmu72 0:0:0:0:0:0:0:1 /rest/plugins/1.0/ [c.a.p.osgi.factory.OsgiPlugin] Unable to start the plugin container for plugin 'com.atlassian.ntx.ntxUI'
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.atlassian.ntx.utils.PropertiesSetup]; nested exception is java.io.FileNotFoundException: OSGi resource[classpath:com/atlassian/plugin/web/baseconditions/BaseCondition.class|bnd.id=236|bnd.sym=com.atlassian.ntx.ntxUI] cannot be resolved to URL because it does not exist
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:184)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:316)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:233)
...
	at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager$1.run(LifecycleManager.java:213)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.FileNotFoundException: OSGi resource[classpath:com/atlassian/plugin/web/baseconditions/BaseCondition.class|bnd.id=236|bnd.sym=com.atlassian.ntx.ntxUI] cannot be resolved to URL because it does not exist
	at org.eclipse.gemini.blueprint.io.OsgiBundleResource.getURL(OsgiBundleResource.java:229)
	at org.eclipse.gemini.blueprint.io.OsgiBundleResource.getInputStream(OsgiBundleResource.java:181)
	...
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:176)
	... 15 more

 

2 answers

@Fr0zt Adding com.atlassian.plugin.web.baseconditions to Import-Package in the jira-maven-plugin config fixed this for me.

<Import-Package>
...
com.atlassian.jira.event,
com.atlassian.plugin.web.baseconditions,
...
</Import-Package>

After adding the baseconditions package I had another similar error with events and adding the event package fix that as well.

I don't understand why this was working before...

Like Tobias Binna likes this
0 votes
Andy_Heinzer Atlassian Team Mar 28, 2019

Hi,

Is this problem happening in a new installation of Jira 8.0.2 or was Jira working in this version for some time before this problem started happening?

Could you run the following SQL command on the Jira database and let us know the results?

select * from pluginstate;

This will return to us a listing of all plugins in Jira that have been flagged on a database level to be disabled.   I would expect any plugins you manually disabled to appear here, but I am interested to learn if one or more system plugins might exist on this list and in turn not be getting loaded up when Jira starts.

Regards,

Andy

Similar issue here. Seeing this when trying to make app compatible with Jira 8.1.1

 nested exception is java.io.FileNotFoundException: OSGi resource[classpath:com/atlassian/plugin/web/baseconditions/BaseCondition.class|bnd.id=218|bnd.sym=io.toolsplus.intercom-for-jira-server] cannot be resolved to URL because it does not exist
[INFO] [talledLocalContainer] OSGi resource[classpath:com/atlassian/plugin/web/baseconditions/BaseCondition.class|bnd.id=218|bnd.sym=io.toolsplus.intercom-for-jira-server] cannot be resolved to URL because it does not exist

 Pluginstate query above does not return anything. No records in DB.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Keep your team in the loop with Team @mentions in Jira Software!

Hi everyone! My name is Jenny, a Product Manager at Atlassian. After launching Team @mentions in Confluence, we heard a lot of positive feedback from customers that they love how easy it is to @men...

501 views 5 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you