4 Replies Latest reply: Dec 6, 2011 11:39 AM by dlaprade RSS

    WSDL w/ sign/encrypt/token having trouble getting ?wsdl when deployed

    dlaprade Newbie

      I am having trouble getting the wsdl once my service is deployed. I am attempting to secure my service with a policy that forces an STS token, encrypt, and sign.  I am recieving the following error when deployed in to JBoss-5.1.0-GA with JBossWS-CXF 3.1.2:

       

      javax.servlet.ServletException: Cannot obtain destination for: /Hello_World/HelloWorldService

       

      I would appreciate any help with this issue.  I have listed my configuration file as well as my policy file for reference.

       

       

      jbossws-cxf.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <beans xmlns="http://www.springframework.org/schema/beans"

             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

             xmlns:jaxws="http://cxf.apache.org/jaxws"

             xsi:schemaLocation="

                      http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd

                      http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd

                      http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">

         

          <jaxws:endpoint id="HelloWorldService" implementor="com.example.HelloWorldServer" address="/Hello-World/HelloWorldService" >

                   

              <jaxws:properties>

                  <entry key="ws-security.callback-handler" value="com.example.KeystorePasswordCallback"/>

                  <entry key="ws-security.signature.properties" value="user.properties"/>

                  <entry key="ws-security.encryption.properties" value="user.properties"/>

                  <entry key="ws-security.signature.username" value="bob"/>

                  <entry key="ws-security.encryption.username" value="bob"/>

              </jaxws:properties>

       

          </jaxws:endpoint>

                 

      </beans>

       

      policy.wsdl ( generated by Netbeans ):

       

       

       

      <wsdl:definitions name="SecurityPolicy"

                        targetNamespace="http://com.example/SecurityPolicy"

                        xmlns:tns="http://com.example/SecurityPolicy"

                        xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"

                        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

                        xmlns:xsd="http://www.w3.org/2001/XMLSchema"

                                       

                  xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"

                  xmlns:wsaw="http://www.w3.org/2005/08/addressing"

                  xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"

                  xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust"

                  xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">

                     

          <wsp:Policy wsu:Id="ServicePortBindingPolicy">

                     

              <wsp:ExactlyOne>

                  <wsp:All>

                      <wsaw:UsingAddressing xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" wsp:Optional="false"/>

                      <sp:SymmetricBinding>

                          <wsp:Policy>

                              <sp:ProtectionToken>

                                  <wsp:Policy>

                                      <sp:SecureConversationToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">

                                          <wsp:Policy>

                                              <sp:RequireDerivedKeys/>

                                              <sp:BootstrapPolicy>

                                                  <wsp:Policy>

                                                      <sp:SymmetricBinding>

                                                          <wsp:Policy>

                                                              <sp:ProtectionToken>

                                                                  <wsp:Policy>

                                                                      <sp:IssuedToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">

                                                                          <sp:RequestSecurityTokenTemplate>

                                                                              <t:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0</t:TokenType>

                                                                              <t:KeyType>http://schemas.xmlsoap.org/ws/2005/02/trust/PublicKey</t:KeyType>

                                                                              <t:KeySize>2048</t:KeySize>

                                                                          </sp:RequestSecurityTokenTemplate>

                                                                          <wsp:Policy>

                                                                              <sp:RequireInternalReference/>

                                                                          </wsp:Policy>

                                                                          <sp:Issuer>

                                                                              <wsaw:Address>issuerAddress</wsaw:Address>

                                                                              <wsaw:Metadata>

                                                                                  <wsx:Metadata>

                                                                                      <wsx:MetadataSection>

                                                                                          <wsx:MetadataReference>

                                                                                              <wsaw:Address>IssuerMetadataAddress</wsaw:Address>

                                                                                          </wsx:MetadataReference>

                                                                                      </wsx:MetadataSection>

                                                                                  </wsx:Metadata>

                                                                              </wsaw:Metadata>

                                                                          </sp:Issuer>

                                                                      </sp:IssuedToken>

                                                                  </wsp:Policy>

                                                              </sp:ProtectionToken>

                                                              <sp:Layout>

                                                                  <wsp:Policy>

                                                                      <sp:Lax/>

                                                                  </wsp:Policy>

                                                              </sp:Layout>

                                                              <sp:IncludeTimestamp/>

                                                              <sp:OnlySignEntireHeadersAndBody/>

                                                              <sp:AlgorithmSuite>

                                                                  <wsp:Policy>

                                                                      <sp:TripleDesSha256Rsa15/>

                                                                  </wsp:Policy>

                                                              </sp:AlgorithmSuite>

                                                              <sp:EncryptSignature/>

                                                          </wsp:Policy>

                                                      </sp:SymmetricBinding>

                                                      <sp:Wss11>

                                                          <wsp:Policy>

                                                              <sp:MustSupportRefIssuerSerial/>

                                                              <sp:MustSupportRefThumbprint/>

                                                              <sp:MustSupportRefEncryptedKey/>

                                                              <sp:RequireSignatureConfirmation/>

                                                          </wsp:Policy>

                                                      </sp:Wss11>

                                                      <sp:Trust10>

                                                          <wsp:Policy>

                                                              <sp:MustSupportIssuedTokens/>

                                                              <sp:RequireClientEntropy/>

                                                              <sp:RequireServerEntropy/>

                                                          </wsp:Policy>

                                                      </sp:Trust10>

                                                      <sp:EncryptedParts>

                                                          <sp:Body/>

                                                      </sp:EncryptedParts>

                                                      <sp:SignedParts>

                                                          <sp:Body/>

                                                          <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>

                                                          <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>

                                                          <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>

                                                          <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>

                                                          <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>

                                                          <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>

                                                          <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>

                                                          <sp:Header Name="AckRequested" Namespace="http://schemas.xmlsoap.org/ws/2005/02/rm"/>

                                                          <sp:Header Name="SequenceAcknowledgement" Namespace="http://schemas.xmlsoap.org/ws/2005/02/rm"/>

                                                          <sp:Header Name="Sequence" Namespace="http://schemas.xmlsoap.org/ws/2005/02/rm"/>

                                                          <sp:Header Name="CreateSequence" Namespace="http://schemas.xmlsoap.org/ws/2005/02/rm"/>

                                                      </sp:SignedParts>

                                                  </wsp:Policy>

                                              </sp:BootstrapPolicy>

                                          </wsp:Policy>

                                      </sp:SecureConversationToken>

                                  </wsp:Policy>

                              </sp:ProtectionToken>

                              <sp:Layout>

                                  <wsp:Policy>

                                      <sp:Strict/>

                                  </wsp:Policy>

                              </sp:Layout>

                              <sp:AlgorithmSuite>

                                  <wsp:Policy>

                                      <sp:TripleDesSha256Rsa15/>

                                  </wsp:Policy>

                              </sp:AlgorithmSuite>

                              <sp:IncludeTimestamp/>

                              <sp:OnlySignEntireHeadersAndBody/>

                              <sp:EncryptSignature/>

                          </wsp:Policy>

                      </sp:SymmetricBinding>

                      <sp:Wss11>

                          <wsp:Policy>

                              <sp:MustSupportRefIssuerSerial/>

                              <sp:MustSupportRefThumbprint/>

                              <sp:MustSupportRefEncryptedKey/>

                          </wsp:Policy>

                      </sp:Wss11>

                      <sp:Trust10>

                          <wsp:Policy>

                              <sp:RequireClientEntropy/>

                              <sp:RequireServerEntropy/>

                              <sp:MustSupportIssuedTokens/>

                          </wsp:Policy>

                      </sp:Trust10>

                  </wsp:All>

              </wsp:ExactlyOne>

          </wsp:Policy>

          <wsp:Policy wsu:Id="ServiceInputPolicy">

              <wsp:ExactlyOne>

                  <wsp:All>

                      <sp:EncryptedParts>

                          <sp:Body/>

                      </sp:EncryptedParts>

                      <sp:SignedParts>

                          <sp:Body/>

                          <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="AckRequested" Namespace="http://schemas.xmlsoap.org/ws/2005/02/rm"/>

                          <sp:Header Name="SequenceAcknowledgement" Namespace="http://schemas.xmlsoap.org/ws/2005/02/rm"/>

                          <sp:Header Name="Sequence" Namespace="http://schemas.xmlsoap.org/ws/2005/02/rm"/>

                          <sp:Header Name="CreateSequence" Namespace="http://schemas.xmlsoap.org/ws/2005/02/rm"/>

                      </sp:SignedParts>

                  </wsp:All>

              </wsp:ExactlyOne>

          </wsp:Policy>

          <wsp:Policy wsu:Id="ServiceOutputPolicy">

              <wsp:ExactlyOne>

                  <wsp:All>

                      <sp:EncryptedParts>

                          <sp:Body/>

                      </sp:EncryptedParts>

                      <sp:SignedParts>

                          <sp:Body/>

                          <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>

                          <sp:Header Name="AckRequested" Namespace="http://schemas.xmlsoap.org/ws/2005/02/rm"/>

                          <sp:Header Name="SequenceAcknowledgement" Namespace="http://schemas.xmlsoap.org/ws/2005/02/rm"/>

                          <sp:Header Name="Sequence" Namespace="http://schemas.xmlsoap.org/ws/2005/02/rm"/>

                          <sp:Header Name="CreateSequence" Namespace="http://schemas.xmlsoap.org/ws/2005/02/rm"/>

                      </sp:SignedParts>

                  </wsp:All>

              </wsp:ExactlyOne>

          </wsp:Policy>

       

       

      </wsdl:definitions>

        • 1. Re: WSDL w/ sign/encrypt/token having trouble getting ?wsdl when deployed
          dlaprade Newbie

          The service shows up fine in the /jbossws/services

           

          Logging information from deployment:

           

          2011-11-01 09:55:34,190 INFO  [org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect] (HDScanner) JBossWS-CXF configuration found: vfszip:/C:/Workspace/jboss-as/jboss-5.1.0.GA/server/default/deploy/Hello_World.war/WEB-INF/jbossws-cxf.xml

          2011-11-01 09:55:34,268 INFO  [org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext] (HDScanner) Refreshing org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext@23cdfde8: startup date [Tue Nov 01 09:55:34 EDT 2011]; root of context hierarchy

          2011-11-01 09:55:34,271 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (HDScanner) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3b971ee3: defining beans []; root of factory hierarchy

          2011-11-01 09:55:34,271 INFO  [org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext] (HDScanner) Refreshing org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext@23cdfde8: startup date [Tue Nov 01 09:55:34 EDT 2011]; root of context hierarchy

          2011-11-01 09:55:34,272 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (HDScanner) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3b971ee3: defining beans []; root of factory hierarchy

          2011-11-01 09:55:34,283 INFO  [org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader] (HDScanner) Loading XML bean definitions from class path resource [META-INF/cxf/jbossws-cxf.xml]

          2011-11-01 09:55:34,291 INFO  [org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader] (HDScanner) Loading XML bean definitions from URL [vfszip:/C:/Workspace/jboss-as/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/jbossws-cxf-client.jar/META-INF/cxf/cxf-extension-jbossws.xml]

          2011-11-01 09:55:34,303 INFO  [org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader] (HDScanner) Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-httpserver.xml]

          2011-11-01 09:55:34,316 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (HDScanner) Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [vfszip:/C:/Workspace/jboss-as/jboss-5.1.0.GA/common/lib/cxf-rt-transports-http.jar/META-INF/cxf/cxf-extension-http.fixml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [vfszip:/C:/Workspace/jboss-as/jboss-5.1.0.GA/common/lib/cxf-rt-transports-http.jar/META-INF/cxf/cxf-extension-http.fixml]]

          2011-11-01 09:55:34,317 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (HDScanner) Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [vfszip:/C:/Workspace/jboss-as/jboss-5.1.0.GA/common/lib/cxf-rt-transports-http.jar/META-INF/cxf/cxf-extension-http.fixml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [vfszip:/C:/Workspace/jboss-as/jboss-5.1.0.GA/common/lib/cxf-rt-transports-http.jar/META-INF/cxf/cxf-extension-http.fixml]]

          2011-11-01 09:55:34,317 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (HDScanner) Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [vfszip:/C:/Workspace/jboss-as/jboss-5.1.0.GA/common/lib/cxf-rt-transports-http.jar/META-INF/cxf/cxf-extension-http.fixml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [vfszip:/C:/Workspace/jboss-as/jboss-5.1.0.GA/common/lib/cxf-rt-transports-http.jar/META-INF/cxf/cxf-extension-http.fixml]]

          2011-11-01 09:55:34,318 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (HDScanner) Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Generic bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [vfszip:/C:/Workspace/jboss-as/jboss-5.1.0.GA/common/lib/cxf-rt-transports-http.jar/META-INF/cxf/cxf-extension-http.fixml]] with [Generic bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [vfszip:/C:/Workspace/jboss-as/jboss-5.1.0.GA/common/lib/cxf-rt-transports-http.jar/META-INF/cxf/cxf-extension-http.fixml]]

          2011-11-01 09:55:34,365 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (HDScanner) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@70d109de: defining beans [cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.service.factory.FactoryBeanListenerManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.transport.jms.JMSTransportFactory,org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader,org.apache.cxf.transport.local.LocalTransportFactory,org.apache.cxf.management.InstrumentationManager,org.apache.cxf.binding.object.ObjectBindingFactory,org.apache.cxf.ws.rm.RMManager,org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.ws.rm.policy.RMAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerTransportFactory,org.apache.cxf.binding.http.HttpBindingFactory,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.ws.policy.AssertionBuilderRegistry,org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry,org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry,org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder,org.apache.cxf.ws.policy.PolicyBuilder,org.apache.cxf.ws.policy.PolicyEngine,org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider,org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider,org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder,org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer]; root of factory hierarchy

          2011-11-01 09:55:34,385 INFO  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (HDScanner) Loading XML bean definitions from resource loaded through InputStream

          2011-11-01 09:55:34,412 INFO  [org.springframework.context.support.GenericApplicationContext] (HDScanner) Refreshing org.springframework.context.support.GenericApplicationContext@12990849: startup date [Tue Nov 01 09:55:34 EDT 2011]; parent: org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext@23cdfde8

          2011-11-01 09:55:34,413 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (HDScanner) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@578d88c3: defining beans [HelloWorldService]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@70d109de

          2011-11-01 09:55:34,417 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (HDScanner) Creating Service {http://example.com/HelloWorldService}HelloWorldService from WSDL: WEB-INF/wsdl/helloworld.wsdl

          2011-11-01 09:55:34,537 WARN  [org.jboss.wsf.stack.cxf.resolver.JBossWSResourceResolver] (HDScanner) Cannot resolve resource: cxf

          2011-11-01 09:55:34,615 WARN  [org.jboss.wsf.stack.cxf.resolver.JBossWSResourceResolver] (HDScanner) Cannot resolve resource: org.apache.cxf.binding.AbstractBindingFactory/bus

          2011-11-01 09:55:34,634 WARN  [org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl] (HDScanner) No assertion builder for type {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireInternalReference registered.

          2011-11-01 09:55:34,635 INFO  [org.apache.cxf.endpoint.ServerImpl] (HDScanner) Setting the server's publish address to be /Hello-World/HelloWorldService

          2011-11-01 09:55:34,642 INFO  [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (HDScanner) WSDL published to: file:/C:/Workspace/jboss-as/jboss-5.1.0.GA/server/default/data/wsdl/Hello_World.war/helloworld.wsdl

          2011-11-01 09:55:34,651 INFO  [org.jboss.wsf.framework.management.DefaultEndpointRegistry] (HDScanner) register: jboss.ws:context=Hello_World,endpoint=HelloWorldService

          2011-11-01 09:55:34,718 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) deploy, ctxPath=/Hello_World

          • 2. Re: WSDL w/ sign/encrypt/token having trouble getting ?wsdl when deployed
            dlaprade Newbie

            Ok, I narrowed it down by playing around with the jbossws-cxf.xml file. If I add the cxf:bus block and the bus=cxf.... it dies with the above error other wise it shows the wsdl but without the policy references. Any ideas on what I am doing wrong here?

             

            <!-- CXF bus configuration

                <cxf:bus>

                    <cxf:features>

                        <p:policies/>

                        <cxf:logging/>

                    </cxf:features>

                </cxf:bus>

            -->

             

                <!-- Web service server class bean -->

                <bean id="HelloWorldServer" class="com.example.HelloWorldServer" />

               

                <!-- Endpoint definition -->

                <jaxws:endpoint id="HelloWorldService" implementor="#HelloWorldServer" address="/HelloWorld/HelloWorldService">

                    <!-- commented out b/c it fails:

                            bus="cxf" createdFromAPI="true"

                    -->             

             

                    <!-- A properties map which should be supplied to the JAX-WS endpoint -->

                    <jaxws:properties>

                        <entry key="ws-security.callback-handler" value="com.example.KeystorePasswordCallback"/>

                        <entry key="ws-security.signature.properties" value="user.properties"/>

                        <entry key="ws-security.encryption.properties" value="user.properties"/>

                        <entry key="ws-security.signature.username" value="bob"/>

                        <entry key="ws-security.encryption.username" value="bob"/>

                    </jaxws:properties>

                   

                    <!-- Handlers that should implement javax.xml.ws.handler.Handler or javax.xml.ws.handler.soap.SOAPHandler -->

                    <jaxws:handlers>

                        <bean class="org.picketlink.trust.jbossws.handler.SAML2Handler"/>

                    </jaxws:handlers>

                   

                </jaxws:endpoint>

            • 3. Re: WSDL w/ sign/encrypt/token having trouble getting ?wsdl when deployed
              dlaprade Newbie

              After more configuration madness.... I got it to work with this configuration:

               

                  <!-- CXF bus configuration -->

                  <cxf:bus>

                      <cxf:features>

                          <p:policies/>

                          <cxf:logging/>

                      </cxf:features>

                  </cxf:bus>

                 

                  <!-- Web service server class bean -->

                  <bean id="HelloWorldServer" class="com.example.HelloWorldServer" />

                 

                  <!-- Endpoint definition -->

                  <jaxws:endpoint  id="HelloWorldService"  implementor="#HelloWorldServer"  wsdlLocation="WEB-INF/wsdl/helloworld.wsdl" >

               

                   ........

               

               

              It seems that adding the "bus=cxf" option is a problem and having an "address= ... " causes issues.

              • 4. Re: WSDL w/ sign/encrypt/token having trouble getting ?wsdl when deployed
                dlaprade Newbie

                After much confusion, it seems to be caused by a mismatch of the <soap:address location="..."/> and how it is deployed via the web.xml.

                 

                How do I make this url be dynamic based upon how and where it is installed?