views:

17

answers:

0

I got this exception while calling a named HQL query in an EJB. I'm quite puzzled though because the app. functions fine with named queries and all. Only when it throws some exception, it can't find the JDBCExceptionHelper.

javax.ejb.EJBTransactionRolledbackException: Unexpected Error

java.lang.NoClassDefFoundError: org/hibernate/exception/JDBCExceptionHelper

    at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)

To make double sure, I looked under jboss-5.1.0.GA/common/lib/hinernate-core.jar and confirmed that it does have the org.hibernate.exception.JDBCExceptionHelper.

How could this even happen? Does somebody have an idea? Is it a JBoss bug, or am I missing something?