Thursday, July 19, 2007

Hibernate exception/solution

Today, when I added Hibernate to one of my existing project, the first error I got is this one:

org.hibernate.HibernateException: No CurrentSessionContext configured!

The cause of this problem was due to the missing configuration for the 'current_session_context_class' in either 'cfg.xml' or 'hibernate.properties'

it should be set to value 'thread' if using JDBC, because Hibernate need to bind the session to Java thread instead of Transaction of JTA (no JTA if using plain JDBC).

I think I have this configuration in my old project, but when I using the Eclipise plugin for re-engineering POJOs and 'cfg.xml', it took out the configuration.

Monday, July 16, 2007

Saturday, July 7, 2007

I'm on my way, but where should I go?

Many things are pending, so much need to learn, and so much need to do.

Let's make a plan:
  • I should first focus on the Hibernate and GRE book.
  • The GRE preparation is kind of mid-to-long term study, it may take a couple of months.
  • Hibernate book should be finsihed by the end of next week. Then, I can apply it with WSSJ & WSE to my systems.
  • I should also post some Hibernate stuff in my blog later.