-->
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.  [ 2 posts ] 
Author Message
 Post subject: Error initializing h3b3 in Websphere.
PostPosted: Fri Feb 11, 2005 12:49 pm 
Beginner
Beginner

Joined: Thu Jan 27, 2005 6:31 pm
Posts: 21
Location: This Life - Planet Earth
I get this error when trying to initialize the hibernate session factory in Websphere 5.1.1 I am trying to figure out what the problem is but any pointers would be helpful. I am migrating from hibernate 2.1.7 where this code and hibernate works flawlessly to hibernate 3 beta 3. I followed the migration guide and refactored the classes as explained.
What am i missing !!
Thanks
Jennifer.

Hibernate version: hibernate3b3

Full stack trace of any exception that occurs:

[2/11/05 11:26:12:921 EST] 18a118a1 WebGroup E SRVE0020E: [Servlet Error]-[SetUpHibernateServlet]: Failed to load servlet: java.lang.LinkageError: LinkageError while defining class: org.hibernate.HibernateException
Could not be defined due to: (org/hibernate/HibernateException) bad major version at offset=6
This is often caused by having a class defined at multiple
locations within the classloader hierarchy. Other potential causes
include compiling against an older or newer version of the class
that has an incompatible method signature.
Dumping the current context classloader hierarchy:
==> indicates defining classloader
==>[0]
com.ibm.ws.classloader.CompoundClassLoader@54065406
Local ClassPath: D:\workspaceatlas_old\atlas\WebContent\WEB-INF\classes;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\antlr.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\avalon-framework-cvs-20020806.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\batik.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\cglib-full-2.0.2.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\commons-beanutils.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\commons-collections.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\commons-digester.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\commons-fileupload.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\commons-lang.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\commons-logging.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\commons-validator.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\concurrent.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\dom4j-1.5.2.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\ehcache-1.1.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\fop.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\hibernate3.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\jakarta-oro.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\jaxen-full.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\JCache-1.0a5.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\jdom.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\jstl.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\junit.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\log4j-1.2.9.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\odmg-3.0.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\ojdbc14.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\poi-2.5.1-final-20040804.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\saxpath.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\standard.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\struts.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\taglibs-datetime.jar;D:\workspaceatlas_old\atlas\WebContent\WEB-INF\lib\taglibs-log.jar;D:\workspaceatlas_old\atlas\WebContent;
Delegation Mode: PARENT_FIRST
[1] com.ibm.ws.classloader.JarClassLoader@983055000 Local Classpath: Delegation mode: PARENT_FIRST
[2] com.ibm.ws.classloader.ExtJarClassLoader@980433520 Local ClassPath: D:\Program Files\IBM\Application Developer512\runtimes\base_v51\lib\app; Delegation Mode: PARENT_LAST
[3] com.ibm.ws.classloader.ProtectionClassLoader@67f067f
[4] com.ibm.ws.bootstrap.ExtClassLoader@18181818
[5] sun.misc.Launcher$AppClassLoader@5ab05ab0
[6] sun.misc.Launcher$ExtClassLoader@6ad06ad
---Original exception---
java.lang.UnsupportedClassVersionError: (org/hibernate/HibernateException) bad major version at offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:211)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:147)
at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:446)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:396)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:300)
at java.lang.ClassLoader.loadClass(ClassLoader.java:560)
at java.lang.Class.verifyImpl(Native Method)
at java.lang.Class.verify(Class.java:253)
at java.lang.Class.initialize(Class.java:315)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1481)
at java.beans.Beans.instantiate(Beans.java:219)
at java.beans.Beans.instantiate(Beans.java:63)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1279)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:392)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:211)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:1005)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:505)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:299)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:256)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:152)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:243)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:189)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)

--- end Original exception----

at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:491)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:396)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:300)
at java.lang.ClassLoader.loadClass(ClassLoader.java:560)
at java.lang.Class.verifyImpl(Native Method)
at java.lang.Class.verify(Class.java:253)
at java.lang.Class.initialize(Class.java:315)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1481)
at java.beans.Beans.instantiate(Beans.java:219)
at java.beans.Beans.instantiate(Beans.java:63)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1279)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:392)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:211)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:1005)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:505)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:299)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:256)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:152)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:243)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:189)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)


Name and version of the database you are using:

Oracle 9i


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 11, 2005 12:59 pm 
Beginner
Beginner

Joined: Thu Jan 27, 2005 6:31 pm
Posts: 21
Location: This Life - Planet Earth
Aha nevermind I found a post that explains this

http://forum.hibernate.org/viewtopic.php?t=938305

Sorry for the touble

<quote>PAMHO</quote>

Jennifer


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.