首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

weblogic启动时报错java.lang.ExceptionInInitializerError,该如何处理

2012-05-10 
weblogic启动时报错java.lang.ExceptionInInitializerError2011-9-6 下午03时24分11秒 CST Warning H

weblogic启动时报错java.lang.ExceptionInInitializerError
<2011-9-6 下午03时24分11秒 CST> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: java.lang.ExceptionInInitializerError.
java.lang.ExceptionInInitializerError
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:247)
  at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:60)
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:293)
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:261)
  Truncated. see log file for complete stacktrace
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'pcrmTransaction' defined in class path resource [missContext.xml]: Class that bean class [org.springframework.orm.hibernate.HibernateTransactionManager] depends on not found; nested exception is java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateException
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:356)
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:261)
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:184)
  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:170)
  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:129)
  Truncated. see log file for complete stacktrace
java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateException
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:247)
  at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:60)
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:293)
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:261)
  Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: net.sf.hibernate.HibernateException
  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
  Truncated. see log file for complete stacktrace

<2011-9-6 下午03时24分11秒 CST> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: java.lang.ExceptionInInitializerError.
java.lang.ExceptionInInitializerError
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:247)
  at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:60)
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:293)
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:261)


  Truncated. see log file for complete stacktrace
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'pcrmTransaction' defined in class path resource [missContext.xml]: Class that bean class [org.springframework.orm.hibernate.HibernateTransactionManager] depends on not found; nested exception is java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateException
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:356)
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:261)
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:184)
  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:170)
  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:129)
  Truncated. see log file for complete stacktrace
java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateException
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:247)
  at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:60)
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:293)
  at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:261)
  Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: net.sf.hibernate.HibernateException
  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
  Truncated. see log file for complete stacktrace

<2011-9-6 下午03时24分11秒 CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1315293907966' for task '538'. Error is: 'weblogic.application.ModuleException: '
weblogic.application.ModuleException: 
  at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
  at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
  at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
  at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
  Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: net.sf.hibernate.HibernateException
  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
  Truncated. see log file for complete stacktrace

<2011-9-6 下午03时24分11秒 CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1315293907966' for task '538'. Error is: 'weblogic.application.ModuleException: '


weblogic.application.ModuleException: 
  at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
  at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
  at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
  at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
  Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: net.sf.hibernate.HibernateException
  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
  Truncated. see log file for complete stacktrace

<2011-9-6 下午03时24分11秒 CST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 7 task for the application 'PointWebServiceImpls'.> 
<2011-9-6 下午03时24分11秒 CST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 7 task for the application 'PointWebServiceImpls'.> 


这个是后台报错的内容!大侠们帮我看看!!!
我看报错的内容应该是找不到类,少包啦,但是我看啦,我打的WAR包里面是有这个包的(hibernate2.jar)

[解决办法]
呵.. 楼主是北大青鸟的吧
 Error registering bean with name 'pcrmTransaction' defined in class path resource
好好看下错误,配置文件

热点排行