Category Archives: Spring

Spring Framework and uber-jar made by maven-shade-plugin

If you’re trying to build a Java application in a form of an uber-jar with use of Spring Framework, maven and maven-shade-plugin and you see an error similar to the below one (BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler … Continue reading

Posted in Java, Spring | Tagged , , | Leave a comment

Spring Boot configuration for Tomcat’s pooling data source

In one of projects I was just working on in my professional career I’ve faced the problem of a Spring Boot configuration for a Tomcat’s database connection pool. The main issue was that after some time the pool was giving … Continue reading

Posted in database, Java, Spring, Tomcat | Tagged , | 1 Comment

RestTemplate and <mvc:message-converters> in Spring Framework 4.3

The Spring Framework’s documentation says that RestTemplate instance created by the default constructor gets the default set of HttpMessageConverters. But what is the default set of HttpMessageConverters? Well, this is defined in the Spring Framework Reference. Unfortunately I’ve missed it … Continue reading

Posted in Java, Spring | Tagged | Leave a comment

Google App Engine, Java, JPA 2, Spring Framework, Maven

DISCLAIMER: This was going (in 2014!) to be a full tutorial but at some point I’ve lost motivation in digging in the Google App Engine. Actually I was so tired with this GAE data store that I felt really relieved … Continue reading

Posted in GoogleAppEngine, Java, Spring | Tagged , , | 1 Comment

Spring MVC, REST, Joda DateTime & Gson

When building REST web-service with Spring MVC the framework automatically configures message converters based on certain libraries found on the classpath (thanks to <mvc:annotation-driven/>). So it’s enough to have Gson (google-gson) as a dependency (in pom.xml) to make your REST service to … Continue reading

Posted in Java, Spring | Tagged , , , | Leave a comment

Empty strings instead of null values in JSF 2 on Tomcat 7

Recently I was developing a simple application in JSF 2. I moved the application from Glassfish 3.1.2.2 application server to Tomcat 7.0.41 servlet container, migrating the solution from EJB 3.1 to Spring 3.2.4 at the same time. Under Tomcat I … Continue reading

Posted in Java, JEE, JSF, Spring, Tomcat | 2 Comments