<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: Unable to publish Apache CXF STS issue in EAP 6.1
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/mpag1980">Anu Raj</a> in <i>JBoss Web Services Development</i> - <a href="https://community.jboss.org/message/827116#827116">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi Alessio, Thanks for your response. Please find my complete deployment contents below.</p><p><a href="https://community.jboss.org/servlet/JiveServlet/showImage/2-827116-21113/Deployment+structure+of+STS.PNG"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/2-827116-21113/295-457/Deployment+structure+of+STS.PNG </span></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>SampleSTS.java</p><p>_____________________</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>/*</p><p> * JBoss, Home of Professional Open Source.</p><p> * Copyright 2012, Red Hat Middleware LLC, and individual contributors</p><p> * as indicated by the @author tags. See the copyright.txt file in the</p><p> * distribution for a full listing of individual contributors.</p><p> *</p><p> * This is free software; you can redistribute it and/or modify it</p><p> * under the terms of the GNU Lesser General Public License as</p><p> * published by the Free Software Foundation; either version 2.1 of</p><p> * the License, or (at your option) any later version.</p><p> *</p><p> * This software is distributed in the hope that it will be useful,</p><p> * but WITHOUT ANY WARRANTY; without even the implied warranty of</p><p> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</p><p> * Lesser General Public License for more details.</p><p> *</p><p> * You should have received a copy of the GNU Lesser General Public</p><p> * License along with this software; if not, write to the Free</p><p> * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA</p><p><span> * 02110-1301 USA, or see the FSF site: </span><a class="jive-link-external-small" href="http://www.fsf.org" rel="nofollow" target="_blank">http://www.fsf.org</a><span>.</span></p><p> */</p><p>package STS;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>import java.util.Arrays;</p><p>import java.util.LinkedList;</p><p>import java.util.List;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>import javax.servlet.annotation.WebServlet;</p><p>import javax.xml.ws.WebServiceProvider;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>import org.apache.cxf.annotations.EndpointProperties;</p><p>import org.apache.cxf.annotations.EndpointProperty;</p><p>import org.apache.cxf.interceptor.InInterceptors;</p><p>import org.apache.cxf.sts.StaticSTSProperties;</p><p>import org.apache.cxf.sts.operation.TokenIssueOperation;</p><p>import org.apache.cxf.sts.operation.TokenValidateOperation;</p><p>import org.apache.cxf.sts.service.ServiceMBean;</p><p>import org.apache.cxf.sts.service.StaticService;</p><p>import org.apache.cxf.sts.token.provider.SAMLTokenProvider;</p><p>import org.apache.cxf.sts.token.validator.SAMLTokenValidator;</p><p>import org.apache.cxf.ws.security.sts.provider.SecurityTokenServiceProvider;</p><p>import org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusFactory;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>@WebServiceProvider(serviceName = "SecurityTokenService",</p><p>      portName = "UT_Port",</p><p><span>      targetNamespace = "</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/</a><span>",</span></p><p>      wsdlLocation = "WEB-INF/wsdl/ws-trust-1.4-service.wsdl")</p><p>@EndpointProperties(value = {</p><p>      @EndpointProperty(key = "ws-security.signature.username", value = "mystskey"),</p><p>      @EndpointProperty(key = "ws-security.signature.properties", value = "stsKeystore.properties"),</p><p>      @EndpointProperty(key = "ws-security.callback-handler", value = "STSCallbackHandler"),</p><p>      @EndpointProperty(key = "ws-security.validate.token", value = "false") //to let the JAAS integration deal with validation through the interceptor below</p><p>})</p><p>@InInterceptors(interceptors = {"org.jboss.wsf.stack.cxf.security.authentication.SubjectCreatingPolicyInterceptor"})</p><p>@WebServlet(name = "TestSecurityTokenService", urlPatterns = "/*")</p><p>public class SampleSTS extends SecurityTokenServiceProvider</p><p>{</p><p>   @SuppressWarnings("deprecation")</p><p>public SampleSTS() throws Exception</p><p>   {</p><p>      super();</p><p>      </p><p>      StaticSTSProperties props = new StaticSTSProperties();</p><p>      props.setSignaturePropertiesFile("stsKeystore.properties");</p><p>      props.setSignatureUsername("mystskey");</p><p>      props.setCallbackHandlerClass(STSCallbackHandler.class.getName());</p><p>      props.setIssuer("DoubleItSTSIssuer");</p><p>      </p><p>      List<ServiceMBean> services = new LinkedList<ServiceMBean>();</p><p>      StaticService service = new StaticService();</p><p><span>      service.setEndpoints(Arrays.asList("</span><a class="jive-link-external-small" href="http://localhost:(\\d)*/PalmUtilServices/services/PalmUtilityService" rel="nofollow" target="_blank">http://localhost:(\\d)*/PalmUtilServices/services/PalmUtilityService</a><span>", "</span><a class="jive-link-external-small" href="http://" rel="nofollow" target="_blank">http://</a><span>\\[::1\\]:(\\d)*/PalmUtilServices/services/PalmUtilityService"));</span></p><p>      services.add(service);</p><p>      </p><p>      TokenIssueOperation issueOperation = new TokenIssueOperation();</p><p>      issueOperation.setServices(services);</p><p>      issueOperation.getTokenProviders().add(new SAMLTokenProvider());</p><p>      issueOperation.setStsProperties(props);</p><p>      </p><p>      TokenValidateOperation validateOperation = new TokenValidateOperation();</p><p>      validateOperation.getTokenValidators().add(new SAMLTokenValidator());</p><p>      validateOperation.setStsProperties(props);</p><p>      </p><p>      this.setIssueOperation(issueOperation);</p><p>      this.setValidateOperation(validateOperation);</p><p>   }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>STSCallbackHandler.java</p><p>_________________________</p><p>/**</p><p> * Licensed to the Apache Software Foundation (ASF) under one</p><p> * or more contributor license agreements. See the NOTICE file</p><p> * distributed with this work for additional information</p><p> * regarding copyright ownership. The ASF licenses this file</p><p> * to you under the Apache License, Version 2.0 (the</p><p> * "License"); you may not use this file except in compliance</p><p> * with the License. You may obtain a copy of the License at</p><p> *</p><p><span> * </span><a class="jive-link-external-small" href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow" target="_blank">http://www.apache.org/licenses/LICENSE-2.0</a></p><p> *</p><p> * Unless required by applicable law or agreed to in writing,</p><p> * software distributed under the License is distributed on an</p><p> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</p><p> * KIND, either express or implied. See the License for the</p><p> * specific language governing permissions and limitations</p><p> * under the License.</p><p> */</p><p>package STS;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>import java.io.IOException;</p><p>import javax.security.auth.callback.Callback;</p><p>import javax.security.auth.callback.CallbackHandler;</p><p>import javax.security.auth.callback.UnsupportedCallbackException;</p><p>import org.apache.ws.security.WSPasswordCallback;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>public class STSCallbackHandler implements CallbackHandler {</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    public void handle(Callback[] callbacks) throws IOException,</p><p>            UnsupportedCallbackException {</p><p>        for (int i = 0; i < callbacks.length; i++) {</p><p>            if (callbacks[i] instanceof WSPasswordCallback) {</p><p>                WSPasswordCallback pc = (WSPasswordCallback) callbacks[i];</p><p>                if ("mystskey".equals(pc.getIdentifier())) {</p><p>                    pc.setPassword("stskpass");</p><p>                    break;</p><p>                } else if ("alice".equals(pc.getIdentifier())) {</p><p>                    pc.setPassword("clarinet");</p><p>                    break;</p><p>                }</p><p>            }</p><p>        }</p><p>    }</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>MANIFEST.MF</p><p>_________________</p><p>Manifest-Version: 1.0</p><p>Dependencies: org.apache.ws.security,org.apache.cxf.impl</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>StsKeystore.properties</p><p>_________________________</p><p>#</p><p># Licensed to the Apache Software Foundation (ASF) under one</p><p># or more contributor license agreements. See the NOTICE file</p><p># distributed with this work for additional information</p><p># regarding copyright ownership. The ASF licenses this file</p><p># to you under the Apache License, Version 2.0 (the</p><p># "License"); you may not use this file except in compliance</p><p># with the License. You may obtain a copy of the License at</p><p>#</p><p><span># </span><a class="jive-link-external-small" href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow" target="_blank">http://www.apache.org/licenses/LICENSE-2.0</a></p><p>#</p><p># Unless required by applicable law or agreed to in writing,</p><p># software distributed under the License is distributed on an</p><p># "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</p><p># KIND, either express or implied. See the License for the</p><p># specific language governing permissions and limitations</p><p># under the License.</p><p>#</p><p>org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin</p><p>org.apache.ws.security.crypto.merlin.keystore.type=jks</p><p>org.apache.ws.security.crypto.merlin.keystore.password=stsspass</p><p>org.apache.ws.security.crypto.merlin.keystore.file=stsstore.jks</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>stsstore.jks</p><p>_____________</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>ws-trust-1.4-service.wsdl</p><p>________________________</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><?xml version="1.0" encoding="UTF-8"?></p><p><span><wsdl:definitions targetNamespace="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/</a><span>" xmlns:wsp="</span><a class="jive-link-external-small" href="http://www.w3.org/ns/ws-policy" rel="nofollow" target="_blank">http://www.w3.org/ns/ws-policy</a><span>" xmlns:wstrust="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/</a><span>" xmlns:wsdl="</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/wsdl/" rel="nofollow" target="_blank">http://schemas.xmlsoap.org/wsdl/</a><span>" xmlns:tns="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/</a><span>" xmlns:xs="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow" target="_blank">http://www.w3.org/2001/XMLSchema</a><span>" xmlns:wsap10="</span><a class="jive-link-external-small" href="http://www.w3.org/2006/05/addressing/wsdl" rel="nofollow" target="_blank">http://www.w3.org/2006/05/addressing/wsdl</a><span>" xmlns:soap="</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/wsdl/soap/" rel="nofollow" target="_blank">http://schemas.xmlsoap.org/wsdl/soap/</a><span>" xmlns:wst="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512</a><span>" xmlns:wsu="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" rel="nofollow" target="_blank">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd</a><span>" xmlns:wsam="</span><a class="jive-link-external-small" href="http://www.w3.org/2007/05/addressing/metadata" rel="nofollow" target="_blank">http://www.w3.org/2007/05/addressing/metadata</a><span>"></span></p><p>  <wsdl:types></p><p><span>    <xs:schema elementFormDefault="qualified" targetNamespace="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512</a><span>"></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <xs:element name="RequestSecurityToken" type="wst:AbstractRequestSecurityTokenType"/></p><p>      <xs:element name="RequestSecurityTokenResponse" type="wst:AbstractRequestSecurityTokenType"/></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <xs:complexType name="AbstractRequestSecurityTokenType"></p><p>        <xs:sequence></p><p>          <xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="lax"/></p><p>        </xs:sequence></p><p>        <xs:attribute name="Context" type="xs:anyURI" use="optional"/></p><p>        <xs:anyAttribute namespace="##other" processContents="lax"/></p><p>      </xs:complexType></p><p>      <xs:element name="RequestSecurityTokenCollection" type="wst:RequestSecurityTokenCollectionType"/></p><p>      <xs:complexType name="RequestSecurityTokenCollectionType"></p><p>        <xs:sequence></p><p>          <xs:element maxOccurs="unbounded" minOccurs="2" name="RequestSecurityToken" type="wst:AbstractRequestSecurityTokenType"/></p><p>        </xs:sequence></p><p>      </xs:complexType></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <xs:element name="RequestSecurityTokenResponseCollection" type="wst:RequestSecurityTokenResponseCollectionType"/></p><p>      <xs:complexType name="RequestSecurityTokenResponseCollectionType"></p><p>        <xs:sequence></p><p>          <xs:element maxOccurs="unbounded" minOccurs="1" ref="wst:RequestSecurityTokenResponse"/></p><p>        </xs:sequence></p><p>        <xs:anyAttribute namespace="##other" processContents="lax"/></p><p>      </xs:complexType></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    </xs:schema></p><p>  </wsdl:types></p><p>  <wsdl:message name="RequestSecurityTokenResponseCollectionMsg"></p><p>    <wsdl:part name="responseCollection" element="wst:RequestSecurityTokenResponseCollection"></p><p>    </wsdl:part></p><p>  </wsdl:message></p><p>  <wsdl:message name="RequestSecurityTokenCollectionMsg"></p><p>    <wsdl:part name="requestCollection" element="wst:RequestSecurityTokenCollection"></p><p>    </wsdl:part></p><p>  </wsdl:message></p><p>  <wsdl:message name="RequestSecurityTokenResponseMsg"></p><p>    <wsdl:part name="response" element="wst:RequestSecurityTokenResponse"></p><p>    </wsdl:part></p><p>  </wsdl:message></p><p>  <wsdl:message name="RequestSecurityTokenMsg"></p><p>    <wsdl:part name="request" element="wst:RequestSecurityToken"></p><p>    </wsdl:part></p><p>  </wsdl:message></p><p>  <wsdl:portType name="SecurityTokenResponseService"></p><p>    <wsdl:operation name="RequestSecurityTokenResponse"></p><p>      <wsdl:input message="wstrust:RequestSecurityTokenResponseMsg"></p><p>    </wsdl:input></p><p>    </wsdl:operation></p><p>  </wsdl:portType></p><p>  <wsdl:portType name="STS"></p><p>    <wsdl:operation name="Cancel"></p><p><span>      <wsdl:input message="wstrust:RequestSecurityTokenMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Cancel" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Cancel</a><span>"></span></p><p>    </wsdl:input></p><p><span>      <wsdl:output message="wstrust:RequestSecurityTokenResponseMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/CancelFinal" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/CancelFinal</a><span>"></span></p><p>    </wsdl:output></p><p>    </wsdl:operation></p><p>    <wsdl:operation name="Issue"></p><p><span>      <wsdl:input message="wstrust:RequestSecurityTokenMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue</a><span>"></span></p><p>    </wsdl:input></p><p><span>      <wsdl:output message="wstrust:RequestSecurityTokenResponseCollectionMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTRC/IssueFinal" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTRC/IssueFinal</a><span>"></span></p><p>    </wsdl:output></p><p>    </wsdl:operation></p><p>    <wsdl:operation name="Renew"></p><p><span>      <wsdl:input message="wstrust:RequestSecurityTokenMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Renew" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Renew</a><span>"></span></p><p>    </wsdl:input></p><p><span>      <wsdl:output message="wstrust:RequestSecurityTokenResponseMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/RenewFinal" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/RenewFinal</a><span>"></span></p><p>    </wsdl:output></p><p>    </wsdl:operation></p><p>    <wsdl:operation name="Validate"></p><p><span>      <wsdl:input message="wstrust:RequestSecurityTokenMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Validate" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Validate</a><span>"></span></p><p>    </wsdl:input></p><p><span>      <wsdl:output message="wstrust:RequestSecurityTokenResponseMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/ValidateFinal" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/ValidateFinal</a><span>"></span></p><p>    </wsdl:output></p><p>    </wsdl:operation></p><p>    <wsdl:operation name="KeyExchangeToken"></p><p><span>      <wsdl:input message="wstrust:RequestSecurityTokenMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/KET" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/KET</a><span>"></span></p><p>    </wsdl:input></p><p><span>      <wsdl:output message="wstrust:RequestSecurityTokenResponseMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/KETFinal" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/KETFinal</a><span>"></span></p><p>    </wsdl:output></p><p>    </wsdl:operation></p><p>    <wsdl:operation name="RequestCollection"></p><p>      <wsdl:input message="wstrust:RequestSecurityTokenCollectionMsg"></p><p>    </wsdl:input></p><p>      <wsdl:output message="wstrust:RequestSecurityTokenResponseCollectionMsg"></p><p>    </wsdl:output></p><p>    </wsdl:operation></p><p>  </wsdl:portType></p><p>  <wsdl:portType name="WSSecurityRequestor"></p><p>    <wsdl:operation name="Challenge"></p><p>      <wsdl:input message="wstrust:RequestSecurityTokenResponseMsg"></p><p>    </wsdl:input></p><p>      <wsdl:output message="wstrust:RequestSecurityTokenResponseMsg"></p><p>    </wsdl:output></p><p>    </wsdl:operation></p><p>  </wsdl:portType></p><p>  <wsdl:binding name="UT_Binding" type="wstrust:STS"></p><p>    <wsp:PolicyReference URI="#UT_policy"/></p><p><span>    <soap:binding style="document" transport="</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/http" rel="nofollow" target="_blank">http://schemas.xmlsoap.org/soap/http</a><span>"/></span></p><p>    <wsdl:operation name="Issue"></p><p><span>      <soap:operation soapAction="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue</a><span>"/></span></p><p>      <wsdl:input></p><p>    <wsp:PolicyReference URI="#Input_policy"/></p><p>        <soap:body use="literal"/></p><p>      </wsdl:input></p><p>      <wsdl:output></p><p>    <wsp:PolicyReference URI="#Output_policy"/></p><p>        <soap:body use="literal"/></p><p>      </wsdl:output></p><p>    </wsdl:operation></p><p>    <wsdl:operation name="Validate"></p><p><span>      <soap:operation soapAction="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Validate" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Validate</a><span>"/></span></p><p>      <wsdl:input></p><p>    <wsp:PolicyReference URI="#Input_policy"/></p><p>        <soap:body use="literal"/></p><p>      </wsdl:input></p><p>      <wsdl:output></p><p>    <wsp:PolicyReference URI="#Output_policy"/></p><p>        <soap:body use="literal"/></p><p>      </wsdl:output></p><p>    </wsdl:operation></p><p>    <wsdl:operation name="Cancel"></p><p><span>      <soap:operation soapAction="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Cancel" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Cancel</a><span>"/></span></p><p>      <wsdl:input></p><p>        <soap:body use="literal"/></p><p>      </wsdl:input></p><p>      <wsdl:output></p><p>        <soap:body use="literal"/></p><p>      </wsdl:output></p><p>    </wsdl:operation></p><p>    <wsdl:operation name="Renew"></p><p><span>      <soap:operation soapAction="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Renew" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Renew</a><span>"/></span></p><p>      <wsdl:input></p><p>        <soap:body use="literal"/></p><p>      </wsdl:input></p><p>      <wsdl:output></p><p>        <soap:body use="literal"/></p><p>      </wsdl:output></p><p>    </wsdl:operation></p><p>    <wsdl:operation name="KeyExchangeToken"></p><p><span>      <soap:operation soapAction="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/KeyExchangeToken" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/KeyExchangeToken</a><span>"/></span></p><p>      <wsdl:input></p><p>        <soap:body use="literal"/></p><p>      </wsdl:input></p><p>      <wsdl:output></p><p>        <soap:body use="literal"/></p><p>      </wsdl:output></p><p>    </wsdl:operation></p><p>    <wsdl:operation name="RequestCollection"></p><p><span>      <soap:operation soapAction="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/RequestCollection" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/RequestCollection</a><span>"/></span></p><p>      <wsdl:input></p><p>        <soap:body use="literal"/></p><p>      </wsdl:input></p><p>      <wsdl:output></p><p>        <soap:body use="literal"/></p><p>      </wsdl:output></p><p>    </wsdl:operation></p><p>  </wsdl:binding></p><p>  <wsdl:service name="SecurityTokenService"></p><p>    <wsdl:port name="UT_Port" binding="wstrust:UT_Binding"></p><p><span>      <soap:address location="</span><a class="jive-link-external-small" href="http://localhost:8080/CXFworking/services/UT_Port" rel="nofollow" target="_blank">http://localhost:8080/CXFworking/services/UT_Port</a><span>"/></span></p><p>    </wsdl:port></p><p>  </wsdl:service></p><p>    <wsp:Policy wsu:Id="UT_policy"></p><p>      <wsp:ExactlyOne></p><p>         <wsp:All></p><p>            <wsap10:UsingAddressing/></p><p><span>            <sp:SymmetricBinding xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"></span></p><p>               <wsp:Policy></p><p>                  <sp:ProtectionToken></p><p>                     <wsp:Policy></p><p><span>                        <sp:X509Token sp:IncludeToken="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/Never" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/Never</a><span>"></span></p><p>                           <wsp:Policy></p><p>                              <sp:RequireDerivedKeys/></p><p>                              <sp:RequireThumbprintReference/></p><p>                              <sp:WssX509V3Token10/></p><p>                           </wsp:Policy></p><p>                        </sp:X509Token></p><p>                     </wsp:Policy></p><p>                  </sp:ProtectionToken></p><p>                  <sp:AlgorithmSuite></p><p>                     <wsp:Policy></p><p>                        <sp:Basic256/></p><p>                     </wsp:Policy></p><p>                  </sp:AlgorithmSuite></p><p>                  <sp:Layout></p><p>                     <wsp:Policy></p><p>                        <sp:Lax/></p><p>                     </wsp:Policy></p><p>                  </sp:Layout></p><p>                  <sp:IncludeTimestamp/></p><p>                  <sp:EncryptSignature/></p><p>                  <sp:OnlySignEntireHeadersAndBody/></p><p>               </wsp:Policy></p><p>            </sp:SymmetricBinding></p><p><span>            <sp:SignedSupportingTokens xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"></span></p><p>               <wsp:Policy></p><p><span>                  <sp:UsernameToken sp:IncludeToken="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient</a><span>"></span></p><p>                     <wsp:Policy></p><p>                        <sp:WssUsernameToken10/></p><p>                     </wsp:Policy></p><p>                  </sp:UsernameToken></p><p>               </wsp:Policy></p><p>            </sp:SignedSupportingTokens></p><p><span>            <sp:Wss11 xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"></span></p><p>               <wsp:Policy></p><p>                  <sp:MustSupportRefKeyIdentifier/></p><p>                  <sp:MustSupportRefIssuerSerial/></p><p>                  <sp:MustSupportRefThumbprint/></p><p>                  <sp:MustSupportRefEncryptedKey/></p><p>               </wsp:Policy></p><p>            </sp:Wss11></p><p><span>            <sp:Trust13 xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"></span></p><p>               <wsp:Policy></p><p>                  <sp:MustSupportIssuedTokens/></p><p>                  <sp:RequireClientEntropy/></p><p>                  <sp:RequireServerEntropy/></p><p>               </wsp:Policy></p><p>            </sp:Trust13></p><p>         </wsp:All></p><p>      </wsp:ExactlyOne></p><p>   </wsp:Policy></p><p>    <wsp:Policy wsu:Id="Input_policy"></p><p>      <wsp:ExactlyOne></p><p>         <wsp:All></p><p><span>            <sp:SignedParts xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"></span></p><p>               <sp:Body/></p><p><span>               <sp:Header Name="To" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p><span>               <sp:Header Name="From" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p><span>               <sp:Header Name="FaultTo" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p><span>               <sp:Header Name="ReplyTo" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p><span>               <sp:Header Name="MessageID" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p><span>               <sp:Header Name="RelatesTo" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p><span>               <sp:Header Name="Action" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p>            </sp:SignedParts></p><p><span>            <sp:EncryptedParts xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"></span></p><p>               <sp:Body/></p><p>            </sp:EncryptedParts></p><p>         </wsp:All></p><p>      </wsp:ExactlyOne></p><p>   </wsp:Policy></p><p>    <wsp:Policy wsu:Id="Output_policy"></p><p>      <wsp:ExactlyOne></p><p>         <wsp:All></p><p><span>            <sp:SignedParts xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"></span></p><p>               <sp:Body/></p><p><span>               <sp:Header Name="To" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p><span>               <sp:Header Name="From" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p><span>               <sp:Header Name="FaultTo" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p><span>               <sp:Header Name="ReplyTo" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p><span>               <sp:Header Name="MessageID" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p><span>               <sp:Header Name="RelatesTo" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p><span>               <sp:Header Name="Action" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/></span></p><p>            </sp:SignedParts></p><p><span>            <sp:EncryptedParts xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"></span></p><p>               <sp:Body/></p><p>            </sp:EncryptedParts></p><p>         </wsp:All></p><p>      </wsp:ExactlyOne></p><p>   </wsp:Policy></p><p></wsdl:definitions></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>jboss-web.xml</p><p>_______________</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><?xml version="1.0" encoding="UTF-8"?></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span><!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "</span><a class="jive-link-external-small" href="http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd" target="_blank">http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd</a><span>"></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><jboss-web></p><p>   <security-domain>java:/jaas/JBossWS-trust-sts</security-domain></p><p></jboss-web></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>jboss-wsse-server.xml (This file is not included in the above link.But I just tried to include it because it was provided as part of picketlink secure token service)</p><p>______________________</p><p><?xml version="1.0" encoding="UTF-8"?></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span><jboss-ws-security xmlns="</span><a class="jive-link-external-small" href="http://www.jboss.com/ws-security/config" rel="nofollow" target="_blank">http://www.jboss.com/ws-security/config</a><span>" xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></p><p><span>  xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://www.jboss.com/ws-security/config" rel="nofollow" target="_blank">http://www.jboss.com/ws-security/config</a><span> </span><a class="jive-link-external-small" href="http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd" rel="nofollow" target="_blank">http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd</a><span>"></span></p><p>   <config></p><p>      <requires/></p><p>   </config></p><p></jboss-ws-security></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>web.xml</p><p>_____________</p><p><?xml version="1.0" encoding="UTF-8"?></p><p><web-app</p><p><span>   version="2.5" xmlns="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee" rel="nofollow" target="_blank">http://java.sun.com/xml/ns/javaee</a><span>"</span></p><p><span>   xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></p><p><span>   xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee" rel="nofollow" target="_blank">http://java.sun.com/xml/ns/javaee</a><span> </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" rel="nofollow" target="_blank">http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd</a><span>"></span></p><p>   <servlet></p><p>      <servlet-name>TestSecurityTokenService</servlet-name></p><p>      <servlet-class>STS.SampleSTS</servlet-class></p><p>   </servlet></p><p>   <servlet-mapping></p><p>      <servlet-name>TestSecurityTokenService</servlet-name></p><p>      <url-pattern>/SecurityTokenService/</url-pattern></p><p>   </servlet-mapping></p><p></web-app></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am sure I am missing something here in web.xml.Thatswhy I could not publish this as a service.</p><p>Please help me out.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks,</p><p>Abarna</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/827116#827116">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2047">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>