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 […]
Tag: java
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 […]
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 Learn Scala easily and quickly for beginners
7 steps to learn Scala easily and quickly for beginners Scala is in vogue and is here to stay. It is a typesafe JVM language which imbibes both functional and object oriented paradigms nicely. Scala is also a functional language which encourages immutable collections by default. In my experience, I have found Scala to be Concise […]
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 […]