CloudStack
  1. CloudStack
  2. CLOUDSTACK-259

NoClassDefFoundError - The rampart-1.5.mar module, which is not valid, caused org/apache/axis2/modules/Module

    Details

      Description

      During ant rdebug management server startup, the following error is observed:

      [sshexec] [java] [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]
      [sshexec] [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
      [sshexec]
      [sshexec] [java] at java.security.AccessController.doPrivileged(Native Method)
      [sshexec]
      [sshexec] [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
      [sshexec]
      [sshexec] [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
      [sshexec]
      [sshexec] [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:314)
      [sshexec]
      [sshexec] [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
      [sshexec]
      [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]
      [sshexec] [java] at org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder.java:67)
      [sshexec]
      [sshexec] [java] at org.apache.axis2.deployment.ModuleBuilder.populateModule(ModuleBuilder.java:106)
      [sshexec]
      [sshexec] [java] at org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:516)
      [sshexec]
      [sshexec] [java] at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:71)
      [sshexec]
      [sshexec] [java] at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
      [sshexec]
      [sshexec] [java] at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659)
      [sshexec]
      [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]
      [sshexec] [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [sshexec]
      [sshexec] [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      [sshexec]
      [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.modules.Module
      [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] ... 57 more

        Activity

        Hide
        Chip Childers added a comment -

        Closing - This was the correct solution. Nice find Edison.

        Show
        Chip Childers added a comment - Closing - This was the correct solution. Nice find Edison.
        Hide
        edison su added a comment -

        test procedure is updated.

        Show
        edison su added a comment - test procedure is updated.
        Hide
        edison su added a comment -

        It's due to old environment source code directory inside devcloud, need to clean up with the following command:

        ssh root@localhost -p 2222 'cd /opt/cloudstack/; rm -rf apache-tomcat-6.0.32; unzip apache-tomcat-6.0.32.zip; cd incubator-cloudstack; git clean -f; git reset --hard; git pull --rebase; git clean -f; git checkout origin/4.0 -b 4.0 -f '
        and also clean up your local ~/.m2 directory.

        I'll update https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+4.0+test+procedure

        Show
        edison su added a comment - It's due to old environment source code directory inside devcloud, need to clean up with the following command: ssh root@localhost -p 2222 'cd /opt/cloudstack/; rm -rf apache-tomcat-6.0.32; unzip apache-tomcat-6.0.32.zip; cd incubator-cloudstack; git clean -f; git reset --hard; git pull --rebase; git clean -f; git checkout origin/4.0 -b 4.0 -f ' and also clean up your local ~/.m2 directory. I'll update https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+4.0+test+procedure
        Hide
        Alex Huang added a comment -

        Edison says he now sees this issue. Will investigate.

        Show
        Alex Huang added a comment - Edison says he now sees this issue. Will investigate.
        Hide
        Rohit Yadav added a comment -

        Could you try with rampart vaersion 1.6.2, I remember seeing such error before; at that time I used version 1.6.2 and cleaned my CATALINA_HOME and redeployed.
        https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commitdiff;h=4bf16f8d313f097d79345ee0a21f7ec5e04a80cb;hp=ff81fda4e0b44002ef0e579ad13528dbea0a4e53

        Show
        Rohit Yadav added a comment - Could you try with rampart vaersion 1.6.2, I remember seeing such error before; at that time I used version 1.6.2 and cleaned my CATALINA_HOME and redeployed. https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commitdiff;h=4bf16f8d313f097d79345ee0a21f7ec5e04a80cb;hp=ff81fda4e0b44002ef0e579ad13528dbea0a4e53
        Hide
        Chip Childers added a comment -

        This issue still exists with the 4.0.0.beta6 source code build.

        Follow the steps here: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+4.0+test+procedure

        And you will see this error in the console log after running "ant rdebug".

        Show
        Chip Childers added a comment - This issue still exists with the 4.0.0.beta6 source code build. Follow the steps here: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+4.0+test+procedure And you will see this error in the console log after running "ant rdebug".
        Hide
        Chip Childers added a comment -

        Elevating to blocker. ClassNotFound exceptions on startup seem like fairly significant issues.

        Show
        Chip Childers added a comment - Elevating to blocker. ClassNotFound exceptions on startup seem like fairly significant issues.
        Hide
        Chip Childers added a comment -

        Reopening this issue. Alex, you noted that it's resolved in the "new devcloud image". What does that mean? Is there a root cause? Since we're testing the release via devcloud, I think we need to clearly understand what resolves the problem. If the "new image" is from earlier than yesterday, I disagree that it's resolved... since I downloaded the OVA yesterday.

        More details on the resolution would be great! Thanks.

        Show
        Chip Childers added a comment - Reopening this issue. Alex, you noted that it's resolved in the "new devcloud image". What does that mean? Is there a root cause? Since we're testing the release via devcloud, I think we need to clearly understand what resolves the problem. If the "new image" is from earlier than yesterday, I disagree that it's resolved... since I downloaded the OVA yesterday. More details on the resolution would be great! Thanks.
        Hide
        Alex Huang added a comment -

        My understanding is this is resolved with the new devcloud image.

        Show
        Alex Huang added a comment - My understanding is this is resolved with the new devcloud image.
        Hide
        Rohit Yadav added a comment -

        I've seen this kind of error before; changing the version, cs.rampart.version, to 1.6.2 worked for me then. I did submit a patch recently on this; https://reviews.apache.org/r/7406/diff/#index_header But, Hugo said that may have some issues with awsapi.

        Show
        Rohit Yadav added a comment - I've seen this kind of error before; changing the version, cs.rampart.version, to 1.6.2 worked for me then. I did submit a patch recently on this; https://reviews.apache.org/r/7406/diff/#index_header But, Hugo said that may have some issues with awsapi.

          People

          • Assignee:
            edison su
            Reporter:
            Chip Childers
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development