If you find a solution, please let me know so that
I can document it. Thanks.

-Sang

[EMAIL PROTECTED] wrote:
> Hi!
> 
> I'm working on LAB-4916 on NetBeans 6.5 under Suse Linux and I get the
> following error when I try to run any of the included applications:
> 
> ...
> INFO: building session factory
> Initial SessionFactory creation failed.java.lang.NoSuchMethodError:
> org.objectweb.asm.ClassWriter.<init>(I)V
> Exception in thread "main" java.lang.ExceptionInInitializerError
>         at HibernateUtil.<clinit>(HibernateUtil.java:32)
>         at Main.main(Main.java:10)
> Caused by: java.lang.NoSuchMethodError:
> org.objectweb.asm.ClassWriter.<init>(I)V
>         at net.sf.cglib.core.DebuggingClassWriter.<init>
> (DebuggingClassWriter.java:47)
>         at net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter
> (DefaultGeneratorStrategy.java:30)
>         at net.sf.cglib.core.DefaultGeneratorStrategy.generate
> (DefaultGeneratorStrategy.java:24)
>         at net.sf.cglib.core.AbstractClassGenerator.create
> (AbstractClassGenerator.java:216)
>         at net.sf.cglib.core.KeyFactory$Generator.create
> (KeyFactory.java:144)
>         at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:116)
>         at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
>         at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
>         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 HibernateUtil.<clinit>(HibernateUtil.java:28)
>         ... 1 more
> Java Result: 1
> 
> I tried manually adding all the libraries under tools->libraries->Add
> Jar/Folder but that didn't help.
> 
> Most of the newsgroups say this is a problem with version of the
> asm.jar file, and the version in ../spring25hibernate/lib/
> hibernate3.2core is version 1.5.3 according to the manifest.  So I
> tried updating it with 3.1 (the latest version) and various other
> releases but I get the same error on every time.  I understand it can
> also be a version conflict with cglib, but I haven't tried updating
> that one yet.
> 
> I am able to run the programs under NetBeans 6.1.  I'm still
> experimenting but I'd be interested in the fix if anyone else can
> figure it out.  Netbeans 6.5 performs much better 6.1 and I much
> prefer it.
> 
> Apologies for the long note
> Bob
> 
> > 


-- 
---------------------------------------------------------------
   **** JavaFX course starts from Jan. 10th, 2008 ***
            http://www.javapassion.com/javafx

            Sang Shin, [EMAIL PROTECTED]
     http://www.javapassion.com/SangShinSchedule.html
          (Life is worth living... with Passion!)
---------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to