What version of CXF are you using? Are you sure the WSDL is resolvable
at the address you have specified?

Colm.

On Thu, Jul 28, 2011 at 9:55 PM, kishore_897 <[email protected]> wrote:
> I am getting the following exception
>
> java.lang.NullPointerException
>        at
> org.apache.cxf.ws.security.trust.STSClient.createClient(STSClient.java:335)
>        at
> org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:408)
>        at
> org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:403)
>        at
> org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:395)
>
>
> Here is my sts bean configuration
>
>        <bean id="stsClient" 
> class="org.apache.cxf.ws.security.trust.STSClient" >
>      <constructor-arg ref="cxf" />
>      <property name="requiresEntropy" value="false" />
>      <property name="wsdlLocation"
> value="https://localhost:9443/services/wso2carbon-sts?wsdl"; />
>      <property name="serviceName"
> value="{http://docs.oasis-open.org/ws-sx/ws-trust/200512}SecurityTokenService";
> />
>      <property name="endpointName"
> value="{http://docs.oasis-open.org/ws-sx/ws-trust/200512}RequestSecurityToken";
> />
>      <property name="properties">
>         <map>
>            <entry key="ws-security.username" value="testuser" />
>            <entry key="ws-security.password" value="testuser" />
>                        <entry key="ws-security.signature.properties"
> value="E:\Software\tools\wso2\wso2is-3.0.1\resources\security\wso2carbon.jks"/>
>            <entry key="ws-security.encryption.properties"
> value="E:\Software\tools\wso2\wso2is-3.0.1\resources\security\wso2carbon.jks"/>
>            <entry key="ws-security.signature.username" value="localhost"/>
>            <entry key="ws-security.encryption.username" value="localhost"/>
>         </map>
>      </property>
>   </bean>
>
>
>
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/Sample-STS-Client-tp4643980p4644191.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Colm O hEigeartaigh

http://coheigea.blogspot.com/
Talend - http://www.talend.com

Reply via email to