facebook

Integration Spring, Hibernate and JSF, error

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #276860 Reply

    drambo95
    Member

    Hello,
    I have used your tools and done some tweaking to get the three to work, I only have one problem. When I run a test on my java console to get data from hibernate via spring it all works great no errors. When I deploy to Tomcat and try to get info via jsf I can get the data but an exception gets thrown the following:

    08:51:16,777 WARN Configurator:126 – No configuration found. Configuring ehcach
    e from ehcache-failsafe.xml found in the classpath: jar:file:/C:/apache-tomcat-5
    .5.25/webapps/VendorRelations1/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml

    08:51:17,027 ERROR BasicLazyInitializer:130 – CGLIB Enhancement failed: com.semp
    ra.hibernate.tables.Vendor
    java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/S
    tring;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
    at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)
    at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:
    173)
    at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorS
    trategy.java:25)
    at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerato
    r.java:216)
    at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
    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.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyIni
    tializer.java:116)
    at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFacto
    ry.java:41)
    at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTu

    I have read it has to do with cglib.jar and asm.jar not being compatible, so I have tried all different computations of these to no effect. The one thing I do notice is when I add the Spring Listener to my web.xml I only get this error once when it loads the applicationContext.xml (I guess making the call to cache the tables) When I added a business object (not connecting spring via injection to the jsf bean but calling object that states ClassContext to load the applicationContext.xml file, it throughs the error each time.

    So it is def when spring loads its config file, has anyone gotten this to work, without this error?

    Any help would greatly be appreciated

    Cheers
    Devlin

    #276902 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Integration Spring, Hibernate and JSF, error

You must be logged in to post in the forum log in