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

Getting ClassNotFoundException: org.slf4j.LoggerFactory when activating ictime


activation of ictime 2.2.0 in JIRA 5.0.2 fails with the following stacktrace, although slf4j-api-1.5.8.jar and slf4j-log4j12-1.5.8.jar are in the JIRA_HOME\lib directory. Any ideas?

2013-01-21 13:57:11,956 Spring executor 8 ERROR [plugin.osgi.factory.OsgiPlugin] Unable to start the Spring context for plugin de.iconcept.ictime.jira-ictime

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ictimeLicenseManager' defined in URL [bundle://89.0:0/META-INF/spring/atlassian-plugins-components.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory






at Method)











at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(


at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(

at java.util.concurrent.ThreadPoolExecutor$


Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

at de.iconcept.ictime.managers.DefaultICTimeLicenseManager.<clinit>(

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(

at java.lang.reflect.Constructor.newInstance(

at org.springframework.beans.BeanUtils.instantiateClass(



... 21 more

Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory

at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(

at org.apache.felix.framework.ModuleImpl.access$200(

at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(

at java.lang.ClassLoader.loadClass(

... 29 more

1 answer

1 accepted

4 votes
Answer accepted

Hi Simon,

Just to answer this one for the public, as others might have the same problem (we already solved that via email):

It is a known issue that sometimes plugins (especially the more complex ones) do not activate properly. You might find an exception in your logs, but frequently this does not make much sense (like in your case, you get a class not found error, but slf4j-api-1.5.8.jar and slf4j-log4j12-1.5.8.jar are in the correct directory). There are usually two things you should try:

1. Update to the most recent version of JIRA and the JIRA Universal Plugin Manager (UPM). The UPM has been a source of many issues in the past, and many times an update solves your problems.

2. It also has been reported that sometimes simply trying to deactivate/activate the plugin a couple of times helps.

Best regards


Thank you! And yes updating the UPM has likewise helped in several cases with my Confluence plugins. I did not think to enable,disable though. Hopefully these issues are finally stabalizing.

Thank you - updating JIRA to the latest version did the job.

Hi, I run the sample application from this URL I use Tomcat server 7 , Eclipse Indigo , JDK 1.7 and use these jars. commons-beanutils-1.7.0.jar commons-collections.jar commons-digester-1.8.jar commons-fileupload-1.1.1.jar commons-logging.jar commons-chain-1.1.jar freemarker-2.3.8.jar ognl-2.6.11.jar struts2-core-2.1.6.jar struts2-tiles-plugin-2.1.6.jar tiles-api-2.1.2.jar tiles-core-2.2.1.jar tiles-jsp-2.2.1.jar xwork-2.1.2.jar freemarker-2.3.8.jar This is my error code : SEVERE: Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance( at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance( at org.apache.commons.logging.LogFactory.getLog( at com.opensymphony.xwork2.util.logging.commons.CommonsLoggerFactory.getLoggerImpl( at com.opensymphony.xwork2.util.logging.LoggerFactory.getLogger( at org.apache.struts2.tiles.StrutsTilesListener.<clinit>( at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.core.DefaultInstanceManager.newInstance( at org.apache.catalina.core.StandardContext.listenerStart( at org.apache.catalina.core.StandardContext$ at org.apache.catalina.core.StandardContext$ at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$ Source) at Source) Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at org.apache.catalina.loader.WebappClassLoader.loadClass( at org.apache.catalina.loader.WebappClassLoader.loadClass( ... 21 more

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Marketplace Spotlight: Manage your assets with asset management apps

  The role of IT professionals has become increasingly difficult over the last decade. Our organizations work in an increasingly software-powered world and IT professionals are expected to not...

281 views 3 9
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