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

March 17th, 2010

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:

  • Share/Bookmark

Read full article | No Comments »

Composite Primary Key pattern in Hibernate

November 25th, 2009

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.

  • Share/Bookmark

Read full article | No Comments »

Weblogic 10.3 hangs on JNDI data source lookup during deployment

May 1st, 2009

I have been working on a Spring based web application for a couple weeks. This application uses Hibernate Generic DAO’s with a JNDI template via spring to create the data source. This procedure works very well with DBUnit and Spring to test all of my data access objects in isolation and to get very high [...]

  • Share/Bookmark

Read full article | No Comments »

Common Hibernate JPA Data Services Component

April 10th, 2009

I have been using Hibernate JPA, with a Java Generics based data access layer for some time now. But each time I go to a new project, I find that I have to do quite a bit of rework just to integrate this component. So what I wanted to do, is find a way to [...]

  • Share/Bookmark

Read full article | No Comments »

PersistenceException issue with Cobertura and the hibernate3-maven-plugin

March 16th, 2009

I have been using the hibernate3-maven-plugin for some time with a good deal of success in unit testing my data access layers through dbunit. I always separate my data access into a separate module, called data-services, for many reasons. Mostly so I can separate my testing to just database integration testing, and not unit testing [...]

  • Share/Bookmark

Read full article | No Comments »