-->
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: Hibernate on Weblogic 10.3
PostPosted: Thu Feb 12, 2009 10:32 am 
Newbie

Joined: Thu Feb 12, 2009 10:00 am
Posts: 18
We are experiencing problems with KODO and Oracle and would like to try to switch to Hibernate instead. This would allow us to isolate the problem as well as find a potential work around. I have added the hibernate jars to my ears lib directory. After deploying and restarting the server I am getting the following exception. It seems to be some kind of class loading issue, as the missing class is contained withing the EJB JAR file, also included within the EAR. It seems that Hibernate once loaded doesn't have access to the application jar. I also updated the weblogic-application.xml file with the content below. I have also included the hibernate provider in persistence.xml.

Any suggestion or instruction on how to use the Hibernate JPA provide with Weblogic 10.3 would be really great.

Thanks in advance.
Alex

Code:
antlr.jar
asm.jar
dom4j.jar
ejb3-persistence.jar
hibernate-annotations.jar
hibernate-commons-annotations.jar
hibernate-core.jar
hibernate-entitymanager.jar
javassist.jar
jta.jar
log4j.jar
slf4j-api.jar
slf4j-log4j12.jar


Code:
    <prefer-application-packages>
        <package-name>org.apache.axis.*</package-name>
        <package-name>org.apache.xml.xml_soap</package-name>
        <package-name>org.apache.commons.logging</package-name>
        <package-name>org.apache.xml.security</package-name>
        <package-name>antlr.*</package-name>
        <package-name>org.apache.commons.*</package-name>
        <package-name>org.apache.oro.*</package-name>
        <package-name>oracle.*</package-name>
    </prefer-application-packages>


Code:
weblogic.application.ModuleException:
   at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
   at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
   at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
   at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
   at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
   at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
   at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
   at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
   at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
   at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
   at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
   at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
   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:187)
   at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
   at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
   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:173)
   at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
   at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
   at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
   at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
java.lang.ClassNotFoundException: com.thunderhead.backend.entities.queryObjects.BatchStatusCounter
   at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
   at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:247)
   at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:135)
   at org.hibernate.ejb.Ejb3Configuration.classForName(Ejb3Configuration.java:1009)
   at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1081)
   at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:871)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:758)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:425)
   at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131)
   at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:330)
   at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:123)
   at weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(AbstractPersistenceUnitRegistry.java:331)
   at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:245)
   at weblogic.deployment.ModulePersistenceUnitRegistry.<init>(ModulePersistenceUnitRegistry.java:63)
   at weblogic.ejb.container.deployer.EJBModule.setupPersistenceUnitRegistry(EJBModule.java:209)
   at weblogic.ejb.container.deployer.EJBModule$1.execute(EJBModule.java:310)
   at weblogic.deployment.PersistenceUnitRegistryInitializer.setupPersistenceUnitRegistries(PersistenceUnitRegistryInitializer.java:62)
   at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:381)
   at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
   at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
   at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
   at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
   at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
   at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
   at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
   at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
   at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
   at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
   at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
   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:187)
   at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
   at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
   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:173)
   at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
   at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
   at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
   at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)


Edited by: ejb3workshop on Feb 12, 2009 1:27 PM

Edited by: ejb3workshop on Feb 12, 2009 1:28 PM


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.