-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate 2.1rc1 Problems with existing app
PostPosted: Sun Nov 30, 2003 5:06 am 
Newbie

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...


Top
 Profile  
 
 Post subject: Please forgive the post. Errant .jar file was found
PostPosted: Sun Nov 30, 2003 5:12 am 
Newbie

Joined: Sun Nov 30, 2003 4:48 am
Posts: 5
Location: Charlotte, NC
I missed the removal of cglib.asm jar file. Its been my habit to remove all old jar files with new release ust in case. But I missed this one. Once it was removed. All ran just fine.

Sorry again.

_________________
The determination of the human spirit never ceases to amaze me...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.