|
For making this working i have to set the port to 8181; -Dorg.switchyard.component.soap.client.port=8183
When I execute this example in fuse-6.2 I receive this exception:
mvn exec:java -Dexec.args="confidentiality clientAuthentication" -Djavax.net.ssl.trustStore=connector.jks -Dorg.switchyard.component.soap.client.port=8181
[INFO] — exec-maven-plugin:1.3.2:java (default-cli) @ switchyard-demo-policy-security-basic — [WARNING] Warning: killAfter is now deprecated. Do you need it ? Please comment on MEXEC-6. 12:28:04,374 INFO [org.switchyard.quickstarts.demo.policy.security.basic.WorkServiceMain] Invoking work service at endpoint: https://localhost:8181/cxf/policy-security-basic/WorkService [WARNING] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.AssertionError: Exception invoking HTTP endpoint 'https://localhost:8181/cxf/policy-security-basic/WorkService': Unrecognized SSL message, plaintext connection? at org.junit.Assert.fail(Assert.java:88) at org.switchyard.component.test.mixins.http.HTTPMixIn.execute(HTTPMixIn.java:405) at org.switchyard.component.test.mixins.http.HTTPMixIn.postString(HTTPMixIn.java:222) at org.switchyard.quickstarts.demo.policy.security.basic.WorkServiceMain.invokeWorkService(WorkServiceMain.java:61) at org.switchyard.quickstarts.demo.policy.security.basic.WorkServiceMain.main(WorkServiceMain.java:103) ... 6 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.228s [INFO] Finished at: Tue Mar 10 12:28:04 CET 2015 [INFO] Final Memory: 31M/422M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:java (default-cli) on project switchyard-demo-policy-security-basic: An exception occured while executing the Java class. null: InvocationTargetException: Exception invoking HTTP endpoint 'https://localhost:8181/cxf/policy-security-basic/WorkService': Unrecognized SSL message, plaintext connection
|