Cannot create JDBC driver of class ” for connect URL ‘null’

So I keep getting this error complaining about org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class ” for connect URL ‘null’ in a Hibernate DAO JUnit 4 test case I have and this is the full trace: Read the rest of this entry »

VN:F [1.9.1_1087]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.1_1087]
Rating: 0 (from 0 votes)
  • Share/Bookmark

Composite Primary Key pattern in Hibernate

I was trying to create a relationship without using surrogate primary keys the other day in Hibernate. I started searching around for examples, but did not find many examples that used Annotations.

Read the rest of this entry »

VN:F [1.9.1_1087]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.1_1087]
Rating: 0 (from 0 votes)
  • Share/Bookmark

Centralizing PMD rules for use with Maven.

PMD has long been a great report to find out many useful details of your code base.

I find that the default ruleset does not contain some checks that I find very useful especially when I have more junior developers. I can catch many problematic errors.

Read the rest of this entry »

VN:F [1.9.1_1087]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.1_1087]
Rating: 0 (from 0 votes)
  • Share/Bookmark

Updating Maven on Mac OS X

Maven, has been my project build centric tool for many years now. I have never really had an issue updating to the latest version on Windows, Linux or Unix environments, but every-time I update Mac, I tend to forget the subtleties in the process, so I thought I would blog my findings. Read the rest of this entry »

VN:F [1.9.1_1087]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.1_1087]
Rating: +1 (from 1 vote)
  • Share/Bookmark

Cannot locate BeanDefinitionParser for element

When I upgraded from Camel 2.0-SNAPSHOT to 2.0.0, while I was using Spring 2.5.6, I started getting the following errors on deployment:

error:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [jta-transaction-manager]

Read the rest of this entry »

VN:F [1.9.1_1087]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.1_1087]
Rating: 0 (from 0 votes)
  • Share/Bookmark