Description
In [SECURE-SOAP Quickstart|], there are instructions to run and invoke the deployed service. However, those instructions do nothing and don't invoke the service. There should be Hello world printed into console. But there isn't.
### To run the test: In this cxf-jaxws quistart, we also provide an integration test which can perform a few HTTP requests to test our web services. We created a Maven `test` profile to allow us to run tests code with a simple Maven command after having deployed the bundle to Fuse: 1. Change to the `secure-soap` directory. 2. Run the following command: mvn -Ptest The test uses a client proxy for the Web service to invoke the remote method - in reality, a SOAP message will be sent to the server and the response SOAP message will be received and handled. You will see this output from the remote method: Apr 4, 2013 7:48:13 AM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass INFO: Creating Service {http://secure.soap.fuse.quickstarts.jboss.org}HelloWorldService from class org.jboss.fuse.examples.cxf.jaxws.security.HelloWorld Hello World
Invoked mvn -Ptest log:
~/W/D/k/f/q/c/secure-soap ❯❯❯ mvn -Ptest [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Red Hat Fuse :: Quickstarts :: secure-soap 7.0.0.fuse-000187-redhat-1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ cxf-secure-soap --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ cxf-secure-soap --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- cxf-java2ws-plugin:3.1.11.fuse-000243-redhat-1:java2ws (process-classes) @ cxf-secure-soap --- java2ws -cp /Users/vkasala/Work/Downloads/karaf/fuse-karaf-7.0.0.fuse-000187-redhat-1/quickstarts/cxf/secure-soap/target/classes:/Users/vkasala/Work/Downloads/karaf/fuse-karaf-7.0.0.fuse-000187-redhat-1/quickstarts/cxf/secure-soap/target/classes:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-frontend-jaxws/3.1.11.fuse-000243-redhat-1/cxf-rt-frontend-jaxws-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/xml-resolver/xml-resolver/1.2.0.redhat-11/xml-resolver-1.2.0.redhat-11.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-core/3.1.11.fuse-000243-redhat-1/cxf-core-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/codehaus/woodstox/woodstox-core-asl/4.4.1/woodstox-core-asl-4.4.1.jar:/Users/vkasala/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar:/Users/vkasala/.m2/repository/org/apache/ws/xmlschema/xmlschema-core/2.2.1.redhat-2/xmlschema-core-2.2.1.redhat-2.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-bindings-soap/3.1.11.fuse-000243-redhat-1/cxf-rt-bindings-soap-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-wsdl/3.1.11.fuse-000243-redhat-1/cxf-rt-wsdl-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/wsdl4j/wsdl4j/1.6.3.redhat-2/wsdl4j-1.6.3.redhat-2.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-databinding-jaxb/3.1.11.fuse-000243-redhat-1/cxf-rt-databinding-jaxb-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.11.redhat-4/jaxb-impl-2.2.11.redhat-4.jar:/Users/vkasala/.m2/repository/com/sun/xml/bind/jaxb-core/2.2.11.redhat-4/jaxb-core-2.2.11.redhat-4.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-bindings-xml/3.1.11.fuse-000243-redhat-1/cxf-rt-bindings-xml-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-frontend-simple/3.1.11.fuse-000243-redhat-1/cxf-rt-frontend-simple-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-ws-addr/3.1.11.fuse-000243-redhat-1/cxf-rt-ws-addr-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-ws-policy/3.1.11.fuse-000243-redhat-1/cxf-rt-ws-policy-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-transports-http/3.1.11.fuse-000243-redhat-1/cxf-rt-transports-http-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/ow2/asm/asm/6.0.0.redhat-57/asm-6.0.0.redhat-57.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-ws-security/3.1.11.fuse-000243-redhat-1/cxf-rt-ws-security-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-security-saml/3.1.11.fuse-000243-redhat-1/cxf-rt-security-saml-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-security/3.1.11.fuse-000243-redhat-1/cxf-rt-security-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/net/sf/ehcache/ehcache/2.10.1/ehcache-2.10.1.jar:/Users/vkasala/.m2/repository/org/apache/wss4j/wss4j-ws-security-dom/2.1.9.redhat-1/wss4j-ws-security-dom-2.1.9.redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/wss4j/wss4j-ws-security-common/2.1.9.redhat-1/wss4j-ws-security-common-2.1.9.redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/santuario/xmlsec/2.0.8/xmlsec-2.0.8.jar:/Users/vkasala/.m2/repository/commons-codec/commons-codec/1.11/commons-codec-1.11.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-saml-impl/3.1.1/opensaml-saml-impl-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-profile-api/3.1.1/opensaml-profile-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-core/3.1.1/opensaml-core-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-saml-api/3.1.1/opensaml-saml-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-xmlsec-api/3.1.1/opensaml-xmlsec-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-soap-api/3.1.1/opensaml-soap-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-security-impl/3.1.1/opensaml-security-impl-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-security-api/3.1.1/opensaml-security-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/cryptacular/cryptacular/1.0/cryptacular-1.0.jar:/Users/vkasala/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.59/bcprov-jdk15on-1.59.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-xmlsec-impl/3.1.1/opensaml-xmlsec-impl-3.1.1.jar:/Users/vkasala/.m2/repository/net/shibboleth/utilities/java-support/7.1.1/java-support-7.1.1.jar:/Users/vkasala/.m2/repository/com/google/guava/guava/19.0.0.redhat-1/guava-19.0.0.redhat-1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-xacml-impl/3.1.1/opensaml-xacml-impl-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-xacml-api/3.1.1/opensaml-xacml-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-xacml-saml-impl/3.1.1/opensaml-xacml-saml-impl-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-xacml-saml-api/3.1.1/opensaml-xacml-saml-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/jasypt/jasypt/1.9.2/jasypt-1.9.2.jar:/Users/vkasala/.m2/repository/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.7.1/geronimo-javamail_1.4_spec-1.7.1.jar:/Users/vkasala/.m2/repository/org/apache/wss4j/wss4j-policy/2.1.9.redhat-1/wss4j-policy-2.1.9.redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/neethi/neethi/3.0.3/neethi-3.0.3.jar:/Users/vkasala/.m2/repository/org/apache/wss4j/wss4j-ws-security-stax/2.1.9.redhat-1/wss4j-ws-security-stax-2.1.9.redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/wss4j/wss4j-bindings/2.1.9.redhat-1/wss4j-bindings-2.1.9.redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/wss4j/wss4j-ws-security-policy-stax/2.1.9.redhat-1/wss4j-ws-security-policy-stax-2.1.9.redhat-1.jar:/Users/vkasala/.m2/repository/joda-time/joda-time/2.9.9/joda-time-2.9.9.jar:/Users/vkasala/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar::/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-frontend-jaxws/3.1.11.fuse-000243-redhat-1/cxf-rt-frontend-jaxws-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/xml-resolver/xml-resolver/1.2.0.redhat-11/xml-resolver-1.2.0.redhat-11.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-core/3.1.11.fuse-000243-redhat-1/cxf-core-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/codehaus/woodstox/woodstox-core-asl/4.4.1/woodstox-core-asl-4.4.1.jar:/Users/vkasala/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar:/Users/vkasala/.m2/repository/org/apache/ws/xmlschema/xmlschema-core/2.2.1.redhat-2/xmlschema-core-2.2.1.redhat-2.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-bindings-soap/3.1.11.fuse-000243-redhat-1/cxf-rt-bindings-soap-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-wsdl/3.1.11.fuse-000243-redhat-1/cxf-rt-wsdl-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/wsdl4j/wsdl4j/1.6.3.redhat-2/wsdl4j-1.6.3.redhat-2.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-databinding-jaxb/3.1.11.fuse-000243-redhat-1/cxf-rt-databinding-jaxb-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.11.redhat-4/jaxb-impl-2.2.11.redhat-4.jar:/Users/vkasala/.m2/repository/com/sun/xml/bind/jaxb-core/2.2.11.redhat-4/jaxb-core-2.2.11.redhat-4.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-bindings-xml/3.1.11.fuse-000243-redhat-1/cxf-rt-bindings-xml-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-frontend-simple/3.1.11.fuse-000243-redhat-1/cxf-rt-frontend-simple-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-ws-addr/3.1.11.fuse-000243-redhat-1/cxf-rt-ws-addr-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-ws-policy/3.1.11.fuse-000243-redhat-1/cxf-rt-ws-policy-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-transports-http/3.1.11.fuse-000243-redhat-1/cxf-rt-transports-http-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/ow2/asm/asm/6.0.0.redhat-57/asm-6.0.0.redhat-57.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-ws-security/3.1.11.fuse-000243-redhat-1/cxf-rt-ws-security-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-security-saml/3.1.11.fuse-000243-redhat-1/cxf-rt-security-saml-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/cxf/cxf-rt-security/3.1.11.fuse-000243-redhat-1/cxf-rt-security-3.1.11.fuse-000243-redhat-1.jar:/Users/vkasala/.m2/repository/net/sf/ehcache/ehcache/2.10.1/ehcache-2.10.1.jar:/Users/vkasala/.m2/repository/org/apache/wss4j/wss4j-ws-security-dom/2.1.9.redhat-1/wss4j-ws-security-dom-2.1.9.redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/wss4j/wss4j-ws-security-common/2.1.9.redhat-1/wss4j-ws-security-common-2.1.9.redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/santuario/xmlsec/2.0.8/xmlsec-2.0.8.jar:/Users/vkasala/.m2/repository/commons-codec/commons-codec/1.11/commons-codec-1.11.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-saml-impl/3.1.1/opensaml-saml-impl-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-profile-api/3.1.1/opensaml-profile-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-core/3.1.1/opensaml-core-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-saml-api/3.1.1/opensaml-saml-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-xmlsec-api/3.1.1/opensaml-xmlsec-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-soap-api/3.1.1/opensaml-soap-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-security-impl/3.1.1/opensaml-security-impl-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-security-api/3.1.1/opensaml-security-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/cryptacular/cryptacular/1.0/cryptacular-1.0.jar:/Users/vkasala/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.59/bcprov-jdk15on-1.59.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-xmlsec-impl/3.1.1/opensaml-xmlsec-impl-3.1.1.jar:/Users/vkasala/.m2/repository/net/shibboleth/utilities/java-support/7.1.1/java-support-7.1.1.jar:/Users/vkasala/.m2/repository/com/google/guava/guava/19.0.0.redhat-1/guava-19.0.0.redhat-1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-xacml-impl/3.1.1/opensaml-xacml-impl-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-xacml-api/3.1.1/opensaml-xacml-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-xacml-saml-impl/3.1.1/opensaml-xacml-saml-impl-3.1.1.jar:/Users/vkasala/.m2/repository/org/opensaml/opensaml-xacml-saml-api/3.1.1/opensaml-xacml-saml-api-3.1.1.jar:/Users/vkasala/.m2/repository/org/jasypt/jasypt/1.9.2/jasypt-1.9.2.jar:/Users/vkasala/.m2/repository/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.7.1/geronimo-javamail_1.4_spec-1.7.1.jar:/Users/vkasala/.m2/repository/org/apache/wss4j/wss4j-policy/2.1.9.redhat-1/wss4j-policy-2.1.9.redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/neethi/neethi/3.0.3/neethi-3.0.3.jar:/Users/vkasala/.m2/repository/org/apache/wss4j/wss4j-ws-security-stax/2.1.9.redhat-1/wss4j-ws-security-stax-2.1.9.redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/wss4j/wss4j-bindings/2.1.9.redhat-1/wss4j-bindings-2.1.9.redhat-1.jar:/Users/vkasala/.m2/repository/org/apache/wss4j/wss4j-ws-security-policy-stax/2.1.9.redhat-1/wss4j-ws-security-policy-stax-2.1.9.redhat-1.jar:/Users/vkasala/.m2/repository/joda-time/joda-time/2.9.9/joda-time-2.9.9.jar:/Users/vkasala/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar:/Users/vkasala/.m2/repository/junit/junit/4.12.0.redhat-003/junit-4.12.0.redhat-003.jar:/Users/vkasala/.m2/repository/org/hamcrest/hamcrest-core/1.3-redhat-1/hamcrest-core-1.3-redhat-1.jar:/Users/vkasala/.m2/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar:/Users/vkasala/.m2/repository/log4j/log4j/1.2.17.redhat-3/log4j-1.2.17.redhat-3.jar: -o /Users/vkasala/Work/Downloads/karaf/fuse-karaf-7.0.0.fuse-000187-redhat-1/quickstarts/cxf/secure-soap/target/generated/wsdl/HelloWorld.wsdl -wsdl -verbose org.jboss.fuse.quickstarts.cxf.soap.secure.HelloWorld java2ws - Apache CXF 3.1.11.fuse-000243-redhat-1 May 07, 2018 3:50:31 PM org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean buildServiceFromClass INFO: Creating Service {http://secure.soap.cxf.quickstarts.fuse.jboss.org/}HelloWorldService from class org.jboss.fuse.quickstarts.cxf.soap.secure.HelloWorld [INFO] [INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ cxf-secure-soap --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ cxf-secure-soap --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ cxf-secure-soap --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-bundle-plugin:3.5.0:bundle (default-bundle) @ cxf-secure-soap --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.190 s [INFO] Finished at: 2018-05-07T15:50:33+02:00 [INFO] Final Memory: 31M/437M [INFO] ------------------------------------------------------------------------
Attachments
Issue Links
- is related to
-
ENTESB-8090 CXF SOAP SECURITY THROWS NOCLASSDEDFOUND
- Closed