Dear all,

I don't know if you have the same problem, but hope that this may help someone 
:-)

I'm using NetBeans 6.5 under Windows. I got the same problem as indicated at 
the beginning of this lab (see error below). I resolved the problem by manually 
removing pre-imported libraries (right click on the project name => properties 
=> Libraries, then remove them). Then, I manually add all .jar files in the 
sub-foldes of the folder spring25hibernate/lib (click on Add JAR/Folder) and it 
works as described in the course.


Regards,
Trung.



And this is the error : 

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


      

--~--~---------~--~----~------------~-------~--~----~
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 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to