How to create docker image of spring MVC project Introduction There is a lot of documentation available on running a spring boot as a docker container and it is quite easy to achieve too. Follow my tutorial which lists step by step guide on creating a spring boot docker image. Well, when it comes to […]
Tag: Spring Boot MVC
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 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 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 […]