It can be easily done by running ant in the Rampart samples directory as mentioned in the [1].
[1] Rampart quick start guide <http://axis.apache.org/axis2/java/rampart/quick-start.html> Thanks, Kavinda. On Wed, Feb 11, 2015 at 12:18 PM, Rasika Perera <[email protected]> wrote: > I sought out the problem causing the exception. Just missed the step [2]. > > [1] All the module files to in the modules directory of Rampart binary > distribution to Axis2 modules directory($AXIS_HOME/repository/modules/) > > [2] You need copy all the libraries in the lib directory of Rampart binary > distribution to Axis2 lib directory($AXIS2_HOME/lib). > > On Wed, Feb 11, 2015 at 11:38 AM, Rasika Perera <[email protected]> wrote: > >> Hi All, >> >> I am trying to add Apache Rampart Modules to the Apache Axis2 server. But >> I am getting following error. >> >> *[ERROR] The rahas-1.6.2.mar module, which is not valid, caused >> org.apache.rahas.Rahas* >> *org.apache.axis2.deployment.DeploymentException: org.apache.rahas.Rahas* >> at >> org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:527) >> ... more >> Caused by: java.lang.ClassNotFoundException: org.apache.rahas.Rahas >> at java.net.URLClassLoader$1.run(URLClassLoader.java:366) >> at java.net.URLClassLoader$1.run(URLClassLoader.java:355) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:354) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:425) >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:358) >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:191) >> at org.apache.axis2.util.Loader.loadClass(Loader.java:261) >> at org.apache.axis2.util.Loader.loadClass(Loader.java:229) >> at >> org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder.java:70) >> ... 14 more >> >> *[ERROR] The rampart-1.6.2.mar module, which is not valid, caused >> org.apache.rampart.Rampart* >> *org.apache.axis2.deployment.DeploymentException: >> org.apache.rampart.Rampart* >> ... more >> Caused by: java.lang.ClassNotFoundException: org.apache.rampart.Rampart >> at java.net.URLClassLoader$1.run(URLClassLoader.java:366) >> at java.net.URLClassLoader$1.run(URLClassLoader.java:355) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:354) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:425) >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:358) >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:191) >> at org.apache.axis2.util.Loader.loadClass(Loader.java:261) >> at org.apache.axis2.util.Loader.loadClass(Loader.java:229) >> at >> org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder.java:70) >> ... 14 more >> >> I am using Apache Axis2 1.6.2 and Apache Rampart 1.6.2. Also tried the >> this <http://j2eesolution.blogspot.com/2013/01/configure-axis20.html> >> but no luck. Any clue on this error? >> -- >> With Regards, >> >> *Rasika Perera* >> Software Engineer >> M: +94 71 680 9060 E: [email protected] >> LinkedIn: http://lk.linkedin.com/in/rasika90 >> >> WSO2 Inc. www.wso2.com >> lean.enterprise.middleware >> > > > > -- > With Regards, > > *Rasika Perera* > Software Engineer > M: +94 71 680 9060 E: [email protected] > LinkedIn: http://lk.linkedin.com/in/rasika90 > > WSO2 Inc. www.wso2.com > lean.enterprise.middleware > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Vinod Kavinda *Software Engineer* *WSO2, Inc <http://www.wso2.com>.* Mobile : +94 (0) 712 415544 [email protected]
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
