-->
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.  [ 1 post ] 
Author Message
 Post subject: NoClassDefFoundError: org/objectweb/asm/Type
PostPosted: Fri Jul 15, 2011 5:44 am 
Newbie

Joined: Fri Jul 15, 2011 3:34 am
Posts: 3
When i run my hibernate application it shows following errors.

Code:
java.lang.NoClassDefFoundError: org/objectweb/asm/Type
Exception in thread "main" java.lang.ExceptionInInitializerError
   at com.vaannila.util.HibernateUtil.<clinit>(HibernateUtil.java:14)
   at com.vaannila.course.Main.saveCourse(Main.java:27)
   at com.vaannila.course.Main.main(Main.java:16)
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 net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
   at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)
   at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)
   at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)
   at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:135)
   at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
   at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:56)
   at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:295)
   at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
   at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
   at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
   at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
   at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
   at com.vaannila.util.HibernateUtil.<clinit>(HibernateUtil.java:11)
   ... 2 more
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.Type
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
   ... 19 more


I am using following jars:


antlr-2.7.5H3
asm
asm-attrs
c3p0-0.8.5.2
cglib-2.1
cleanimports
commons-collections-2.1.1
commons-logging-1.0.4
concurrent-1.3.2
connector
dom4j-1.6
ehcache-1.1
hibernate3
jaas
jacc-1_0-fr
jaxen-1.1-beta-4
jdbc2_0-stdext
jgroups-2.2.7
jta
log4j-1.2.9
oscache-2.1
proxool-0.8.3
swarmcache-1.0rc2
xerces-2.6.2
xml-apis

Any help would be appreciated.
Jobi


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

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.