-->
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: Upgrading Hibernate from 3.3.1 to 4.1.7 on WebLogic 10.3.0.4
PostPosted: Thu Oct 04, 2012 3:12 am 
Newbie

Joined: Wed Sep 01, 2010 10:40 pm
Posts: 6
Location: Washington, D.C.
I'm stuck on the below issue. It doesn't make sense to me. The jars that I downloaded for hibernate 4.1.7 do not include this class that it's complaining about. I believe this class was deprated with hibernate 4.1.7. If I'm correct, then something in my project is referencing this old class ("org/hibernate/classic/Session"). Any ideas? I've been stuck on this for awhile.

Code:
java.lang.NoClassDefFoundError: org/hibernate/classic/Session
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
   at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
   at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)
   at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
   at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
   at java.lang.Class.getDeclaredFields0(Native Method)
   at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
   at java.lang.Class.getDeclaredFields(Class.java:1743)
   at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:1024)
   at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:1017)
   at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.processJ2eeAnnotations(BaseJ2eeAnnotationProcessor.java:98)
   at weblogic.j2ee.dd.xml.J2eeAnnotationProcessor.processJ2eeAnnotations(J2eeAnnotationProcessor.java:37)
   at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processSessionAnnotations(EjbAnnotationProcessor.java:780)
   at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotations(EjbAnnotationProcessor.java:315)
   at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotations(EjbAnnotationProcessor.java:185)
   at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processStandardAnnotations(EjbDescriptorReaderImpl.java:344)
   at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:204)
   at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93)
   at weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:1245)   at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:397)
   at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
   at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
   at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
   at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
   at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
   at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
   at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
   at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
   at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
   at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
   at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
   at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
   at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
   at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
   at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
   at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
   at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
   at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
   at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
   at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
   at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
   at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
   at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
   at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused by: java.lang.ClassNotFoundException: org.hibernate.classic.Session
   at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
   at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
   at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
   ... 49 more


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.