NoClassDefFoundError with Xcode build task

I've never been abe to get the Xcode plugin working. Builds always fail with:

jvm 1 | 2013-05-16 14:04:03,439 ERROR [7-BAM::Default Agent::Agent:pool-19-thread-1] [PrefixDelegatingModuleFactory] Detected an error (NoClassDefFoundError) instantiating the module for plugin 'com.atlassian.bamboo.plugins.xcode.bamboo-xcode-plugin' for module 'xcodeTaskType': com/atlassian/bamboo/task/CommonTaskContext. This error is usually caused by your plugin using a imported component class that itself relies on other packages in the product. You can probably fix this by adding the missing class's package to your <Import-Package> instructions; for more details on how to fix this, see .

jvm 1 | 2013-05-16 14:04:03,439 FATAL [7-BAM::Default Agent::Agent:pool-19-thread-1] [ExecuteBuildTask] Failed to execute the build 'TPROJ-TPLAN-JOB1-5'

jvm 1 | java.lang.NoClassDefFoundError: com/atlassian/bamboo/task/CommonTaskContext

jvm 1 |at java.lang.Class.getDeclaredConstructors0(Native Method)

jvm 1 |at java.lang.Class.privateGetDeclaredConstructors(

jvm 1 |at java.lang.Class.getConstructors(

jvm 1 |at

jvm 1 |at

jvm 1 |at

jvm 1 |at$

jvm 1 |at Method)

jvm 1 |at

jvm 1 |at

jvm 1 |at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)

jvm 1 |at sun.reflect.DelegatingMethodAccessorImpl.invoke(

jvm 1 |at java.lang.reflect.Method.invoke(

jvm 1 |at com.atlassian.plugin.osgi.spring.DefaultSpringContainerAccessor.createBean(

jvm 1 |at com.atlassian.plugin.module.ClassPrefixModuleFactory.createModule(

jvm 1 |at com.atlassian.plugin.module.PrefixDelegatingModuleFactory.createModule(

jvm 1 |at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.createModule(

jvm 1 |at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.getModule(

jvm 1 |at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(

jvm 1 |at com.atlassian.bamboo.task.TaskExecutorImpl.execute(

jvm 1 |at

jvm 1 |at

jvm 1 |at

jvm 1 |at$

jvm 1 |at$

jvm 1 |at

jvm 1 | Caused by: java.lang.ClassNotFoundException: com.atlassian.bamboo.task.CommonTaskContext

jvm 1 |at$

jvm 1 |at Method)

jvm 1 |at

jvm 1 |at java.lang.ClassLoader.loadClass(

jvm 1 |at sun.misc.Launcher$AppClassLoader.loadClass(

jvm 1 |at java.lang.ClassLoader.loadClass(

jvm 1 |at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(

jvm 1 |at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(

jvm 1 |at org.apache.felix.framework.ExtensionManager$ExtensionManagerModule.getClassByDelegation(

jvm 1 |at org.apache.felix.framework.resolver.WireImpl.getClass(

jvm 1 |at org.apache.felix.framework.ModuleImpl.searchImports(

jvm 1 |at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(

jvm 1 |at org.apache.felix.framework.ModuleImpl.access$200(

jvm 1 |at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(

jvm 1 |at java.lang.ClassLoader.loadClass(

jvm 1 |... 26 more

jvm 1 | 2013-05-16 14:04:03,452 INFO [7-BAM::Default Agent::Agent:pool-19-thread-1] [DefaultErrorHandler] Recording an error: Failed to execute the build 'TPROJ-TPLAN-JOB1-5' : TPROJ-TPLAN-JOB1 : com/atlassian/bamboo/task/CommonTaskContext

3 answers

1 accepted

In the end I fixed it by using the 5.0beta of Bamboo. It seems the current plugin only really works with that.

Getting the same error - any luck?

Hi Jobin,

could you please give a small hint how to downgrade the plugin, thanks.

You'll need to uninstall the plugin and download v1.8 from the plugin site.

Thanks Darren. This worked for me.

0 vote

Downgrade the XCode plugin to v1.8 and try again. That fixed the issue for me.

That worked for me. Thanks.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published yesterday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

62 views 0 4
Read article

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