Pre-Post Build Command Runner Plug-in install issue ( ClassNotFound )
Asked by Christopher Lefevre:

I tried to install the [Pre-Post Build Command Runner](https://marketplace.atlassian.com/plugins/com.sysbliss.bamboo.plugins.prepost-build-command/overview) at the request of a developer and in the logs I'm getting an error about a ClassNotFoundException for the Atlassian class: com.atlassian.bamboo.build.CustomPreBuildAction

I assume it's a permissions issue maybe? Not quite sure though, as the installation said to simply add it to the ./libs directory, and I matched all of the ownership/group/read/write permissions of every other plugin in the folder. Running on Ubuntu.

The stack trace does not seem to add much more useful context to me at least:  
2017-02-21 13:32:33,787 ERROR \[localhost-startStop-1\] \[DefaultPluginManager\] There was an error loading the descriptor 'Pre Command Agent Runner' of plugin 'com.sysbliss.bamboo.plugins.prepost-build-command:5.10.0'. Disabling.  
java.lang.NoClassDefFoundError: com/atlassian/bamboo/build/CustomPreBuildAction  
at java.lang.ClassLoader.defineClass1(Native Method)  
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)  
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)  
at [java.net](http://java.net).URLClassLoader.defineClass(URLClassLoader.java:467)  
at [java.net](http://java.net).URLClassLoader.access$100(URLClassLoader.java:73)  
at [java.net](http://java.net).URLClassLoader$1.run(URLClassLoader.java:368)  
at [java.net](http://java.net).URLClassLoader$1.run(URLClassLoader.java:362)  
at java.security.AccessController.doPrivileged(Native Method)  
at [java.net](http://java.net).URLClassLoader.findClass(URLClassLoader.java:361)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)  
at java.lang.Class.forName0(Native Method)  
at java.lang.Class.forName(Class.java:348)  
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1318)  
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1166)  
at com.atlassian.plugin.util.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:40)  
at com.atlassian.plugin.impl.StaticPlugin.loadClass(StaticPlugin.java:22)  
at com.atlassian.plugin.module.ClassPrefixModuleFactory.getModuleClass(ClassPrefixModuleFactory.java:44)  
at com.atlassian.plugin.module.PrefixDelegatingModuleFactory.guessModuleClass(PrefixDelegatingModuleFactory.java:145)  
at com.atlassian.plugin.descriptors.AbstractModuleDescriptor.loadClass(AbstractModuleDescriptor.java:204)  
at com.atlassian.plugin.descriptors.AbstractModuleDescriptor.enabled(AbstractModuleDescriptor.java:423)  
at com.atlassian.plugin.manager.DefaultPluginManager.notifyModuleEnabled(DefaultPluginManager.java:1883)  
at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModule(DefaultPluginManager.java:1631)  
at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModules(DefaultPluginManager.java:1608)  
at com.atlassian.plugin.manager.DefaultPluginManager.enableDependentPlugins(DefaultPluginManager.java:1094)  
at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:1055)  
at com.atlassian.bamboo.plugin.BambooPluginManager.addPlugins(BambooPluginManager.java:100)  
at com.atlassian.plugin.manager.DefaultPluginManager.earlyStartup(DefaultPluginManager.java:474)  
at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:404)  
at com.atlassian.bamboo.container.BambooContainer.init(BambooContainer.java:211)  
at com.atlassian.bamboo.container.BambooContainer.initialise(BambooContainer.java:196)  
at com.atlassian.bamboo.upgrade.UpgradeLauncher.initialiseBambooContainer(UpgradeLauncher.java:184)  
at com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(UpgradeLauncher.java:97)  
at com.atlassian.bamboo.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:41)  
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4842)  
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303)  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)  
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)  
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)  
Caused by: java.lang.ClassNotFoundException: com.atlassian.bamboo.build.CustomPreBuildAction  
at [java.net](http://java.net).URLClassLoader.findClass(URLClassLoader.java:381)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)  
... 43 more  

<br />


Answers:
author: Krystian Brazulewicz
body: > installation said to simply add it to the ./libs directory

I understand you meant `WEB-INF/lib`. Anyways this is unexpected. Please contact [Bamboo Support](https://support.atlassian.com/servicedesk/customer/portal/10) for help.


Tags: bamboo-administration