Hi Jorge, Yes. If you look at the published date of this tutorial, it is somewhere in 2006. So the required features and functionalities might be changed/removed from Axis2/Rampart in the releases after the 2006. Also now it is not recommended to configure security using inflow and outflow. Also we haven't tested it in later Rampart releases.
The article I pointed in my previous reply[1] is based on the new security configurations. So it should work out of the box. As a resolution for the 'NoClassDefFoundError' you are getting, try adding the 'com.springsource.edu.emory.mathcs.backport-3.1.0.jar' to your client's classpath. You can download it from here [2]. Also please switch to latest Rampart release (Rampart 1.5) [3]. Thanks. /thilina [1] - http://wso2.org/library/3190 [2] - http://ondex.rothamsted.bbsrc.ac.uk/nexus/content/groups/public/edu/emory/mathcs/backport/com.springsource.edu.emory.mathcs.backport/3.1.0/com.springsource.edu.emory.mathcs.backport-3.1.0.jar [3] - http://ws.apache.org/rampart/download/1.5/download.cgi Thilina Mahesh Buddhika http://blog.thilinamb.com On Mon, Apr 5, 2010 at 1:00 AM, Jorge Infante Osorio <[email protected]> wrote: > I think the problem in this tutorial are not the tutorial, but the version > of axis2 and rampart and the additional jars to use....as I say I used > axis2 > 1.5.1 with rampart 1.4, and have some errors yet. > > The jars I use: > > axis2-mex-1.2.jar > jaxen-1.1.1.jar > opensaml-1.1.jar > rampart-core-1.4.jar > rampart-policy-1.4.jar > rampart-trust-1.4.jar > saxpath.jar > wss4j-1.5.4.jar > xmlsec-1.4.1.jar > httpcore-4.0-alpha6.jar > backport-util-concurrent.jar > > I miss any more?? > > My error for now : > Exception in thread "main" org.apache.axis2.AxisFault: > java.lang.NoClassDefFoundError: > edu/emory/mathcs/backport/java/util/concurrent/locks/ReadWriteLock > at > > org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:435 > ) > at > > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAx > isOperation.java:371) > at > > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperatio > n.java:417) > at > > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisO > peration.java:229) > at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) > at > tutorial.rampart.service.SecureServiceStub.add(SecureServiceStub.java:191) > at > > tutorial.rampart.service.SecureServiceCGClient.main(SecureServiceCGClient.ja > va:100) > > I follow http://blog.rampartfaq.com/2009/11/exception-in-thread-main.html > but nothing change. > > Thanks Thilina for your help. > > Jorge > > -----Original Message----- > From: Thilina Mahesh Buddhika [mailto:[email protected]] > Sent: domingo, 04 de abril de 2010 12:40 > To: [email protected] > Subject: Re: Failed to implement UsernameToken in Rampart. > > Please try this tutorial. > > http://wso2.org/library/3190 > > Thanks. > /thilina > > > Thilina Mahesh Buddhika > http://blog.thilinamb.com > > > >
