Hi, I encountered a similar issue when using "ant rdebug" command.
I followed all the steps in https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+4.0+test+procedure on a Ubuntu 12.04 machine . I did not see any issues when I did #ant clean-all build-all step. But when I try start the management server using "ant rdebug" command , I see similar exception: Management server starts and I am also able to access the UI using - http://localhost:8080/client and configure a Basic zone and deploy Vms: [ERROR] The rampart-1.5.mar module, which is not valid, caused org/apache/axis2/modules/Module [sshexec] [sshexec] [java] java.lang.NoClassDefFoundError: org/apache/axis2/modules/Module [sshexec] [sshexec] [java] at java.lang.ClassLoader.defineClass1(Native Method) [sshexec] [sshexec] [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:634) [sshexec] [sshexec] [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [sshexec] [sshexec] [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) [sshexec] [sshexec] [java] at java.net.URLClassLoader.access$000(URLClassLoader.java:73) [sshexec] [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:212) [sshexec] [java] at java.security.AccessController.doPrivileged(Native Method) [sshexec] [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:205) [sshexec] [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:321) [sshexec] [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:314) [sshexec] [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:266) [sshexec] [java] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1667) [sshexec] [sshexec] [java] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) [sshexec] [sshexec] [java] at java.lang.Class.forName0(Native Method) [sshexec] [sshexec] [java] at java.lang.Class.forName(Class.java:186) [sshexec] [sshexec] [java] at org.apache.axis2.util.Loader.loadClass(Loader.java:261) [sshexec] [sshexec] [java] at org.apache.axis2.util.Loader.loadClass(Loader.java:229) [sshexec] [java] at org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder.java:67) [sshexec] [java] at org.apache.axis2.deployment.ModuleBuilder.populateModule(ModuleBuilder.java:106) [sshexec] [java] at org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:516) [sshexec] [java] at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:71) [sshexec] [java] at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) [sshexec] [java] at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659) [sshexec] [java] at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:251) [sshexec] [java] at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:68) [sshexec] [java] at org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:63) [sshexec] [java] at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:147) [sshexec] [java] at org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:229) [sshexec] [java] at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) [sshexec] [java] at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525) [sshexec] [java] at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443) [sshexec] [java] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173) [sshexec] [java] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) [sshexec] [java] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420) [sshexec] [java] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733) [sshexec] [java] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) [sshexec] [java] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) [sshexec] [java] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) [sshexec] [java] at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) [sshexec] [java] at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) [sshexec] [java] at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) [sshexec] [java] at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315) [sshexec] [java] at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) [sshexec] [java] at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) [sshexec] [java] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061) [sshexec] [java] at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) [sshexec] [java] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) [sshexec] [java] at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) [sshexec] [java] at org.apache.catalina.core.StandardService.start(StandardService.java:525) [sshexec] [java] at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) [sshexec] [java] at org.apache.catalina.startup.Catalina.start(Catalina.java:595) [sshexec] [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [sshexec] [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [sshexec] [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [sshexec] [sshexec] [java] at java.lang.reflect.Method.invoke(Method.java:616) [sshexec] [sshexec] [java] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) [sshexec] [sshexec] [java] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) [sshexec] [sshexec] [java] Caused by: java.lang.ClassNotFoundException: org.apache.axis2.modules.Module [sshexec] [sshexec] [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:217) [sshexec] [sshexec] [java] at java.security.AccessController.doPrivileged(Native Method) [sshexec] [sshexec] [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:205) [sshexec] [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:321) [sshexec] [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:266) [sshexec] [java] ... 57 more [sshexec] [java] [INFO] Deploying module: script-1.5.1 - file:/opt/cloudstack/apache-tomcat-6.0.32/webapps7080/awsapi/WEB-INF/modules/axis2-scripting-1.5.1.mar [sshexec] [java] [INFO] Deploying module: metadataExchange-1.5.1 - file:/opt/cloudstack/apache-tomcat-6.0.32/webapps7080/awsapi/WEB-INF/modules/mex-1.5.1.mar [sshexec] [sshexec] [java] [INFO] Deploying module: soapmonitor-1.5.1 - file:/opt/cloudstack/apache-tomcat-6.0.32/webapps7080/awsapi/WEB-INF/modules/soapmonitor-1.5.1.mar [sshexec] [sshexec] [java] [INFO] Deploying module: cloud-auth-ec2 - file:/opt/cloudstack/apache-tomcat-6.0.32/webapps7080/awsapi/WEB-INF/modules/cloud-auth-ec2.mar [sshexec] [sshexec] [java] [ERROR] The rahas-1.5.mar module, which is not valid, caused org/apache/axis2/receivers/AbstractInOutMessageReceiver [sshexec] [sshexec] [java] java.lang.NoClassDefFoundError: org/apache/axis2/receivers/AbstractInOutMessageReceiver [sshexec] [sshexec] [java] at java.lang.ClassLoader.defineClass1(Native Method) [sshexec] [sshexec] [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:634) [sshexec] [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [sshexec] [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) [sshexec] [java] at java.net.URLClassLoader.access$000(URLClassLoader.java:73) [sshexec] [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:212) [sshexec] [java] at java.security.AccessController.doPrivileged(Native Method) [sshexec] [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:205) [sshexec] [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:321) [sshexec] [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:314) [sshexec] [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:266) [sshexec] [java] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1667) [sshexec] [java] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) [sshexec] [java] at java.lang.Class.forName0(Native Method) [sshexec] [java] at java.lang.Class.forName(Class.java:186) [sshexec] [java] at org.apache.axis2.util.Loader.loadClass(Loader.java:261) [sshexec] [java] at org.apache.axis2.util.Loader.loadClass(Loader.java:229) [sshexec] [java] at org.apache.axis2.deployment.DescriptionBuilder.loadMessageReceiver(DescriptionBuilder.java:191) [sshexec] [java] at org.apache.axis2.deployment.ModuleBuilder.processOperations(ModuleBuilder.java:270) [sshexec] [java] at org.apache.axis2.deployment.ModuleBuilder.populateModule(ModuleBuilder.java:208) [sshexec] [java] at org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:516) [sshexec] [java] at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:71) [sshexec] [java] at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) [sshexec] [java] at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659) [sshexec] [java] at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:251) [sshexec] [java] at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:68) [sshexec] [java] at org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:63) [sshexec] [sshexec] [java] at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:147) [sshexec] [sshexec] [java] at org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:229) [sshexec] [java] at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) [sshexec] [java] at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525) [sshexec] [java] at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443) [sshexec] [java] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173) [sshexec] [java] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) [sshexec] [java] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420) [sshexec] [java] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733) [sshexec] [java] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) [sshexec] [java] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) [sshexec] [java] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) [sshexec] [java] at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) [sshexec] [java] at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) [sshexec] [java] at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) [sshexec] [java] at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315) [sshexec] [java] at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) [sshexec] [java] at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) [sshexec] [java] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061) [sshexec] [java] at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) [sshexec] [java] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) [sshexec] [java] at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) [sshexec] [java] at org.apache.catalina.core.StandardService.start(StandardService.java:525) [sshexec] [java] at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) [sshexec] [java] at org.apache.catalina.startup.Catalina.start(Catalina.java:595) [sshexec] [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [sshexec] [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [sshexec] [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [sshexec] [java] at java.lang.reflect.Method.invoke(Method.java:616) [sshexec] [java] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) [sshexec] [java] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) [sshexec] [java] Caused by: java.lang.ClassNotFoundException: org.apache.axis2.receivers.AbstractInOutMessageReceiver [sshexec] [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:217) [sshexec] [java] at java.security.AccessController.doPrivileged(Native Method) [sshexec] [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:205) [sshexec] [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:321) [sshexec] [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:266) [sshexec] [java] ... 58 more [sshexec] [java] [INFO] Deploying module: metadataExchange-1.5.1-impl - file:/opt/cloudstack/apache-tomcat-6.0.32/lib/mex-1.5.1-impl.jar [sshexec] [java] [INFO] Deploying module: addressing-1.5.1 - file:/opt/cloudstack/apache-tomcat-6.0.32/webapps7080/awsapi/WEB-INF/lib/axis2-1.5.1.jar [sshexec] [sshexec] [java] [INFO] Deploying module: metadataExchange-1.5.1-impl - file:/opt/cloudstack/apache-tomcat-6.0.32/webapps7080/awsapi/WEB-INF/lib/mex-1.5.1-impl.jar [sshexec] [sshexec] [java] [INFO] Deploying Web service: version-1.5.1.aar - file:/opt/cloudstack/apache-tomcat-6.0.32/webapps7080/awsapi/WEB-INF/services/version-1.5.1.aar [sshexec] [sshexec] [java] [INFO] Use EC2 properties file: /opt/cloudstack/apache-tomcat-6.0.32/conf/ec2-service.properties [sshexec] [sshexec] [java] [INFO] Initializing ServiceProvider... [sshexec] [sshexec] [java] Log4j configuration from : /opt/cloudstack/apache-tomcat-6.0.32/conf/log4j-cloud.xml [sshexec] [sshexec] [java] log4j:WARN Continuable parsing error 23 and column 75 [sshexec] [sshexec] [java] log4j:WARN Element type "throwableRenderer" must be declared. [sshexec] [sshexec] [java] log4j:WARN Continuable parsing error 153 and column 23 [sshexec] [sshexec] [java] log4j:WARN The content of element type "log4j:configuration" must match "(renderer*,appender*,plugin*,(category|logger)*,root?,(categoryFactory|loggerFactory)?)". [sshexec] [sshexec] [java] log4j:WARN Unrecognized element throwableRenderer [sshexec] [sshexec] [java] Oct 24, 2012 3:03:02 PM org.apache.coyote.http11.Http11NioProtocol start [sshexec] [sshexec] [java] INFO: Starting Coyote HTTP/1.1 on http-7080 [sshexec] [sshexec] [java] Oct 24, 2012 3:03:02 PM org.apache.catalina.startup.Catalina start [sshexec] [sshexec] [java] INFO: Server startup in 34811 ms -Thanks Sangeetha -----Original Message----- From: Abhijith Chandrashekar [mailto:abhijith.chandrashe...@citrix.com] Sent: Wednesday, October 24, 2012 3:50 PM To: 'cloudstack-dev@incubator.apache.org' Subject: Getting build error in axis2 module Hi, I followed the steps given in http://wiki.cloudstack.org/display/COMM/DevCloud and was able to install DevCloud on my Mac. However, when I tried to modify some of the existing code (minimal changes to ui/index.jsp) and redeploy it, I'm facing a build error - #ant clean-all build-all .... BUILD FAILED /root/incubator-cloudstack/build.xml:48 The following error occurred while executing this line: /root/incubator-cloudstack/build/build-aws-api.xml:34: taskdef class org.apache.axis2.tool.ant.AntCodegenTask cannot be found using the classloader AntClassLoader [] Total time: 0 seconds Sure enough, axis2 wasn't installed on my machine - I checked $ANT_HOME/lib and $JAVA_HOME. The VM is pretty much in factory setting at the moment. I'm wondering if I need to be installing axis2 on my own to get the build process to work? Has anybody else faced this error? Thanks, Abhijith