java.lang.NoClassDefFoundError: javax/servlet/ServletContext

when i run plugin using atlas-run command i give this exception on my atlassian-jira.log

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:679)

Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContext

at java.lang.Class.getDeclaredMethods0(Native Method)

at java.lang.Class.privateGetDeclaredMethods(Class.java:2482)

at java.lang.Class.privateGetPublicMethods(Class.java:2602)

at java.lang.Class.getMethods(Class.java:1457)

at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1303)

at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1177)

at java.beans.Introspector.getBeanInfo(Introspector.java:409)

at java.beans.Introspector.getBeanInfo(Introspector.java:175)

at java.beans.Introspector.getBeanInfo(Introspector.java:238)

at java.beans.Introspector.<init>(Introspector.java:390)

at java.beans.Introspector.getBeanInfo(Introspector.java:175)

at java.beans.Introspector.getBeanInfo(Introspector.java:238)

at java.beans.Introspector.<init>(Introspector.java:390)

at java.beans.Introspector.getBeanInfo(Introspector.java:175)

at java.beans.Introspector.getBeanInfo(Introspector.java:238)

at java.beans.Introspector.<init>(Introspector.java:390)

at java.beans.Introspector.getBeanInfo(Introspector.java:175)

at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:220)

at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:144)

at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:252)

at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:282)

at org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:333)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1247)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)

... 18 more

Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContext

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:266)

... 43 more

what is the reason of that ?

i'll be happy if someone can help me,

thanks in advance,

1 answer

1 accepted

Accepted Answer
0 votes

may be the container version bringing you the problem

you check https://answers.atlassian.com/questions/66628/weird-classnotfoundexception-during-startup-of-osgi-bundles if it may help

thank's ,Tomcat 7 isnt a supported platform for jira 5.0

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

25,286 views 2 7
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you