-->
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.  [ 3 posts ] 
Author Message
 Post subject: first time user - problem with Hybernateutil class
PostPosted: Mon Sep 05, 2005 3:30 pm 
Newbie

Joined: Mon Sep 05, 2005 3:25 pm
Posts: 2
Hi

I have just started to use hybernate and reading a tutorial "Road to Hybernate" , i built the first application and i am getting a exception i can't make head or tails out of.

Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/objectweb/asm/Type
java.lang.ExceptionInInitializerError
at de.gloegl.road2hibernate.HibernateUtil.<clinit>(HibernateUtil.java:17)
at de.gloegl.road2hibernate.EventManager.main(EventManager.java:11)
Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/Type
at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:180)
at net.sf.cglib.core.KeyFactory.<clinit>(KeyFactory.java:66)
at org.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:321)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
at de.gloegl.road2hibernate.HibernateUtil.<clinit>(HibernateUtil.java:13)
... 1 more

it's occuring when i try to load the configuration
sessionFactory = new Configuration().configure().buildSessionFactory();

please help

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 05, 2005 3:45 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
org/objectweb/asm/Type is clas from asm.jar (in hibernate lib) - you have to include this library in classpath


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 05, 2005 4:04 pm 
Newbie

Joined: Mon Sep 05, 2005 3:25 pm
Posts: 2
Thank you for that advice, guess i have miles to go before i sleep :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.