ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm O hEigeartaigh <cohei...@apache.org>
Subject Re: wss4j empty password problem
Date Mon, 08 Nov 2010 11:37:29 GMT
Hi,

Please send all user questions to users@ws.apache.org. I don't use
WSS4J with Axis, and so I probably can't help you. Could you attach a
copy of the SOAP request that is being generated? What does your
server configuration look like?

Colm.

On Wed, Nov 3, 2010 at 6:01 PM, Ijaz Ahmed <ijaxahmed@googlemail.com> wrote:
> Hi Coheigea,
> Thanks again for your last reply, its helps me and i successfully given
> password for request. but now after sending username and
> password successfully and still getting axis exception.  i tried to find the
> issue but no luck. as i told before that i am using wss4j with axis1.* the
> following exception is coming
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
>  faultSubcode:
>  faultString: System error.
>  faultActor:
>  faultNode:
>  faultDetail:
> {http://faults.exceptions.api.server.open.cas.de}DataLayerFault:<code>MustUnderstandSoapException</code><message>System
> error.</message><serverStackTrace>   at
> System.ServiceModel.Dispatcher.DispatchOperationRuntime.ValidateMustUnderstand(MessageRpc&amp;
> rpc)
>    at
> System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp;
> rpc)
>    at
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp;
> rpc)
>    at
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc&amp;
> rpc)
>    at
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc&amp;
> rpc)
>    at
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc&amp;
> rpc)
>    at
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc&amp;
> rpc)
>    at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean
> isOperationContextSet)</serverStackTrace><createdOn>0</createdOn>
> System error.
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at java.lang.Class.newInstance0(Class.java:355)
> at java.lang.Class.newInstance(Class.java:308)
> at
> org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104)
> at
> org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)
> at
> de.cas.open.server.api.exceptions.faults.DataLayerFault.getDeserializer(DataLayerFault.java:90)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
> at
> org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
> at
> org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
> at
> org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)
> at
> org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
> at
> org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
> at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
> at
> org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
> at
> org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> at org.apache.axis.client.Call.invoke(Call.java:2767)
> at org.apache.axis.client.Call.invoke(Call.java:2443)
> at org.apache.axis.client.Call.invoke(Call.java:2366)
> at org.apache.axis.client.Call.invoke(Call.java:1812)
> at
> de.cas.open.server.api.eimws.EIMServiceHttpBindingStub.createObject(EIMServiceHttpBindingStub.java:6430)
> at Test.TestCAS.TestCreateEvent(TestCAS.java:137)
> at Test.TestCAS.main(TestCAS.java:80)
> could you help me why this exception coming. here is my cliend_deploy.wsdd
> <?xml version="1.0" encoding="UTF-8"?>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>  <transport name="http"
> pivot="java:org.apache.axis.transport.http.HTTPSender"/>
>   <globalConfiguration >
>    <requestFlow >
>     <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
>      <parameter name="action" value="UsernameToken"/>
>      <parameter name="user"
> value="D7A3C1FDBE064FAFBF4FBFCD933A0264~61793C2553AABB4AA2A3F189D47F66B9@C-CM-T01"/>
>      <parameter name="passwordCallbackClass" value="Test.PWCallback"/>
>      <parameter name="passwordType" value="PasswordDigest"/>
>
> </handler>
>    </requestFlow >
>   </globalConfiguration >
> </deployment>
>
> i am really thankful your response and expecting your kind response again .
> thank you so much.
> Regards,
> ijaz
> On Thu, Oct 28, 2010 at 8:55 PM, Colm O hEigeartaigh <coheigea@apache.org>
> wrote:
>>
>> >        <parameter name="password" value="   " />
>>
>> I'm not sure if it's possible to set a password via configuration in
>> this way using the Axis1 handlers. If you change the value above to be
>> a non-empty String, do you get the same message? The correct way to
>> set a password is to write a password callback, as you have commented
>> out:
>>
>> >     <!--
>> >     <parameter name="passwordCallbackClass" value="Test.PWCallback"/>
>> >      ...
>> >        -->
>>
>> Colm.
>>
>>
>> On Thu, Oct 28, 2010 at 5:21 PM, ijaxahmed <ijaxahmed@gmail.com> wrote:
>> >
>> > Hi Wss4j Team,
>> >
>> > I am working Axis1.* with wss4j. I am facing problem and tried to find
>> > solution but couldn't successed  thats why sending you an email. i dont
>> > know, i should send this email here or not.
>> > the problem is, i have made one web service client with Axis1 and trying
>> > to
>> > access a web service which is made in c# .Net. so this web service
>> > required
>> > session token in message header. therefore i am using wss4j to send
>> > security
>> > header in
>> > the soap message. but the problem is i have to send empy(" ") password
>> > and
>> > due to that i got exception
>> >
>> > org.apache.ws.security.WSSecurityException: WSHandler: application
>> > provided
>> > null or empty password
>> >        at
>> > org.apache.ws.security.handler.WSHandler.getPassword(WSHandler.java:842)
>> >        at
>> >
>> > org.apache.ws.security.action.UsernameTokenAction.execute(UsernameTokenAction.java:36)
>> >        at
>> >
>> > org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:205)
>> >        at
>> > org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170)
>> >        at
>> >
>> > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>> >        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>> >        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>> >        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
>> >        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>> >        at org.apache.axis.client.Call.invoke(Call.java:2767)
>> >        at org.apache.axis.client.Call.invoke(Call.java:2443)
>> >        at org.apache.axis.client.Call.invoke(Call.java:2366)
>> >        at org.apache.axis.client.Call.invoke(Call.java:1812)
>> >        at
>> >
>> > de.cas.open.server.api.eimws.EIMServiceHttpBindingStub.createObject(EIMServiceHttpBindingStub.java:6430)
>> >        at Test.TestCAS.TestCreateEvent(TestCAS.java:248)
>> >        at Test.TestCAS.main(TestCAS.java:72)
>> >
>> >
>> > here is my client_deploy.xml
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <deployment xmlns="http://xml.apache.org/axis/wsdd/"
>> > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>> >
>> >  <transport name="http"
>> > pivot="java:org.apache.axis.transport.http.HTTPSender"/>
>> >
>> >  <globalConfiguration >
>> >
>> >   <requestFlow >
>> >
>> >    <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
>> >
>> >     <parameter name="action" value="UsernameToken"/>
>> >
>> >     <parameter name="user"
>> >
>> > value="9B88888EBD24439EA1FDAFDBFBDB3217~61793C2553AABB4AA2A3F189D47F66B9@C-CM-T01"/>
>> >
>> >        <parameter name="passwordType" value="PasswordText" />
>> >
>> >        <parameter name="password" value="   " />
>> >     <!--
>> >     <parameter name="passwordCallbackClass" value="Test.PWCallback"/>
>> >
>> >     <parameter name="passwordType" value="PasswordDigest"/>
>> >        -->
>> >
>> >        </handler>
>> >
>> >   </requestFlow >
>> >
>> >  </globalConfiguration >
>> >
>> > </deployment>
>> >
>> >
>> > PLease help me , i will be very thankful to you.
>> >
>> > Regards,
>> > ijaz
>> > --
>> > View this message in context:
>> > http://old.nabble.com/wss4j-empty-password-problem-tp30078281p30078281.html
>> > Sent from the WSS4J mailing list archive at Nabble.com.
>> >
>> >
>
>

Mime
View raw message