Using Kibana and ElasticSearch for Log Analysis with Fluentd on Docker Swarm Introduction In my previous post, I talked about how to configure fluentd for logging for multiple Docker containers. The post explained how to create a single file for each micro service irrespective of its multiple instances it could have. However, Log files have […]
Tag: microservice
How to consume REST based web service in Spring BOOT
How to consume REST based web service in Spring BOOT Introduction In my last tutorial I wrote about Consuming a secure SOAP based web service in Spring Boot application, In this tutorial, I will talk about consuming a simple unsecured REST service in Spring Boot Consuming REST service is very simple and less ad-hoc than […]
How to fix org.apache.cxf.ws.policy.PolicyException: These policy alternatives can not be satisfied
How to fix – org.apache.cxf.ws.policy.PolicyException: These policy alternatives can not be satisfied: I encountered this error when trying to call a secure web service which had username password authentication along with Timestamp authentication. Exception I got following exception when I was calling secure web service
1 2 3 4 5 6 7 8 9 10 11 | Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is javax.xml.ws.soap.SOAPFaultException: These policy alternatives can not be satisfied: {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}TransportBinding: Received Timestamp does not match the requirements {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}IncludeTimestamp] with root cause org.apache.cxf.ws.policy.PolicyException: These policy alternatives can not be satisfied: {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}TransportBinding: Received Timestamp does not match the requirements {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}IncludeTimestamp at org.apache.cxf.ws.policy.AssertionInfoMap.checkEffectivePolicy(AssertionInfoMap.java:179) ~[cxf-rt-ws-policy-3.1.10.jar:3.1.10] at org.apache.cxf.ws.policy.PolicyVerificationInInterceptor.handle(PolicyVerificationInInterceptor.java:102) ~[cxf-rt-ws-policy-3.1.10.jar:3.1.10] |
Following steps helped me fix this problem, hope it […]
How to access LinkedIn data using spring-social
How to access LinkedIn data using spring-social and spring boot Introduction Spring Social provides the capability which enables our application to interact with LinkedIn Rest API and get user data. Considering how popular social logins have become recently, it is a nice feature to have on your website. Getting started I would suggest you to […]
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. […]
How to Enable Docker Remote REST API on Docker Host
Enable Docker Remote REST API on Docker Host in Ubuntu Introduction Docker provides remote REST API which is beneficial if you want to connect to a remote docker host. Few of the functions which you can achieve using Docker REST API over a simple browser are Create and Manage Containers Get low-level information about a […]
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> |
[…]
How To Create A Spring Boot REST Microservice with Docker
Step-By-Step Guide To Create A Spring Boot MVC Microservice With Docker SpringBoot is a popular spring framework capable of running as a standalone executable. It fits well in microservices architecture where each service is supposed to be running independently. In Docker, each Microservice(Spring Boot rest service) can be installed in a separate container and accessed […]
How to Connect to Spring BOOT Rest service to Mongo DB in Docker
Connect Spring BOOT Rest Service To MONGO DB within Docker SpringBoot is a popular spring framework that allows users to create projects capable of running as standalone executables . It fits in so well in microservices architecture where each service is supposed to be running independently. Spring boot can easily be integrated with different backend database […]