Perhaps my blog entry will help you pinpoint the problem:
http://www.jroller.com/gmazza/entry/cxf_stsclient_metro_sts

Glen

On 07/28/2011 04:55 PM, kishore_897 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.


--
Glen Mazza
Application Integration Division
Talend (http://www.talend.com/ai)
blog: http://www.jroller.com/gmazza


Reply via email to