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

Fr0zt Mar 26, 2019

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

0 votes
Andrew 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

Tobias Binna May 24, 2019

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.

0 votes
Tobias Binna May 24, 2019

@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...

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

12,120 views 59 57
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