-->
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: Problems migrating from hibernate 2 to 3.
PostPosted: Mon Mar 27, 2006 8:17 am 
Newbie

Joined: Mon Mar 27, 2006 4:15 am
Posts: 3
HI,

I am in the process of migrating from v2.1.7 to v3.1.2.

I have followed the migration guide but when I start my websphere server (within RAD 6.0.1) I get the following stack trace for each of my hibernate mapping files.

Has anyone seen this? Any ideas?

Thanks in advance..

[27/03/06 12:35:52:719 BST] 0000001b SystemOut O org.hibernate.proxy.BasicLazyInitializer CGLIB Enhancement failed: com.landg.protection.model.personal.underwriting.UnderwritingNextAction
java.lang.NoSuchMethodError: net.sf.cglib.proxy.Enhancer: method setInterceptDuringConstruction(Z)V not found
at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:118)
at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41)
at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161)
at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java(Compiled Code))
at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java(Compiled Code))
at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java(Compiled Code))
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java(Compiled Code))
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java(Compiled Code))
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at com.landg.qnb.dao.hibernate.HibernateDataServiceFactory.buildSessionFactory(HibernateDataServiceFactory.java:70)
at com.landg.qnb.dao.hibernate.HibernateDataServiceFactory.<init>(HibernateDataServiceFactory.java:45)
at com.landg.lec.appmodel.dao.hibernate.HibernateLecModelDSF.<init>(HibernateLecModelDSF.java:71)
at com.landg.lec.appmodel.dao.hibernate.HibernateLecModelNonContainerDSF.<init>(HibernateLecModelNonContainerDSF.java:18)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java(Compiled Code))
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java(Compiled Code))
at java.lang.reflect.Constructor.newInstance(Constructor.java(Compiled Code))
at java.lang.Class.newInstance3(Class.java(Compiled Code))
at java.lang.Class.newInstance(Class.java(Compiled Code))
at com.landg.qnb.registry.SingletonRegistry.getInstance(SingletonRegistry.java:74)
at com.landg.lec.persistence.DataServiceKeeper.<clinit>(DataServiceKeeper.java:24)
at com.landg.lec.web.servlets.ServiceManagerServlet.init(ServiceManagerServlet.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:262)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1319)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:84)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:745)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:493)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:379)
at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:683)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:1678)
at com.ibm.ws.runtime.component.ComponentImpl$_AsynchInitializer.run(ComponentImpl.java:304)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 10:23 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Hi,

the method: setInterceptDuringConstruction
is implemented in cglib-2.1.3.jar class Enhancer.
Does your classpath contain this new version og cglib ?

_________________
dont forget to rate !


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 10:26 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
Your cglib.jar is probably too old.


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.