Hello,
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 org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at de.iconcept.ictime.managers.DefaultICTimeLicenseManager.<clinit>(DefaultICTimeLicenseManager.java:32)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
... 21 more
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772)
at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 29 more
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
Tobias
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you - updating JIRA to the latest version did the job.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I run the sample application from this URL http://java.dzone.com/articles/struts2-tutorial-part-47. 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(SLF4JLogFactory.java:155) at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:131) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at com.opensymphony.xwork2.util.logging.commons.CommonsLoggerFactory.getLoggerImpl(CommonsLoggerFactory.java:18) at com.opensymphony.xwork2.util.logging.LoggerFactory.getLogger(LoggerFactory.java:31) at org.apache.struts2.tiles.StrutsTilesListener.<clinit>(StrutsTilesListener.java:50) 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(DefaultInstanceManager.java:119) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4660) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521) ... 21 more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.