How to use Jenkins to Build and Deploy docker images without Jenkins Docker plugin Introduction Jenkins is one of the most popular continuous integration tools and is widely used. It can be used to create pipelines, run jobs and do automated deployments. There are many plugins available which can be added to Jenkins and makes it […]
Month: April 2023
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
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 […]
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 consume a secure SOAP Web service in Spring Boot Application
How to consume a secure SOAP Web service by adding WS-SECURITY SOAP header in Spring Boot Application Introduction Consuming a SOAP based web service is one of the common use cases a developer will come across. There are different implementations like JAX-WS, Axis1/2 and CXF which helps us in calling the web services easily. While […]
How to change the default spring social redirect page flow
How to fix spring boot and spring social redirection to facebookConnected.html twitterConnected.html,linkedInconnected.html or googleConnected.html Introduction Spring Boot when plugged with Spring social does provide a quick and easy way to log on to social providers and access the data quickly. However, it does have lot of shortcomings too like Supporting only single user sign per […]
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 Add Bootstrap Css and JQuery To Spring Boot MVC Application
How to add Bootstrap, Font-Awesome and Jquery to spring Boot Project Introduction Twitter Bootstrap is one of the most popular front-end frameworks for responsive web design and development. Font Awesome provides us with scalable vector icons that can be customised. Needless to say, anything about Jquery, since it is the number 1 Javascript framework and […]
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 access google data using spring-social and spring boot
How to access google data using spring-social Introduction Spring social do have a spring-social-google project but it doesn’t have autoconfiguration for Google. So google authorization doesn’t work with spring boot autoconfigure straight away. I had created a pull request and merged the code to spring repository but got the following reply Thanks for the PR. […]
Spring Social Facebook Authentication Example for multiple users
How to Fix Spring-Social Facebook one user per application problem. Problem I was working on this Accessing FaceBook Data tutorial and it was easy peasy to get it up and running. However, when I tested it for some time I realised that it only supports one user. So when the first users log in to […]