-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution:
Won't Fix
-
Affects Version/s: jboss-fuse-6.2.1, jboss-fuse-6.3
-
Fix Version/s: jboss-fuse-6.2.1, jboss-fuse-6.3
-
Component/s: Examples, SwitchYard
-
Labels:None
-
Environment:
Fuse 6.2.1-032
-
Steps to Reproduce:
-
Git Pull Request:
-
Sprint:Sprint 5 - towards ER2
With this command
mvn exec:java -Dorg.switchyard.component.soap.client.port=8183
|
Is this error thrown :
[INFO] --- exec-maven-plugin:1.4.0:java (default-cli) @ switchyard-demo-policy-security-basic ---
|
10:58:01,185 INFO [org.switchyard.quickstarts.demo.policy.security.basic.WorkServiceMain] Invoking work service at endpoint: http://localhost:8183/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:745)
|
Caused by: java.lang.AssertionError: Exception invoking HTTP endpoint 'http://localhost:8183/cxf/policy-security-basic/WorkService': Connect to localhost:8183 [localhost/127.0.0.1] failed: Connection refused
|
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: 3.359 s
|
[INFO] Finished at: 2015-09-23T10:58:01+02:00
|
[INFO] Final Memory: 28M/322M
|
[INFO] ------------------------------------------------------------------------
|
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java (default-cli) on project switchyard-demo-policy-security-basic: An exception occured while executing the Java class. null: InvocationTargetException: Exception invoking HTTP endpoint 'http://localhost:8183/cxf/policy-security-basic/WorkService': Connect to localhost:8183 [localhost/127.0.0.1] failed: Connection refused -> [Help 1]
|
[ERROR]
|
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
|
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
|
[ERROR]
|
[ERROR] For more information about the errors and possible solutions, please read the following articles:
|
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
|
With different port
mvn exec:java -Dorg.switchyard.component.soap.client.port=8181
|
With second command and corrected
port :
mvn exec:java -Dexec.args="confidentiality clientAuthentication" -Djavax.net.ssl.trustStore=connector.jks -Dorg.switchyard.component.soap.client.port=8181
|
i've got :
[INFO] --- exec-maven-plugin:1.4.0:java (default-cli) @ switchyard-demo-policy-security-basic ---
|
11:08:34,187 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:745)
|
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: 3.202 s
|
[INFO] Finished at: 2015-09-23T11:08:34+02:00
|
[INFO] Final Memory: 28M/322M
|
[INFO] ------------------------------------------------------------------------
|
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0: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? -> [Help 1]
|
[ERROR]
|
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
|
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
|
[ERROR]
|
[ERROR] For more information about the errors and possible solutions, please read the following articles:
|
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
|
There is also wrong typo
features:install switchyard-quickstart-bean-service
|
and
features:uninstall switchyard-quickstart-bean-service
|
On EAP you will get with this command
mvn exec:java -Dexec.args="confidentiality clientAuthentication" -Djavax.net.ssl.trustStore=connector.jks
|
error :
[INFO] --- exec-maven-plugin:1.4.0:java (default-cli) @ switchyard-demo-policy-security-basic ---
|
11:18:06,258 INFO [org.switchyard.quickstarts.demo.policy.security.basic.WorkServiceMain] Invoking work service at endpoint: https://localhost:8443/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:745)
|
Caused by: java.lang.AssertionError: Exception invoking HTTP endpoint 'https://localhost:8443/policy-security-basic/WorkService': java.security.cert.CertificateException: No X509TrustManager implementation available
|
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: 3.648 s
|
[INFO] Finished at: 2015-09-23T11:18:06+02:00
|
[INFO] Final Memory: 28M/322M
|
[INFO] ------------------------------------------------------------------------
|
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0: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:8443/policy-security-basic/WorkService': java.security.cert.CertificateException: No X509TrustManager implementation available -> [Help 1]
|
[ERROR]
|
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
|
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
|
[ERROR]
|
[ERROR] For more information about the errors and possible solutions, please read the following articles:
|
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
|