How to fix- Execution build and start of goal io.fabric8:docker-maven-plugin:0.20.0:build failed: A tar file cannot include itself. Introduction When using fabric8:docker-maven-plugin I got this error and below fix helped me to fix this. I assume this error occurs when you use dockerFileDir or dockerFile tag in maven plugin, it seems the tar file which is […]
Tag: exception
How to resolve – org.springframework.social.UncategorizedApiException: bio field is deprecated for versions v2.8 and higher
How to fix – org.springframework.social.UncategorizedApiException: (#12) bio field is deprecated for versions v2.8 and higher I encountered this error when using spring-social-facebook API. I did git clone of Spring tutorial for accessing facebook data I was hoping for it to work straightaway but got blocked by this error. Following steps helped me fix this problem, hope it helps. […]
Exception – How to resolve com.sun.xml.internal.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy
Exception I got this exception while using Apache CXF service. I was trying to use cxf endpoint to add some interceptors as shown on apache page.
1 2 3 4 5 | org.apache.cxf.endpoint.Client client = org.apache.cxf.frontend.ClientProxy.getClient(port); org.apache.cxf.endpoint.Endpoint cxfEndpoint = client.getEndpoint(); |
But I was getting this exception continously
1 2 3 4 | Caused by: java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy |
I had added the following dependencies in my POM
1 2 3 4 5 6 7 8 9 10 11 | <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-simple</artifactId> <version>${cxf.version}</version> </dependency> |
The error got resolved when I changed it to
1 2 3 4 5 6 7 8 9 10 11 | <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version> </dependency> |
[…]