Joined: Sun Nov 30, 2003 4:48 am Posts: 5 Location: Charlotte, NC
|
I just updated to HB 2.1rc1 from b6 and I am now getting the following exception when loading the hibernate.cfg file by my Context Listener.
INFO [ReflectHelper] reflection optimizer disabled for: com.bt.domain.model.bid.BuilderBidRequest, IllegalAccessError: null
StandardContext[/buildtrax]: Exception sending context initialized event to listener instance of class com.bt.business.common.StartupListener
java.lang.IllegalAccessError
at net.sf.cglib.core.ClassEmitter.setTarget(ClassEmitter.java:87)
This is basically all I am doing in my Context Listener.
// Configure Hibernate.
try {
new Configuration().configure().buildSessionFactory();
if (log.isDebugEnabled()) {
log.debug("Hibernate configuration completed.");
}
} catch (HibernateException h) {
log.fatal("Error configuring Hibernate!", h);
}
Then..
/**
* Gets the session factory instance.
*/
public static SessionFactory getSessionFactory() throws ServiceException {
if (sessionFactory == null) {
try {
Configuration cfg = new Configuration().configure();
sessionFactory = cfg.buildSessionFactory();
}
catch (HibernateException e) {
throw new ServiceException(e);
}
}
return sessionFactory;
}
The latter method is simple used by my DAO objects. I looked at the new features, but I did not see any information regarding the changes I would need to make to existing code or things that would naturally break with the new release. Everything compiles just fine.
Any ideas would be helpful.
_________________ The determination of the human spirit never ceases to amaze me...
|
|