2013年9月2日星期一

weblogic9.2 + SSH framework myeclipce error

publish items Seek expert help solve what Thank you very much
newspaper I could not find an entity class in tomcat6.4 released under the weblogic9.2 to run into a problem


serious : Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation ; of init method failed; nested exception is org.hibernate.MappingException: entity class not found: com.accp.entity.CeShi
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java: 1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java: 473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory $ 1.run (AbstractAutowireCapableBeanFactory.java: 409)
at java.security.AccessController.doPrivileged (Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java: 380)
at org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject (AbstractBeanFactory.java: 264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java: 222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java: 261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java: 185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java: 164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java: 423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java: 728)
at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java: 380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java: 255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java: 199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java: 45)
at weblogic.servlet.internal.EventsManager $ FireContextListenerAction.run (EventsManager.java: 375)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs (AuthenticatedSubject.java: 321)
at weblogic.security.service.SecurityManager.runAs (SecurityManager.java: 121)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent (EventsManager.java: 83)
at weblogic.servlet.internal.WebAppServletContext.preloadResources (WebAppServletContext.java: 1591)
at weblogic.servlet.internal.WebAppServletContext.start (WebAppServletContext.java: 2734)
at weblogic.servlet.internal.WebAppModule.startContexts (WebAppModule.java: 892)
at weblogic.servlet.internal.WebAppModule.start (WebAppModule.java: 336)
at weblogic.application.internal.flow.ModuleStateDriver $ 3.next (ModuleStateDriver.java: 204)
at weblogic.application.utils.StateMachineDriver.nextState (StateMachineDriver.java: 26)
at weblogic.application.internal.flow.ModuleStateDriver.start (ModuleStateDriver.java: 60)
at weblogic.application.internal.flow.ScopedModuleDriver.start (ScopedModuleDriver.java: 200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start (ModuleListenerInvoker.java: 117)
at weblogic.application.internal.flow.ModuleStateDriver $ 3.next (ModuleStateDriver.java: 204)
at weblogic.application.utils.StateMachineDriver.nextState (StateMachineDriver.java: 26)
at weblogic.application.internal.flow.ModuleStateDriver.start (ModuleStateDriver.java: 60)
at weblogic.application.internal.flow.StartModulesFlow.activate (StartModulesFlow.java: 26)
at weblogic.application.internal.BaseDeployment $ 2.next (BaseDeployment.java: 641)
at weblogic.application.utils.StateMachineDriver.nextState (StateMachineDriver.java: 26)
at weblogic.application.internal.BaseDeployment.activate (BaseDeployment.java: 229)
at weblogic.application.internal.DeploymentStateChecker.activate (DeploymentStateChecker.java: 154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate (AppContainerInvoker.java: 80)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate (BasicDeployment.java: 181)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle (BasicDeployment.java: 352)
at weblogic.management.deploy.internal.DeploymentAdapter $ 1.doActivate (DeploymentAdapter.java: 52)
at weblogic.management.deploy.internal.DeploymentAdapter.activate (DeploymentAdapter.java: 186)
at weblogic.management.deploy.internal.AppTransition $ 2.transitionApp (AppTransition.java: 30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps (ConfiguredDeployments.java: 233)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate (ConfiguredDeployments.java: 169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy (ConfiguredDeployments.java: 123)
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: 209)
at weblogic.work.ExecuteThread.run (ExecuteThread.java: 181)
Caused by: org.hibernate.MappingException: entity class not found: com.accp.entity.CeShi
at org.hibernate.mapping.PersistentClass.getMappedClass (PersistentClass.java: 122)
at org.hibernate.tuple.PropertyFactory.getGetter (PropertyFactory.java: 191)
at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty (PropertyFactory.java: 67)
at org.hibernate.tuple.entity.EntityMetamodel. (EntityMetamodel.java: 136)
at org.hibernate.persister.entity.AbstractEntityPersister. (AbstractEntityPersister.java: 456)
at org.hibernate.persister.entity.SingleTableEntityPersister. (SingleTableEntityPersister.java: 131)
at org.hibernate.persister.PersisterFactory.createClassPersister (PersisterFactory.java: 84)
at org.hibernate.impl.SessionFactoryImpl. (SessionFactoryImpl.java: 267)
at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java: 1341)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory (LocalSessionFactoryBean.java: 814)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory (LocalSessionFactoryBean.java: 732)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet (AbstractSessionFactoryBean.java: 211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java: 1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java: 1335)
... 50 more
Caused by: java.lang.ClassNotFoundException: Class bytes found but defineClass () failed for: 'com.accp.entity.CeShi'
at weblogic.utils.classloaders.GenericClassLoader.findClass (GenericClassLoader.java: 265)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass (ChangeAwareClassLoader.java: 54)
at java.lang.ClassLoader.loadClass (ClassLoader.java: 306)
at java.lang.ClassLoader.loadClass (ClassLoader.java: 251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass (GenericClassLoader.java: 158)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass (ChangeAwareClassLoader.java: 42)
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java: 319)
at java.lang.Class.forName0 (Native Method)
at java.lang.Class.forName (Class.java: 164)
at org.hibernate.util.ReflectHelper.classForName (ReflectHelper.java: 192)
at org.hibernate.mapping.PersistentClass.getMappedClass (PersistentClass.java: 119)
... 63 more
Caused by: java.lang.UnsupportedClassVersionError: Bad version number in. class file
at java.lang.ClassLoader.defineClass1 (Native Method)
at java.lang.ClassLoader.defineClass (ClassLoader.java: 620)
at java.security.SecureClassLoader.defineClass (SecureClassLoader.java: 124)
at weblogic.utils.classloaders.GenericClassLoader.defineClass (GenericClassLoader.java: 338)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass (GenericClassLoader.java: 291)
at weblogic.utils.classloaders.GenericClassLoader.findClass (GenericClassLoader.java: 259)
... 73 more

------ Solution ------------------------------------ --------
Bad version number in. class file is the wrong version of it. Look at the requirements of the corresponding weblogic jdk editing environment is few .
------ Solution ---------------------------------------- ----
weblogic9 support jdk1.5 right

window ---> myeclipse enterprise workbench ---> servers ---> weblogic -> weblogic9.x--> jdk
jdk configured here and not the same as when you compile
------ For reference only ----------------------- ----------------


get a thank you ~
------ For reference only ---------------------------- -----------


Thank you ~ successful

没有评论:

发表评论