You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Julien Sentier <js...@rocketmail.com> on 2009/11/24 00:55:24 UTC
ReadWriteLock error with a secure WS
Hi,
I'm trying to create a secure Web Service. By chance, my goal is described by:
http://www.ibm.com/developerworks/java/library/j-jws4/
and
http://www.ibm.com/developerworks/java/library/j-jws7.html
Currently, I'm just following the first how-to: http://www.ibm.com/developerworks/java/library/j-jws4/
I've setup apache-tomcat-6.0.20 with axis2-1.5.1 with rahas-1.4.mar and rampart-1.4.mar modules.
I've compiled the example provided in the how-to but when I run the client I have the following error:
run:
[java] Connecting to http://localhost:8080/axis2/services/library-username
[java] Exception in thread "main" org.apache.axis2.AxisFault: java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/locks/ReadWriteLock
[java] at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:435)
[java] at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
[java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
[java] at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
[java] at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
[java] at com.sosnoski.ws.library.adb.LibraryUsernameStub.getBook(LibraryUsernameStub.java:205)
[java] at com.sosnoski.ws.library.adb.WebServiceClient.main(WebServiceClient.java:82)
[java] Java Result: 1
I've never seen this error and it seems that Google neither.
Do you see what's wrong? If not, could you indicate me another how-to which works?
Regards,
Julien
Re: ReadWriteLock error with a secure WS
Posted by Julien Sentier <js...@rocketmail.com>.
Hi,
Thanks a lot, it works now!
Regards,
Thomas
--- On Tue, 11/24/09, Prabath Siriwardena <pr...@wso2.com> wrote:
> From: Prabath Siriwardena <pr...@wso2.com>
> Subject: Re: ReadWriteLock error with a secure WS
> To: axis-user@ws.apache.org
> Date: Tuesday, November 24, 2009, 2:03 AM
> Hi Julien;
>
> This [1] may be helpful.
>
> Thanks & regards.
> -Prabath
>
> [1]:http://blog.rampartfaq.com/2009/11/exception-in-thread-main.html
>
> Julien Sentier wrote:
> > Hi,
> >
> > I'm trying to create a secure Web Service. By chance,
> my goal is described by:
> > http://www.ibm.com/developerworks/java/library/j-jws4/
> > and
> > http://www.ibm.com/developerworks/java/library/j-jws7.html
> >
> > Currently, I'm just following the first how-to: http://www.ibm.com/developerworks/java/library/j-jws4/
> >
> > I've setup apache-tomcat-6.0.20 with axis2-1.5.1 with
> rahas-1.4.mar and rampart-1.4.mar modules.
> >
> > I've compiled the example provided in the how-to but
> when I run the client I have the following error:
> > run:
> > [java] Connecting to http://localhost:8080/axis2/services/library-username
> > [java] Exception in thread "main"
> org.apache.axis2.AxisFault: java.lang.NoClassDefFoundError:
> edu/emory/mathcs/backport/java/util/concurrent/locks/ReadWriteLock
> > [java] at
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:435)
> > [java] at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
> > [java] at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
> > [java] at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
> > [java] at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
> > [java] at
> com.sosnoski.ws.library.adb.LibraryUsernameStub.getBook(LibraryUsernameStub.java:205)
> > [java] at
> com.sosnoski.ws.library.adb.WebServiceClient.main(WebServiceClient.java:82)
> > [java] Java Result: 1
> >
> > I've never seen this error and it seems that Google
> neither.
> >
> > Do you see what's wrong? If not, could you indicate me
> another how-to which works?
> >
> > Regards,
> > Julien
> >
> >
> >
> >
> >
>
>
Re: ReadWriteLock error with a secure WS
Posted by Prabath Siriwardena <pr...@wso2.com>.
Hi Julien;
This [1] may be helpful.
Thanks & regards.
-Prabath
[1]:http://blog.rampartfaq.com/2009/11/exception-in-thread-main.html
Julien Sentier wrote:
> Hi,
>
> I'm trying to create a secure Web Service. By chance, my goal is described by:
> http://www.ibm.com/developerworks/java/library/j-jws4/
> and
> http://www.ibm.com/developerworks/java/library/j-jws7.html
>
> Currently, I'm just following the first how-to: http://www.ibm.com/developerworks/java/library/j-jws4/
>
> I've setup apache-tomcat-6.0.20 with axis2-1.5.1 with rahas-1.4.mar and rampart-1.4.mar modules.
>
> I've compiled the example provided in the how-to but when I run the client I have the following error:
> run:
> [java] Connecting to http://localhost:8080/axis2/services/library-username
> [java] Exception in thread "main" org.apache.axis2.AxisFault: java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/locks/ReadWriteLock
> [java] at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:435)
> [java] at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
> [java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
> [java] at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
> [java] at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
> [java] at com.sosnoski.ws.library.adb.LibraryUsernameStub.getBook(LibraryUsernameStub.java:205)
> [java] at com.sosnoski.ws.library.adb.WebServiceClient.main(WebServiceClient.java:82)
> [java] Java Result: 1
>
> I've never seen this error and it seems that Google neither.
>
> Do you see what's wrong? If not, could you indicate me another how-to which works?
>
> Regards,
> Julien
>
>
>
>
>