系统启动时抛出异常。
我将遇到的异常贴出来:
- Context initialization failed
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find cla
s [com.tjsoft.platform.dao.base.HibernateEntityDao] for bean with name 'insAddM
terielDAO' defined in ServletContext resource [/WEB-INF/spring/bussiness/bussin
ss-dao-context.xml]; nested exception is java.lang.ClassNotFoundException: Clas
bytes found but defineClass()failed for: 'com.tjsoft.platform.dao.base.Hiberna
eEntityDao'
at org.springframework.beans.factory.support.AbstractBeanFactory.resolv
BeanClass(AbstractBeanFactory.java:1141)
at org.springframework.beans.factory.support.AbstractAutowireCapableBea
Factory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractBeanFactory.getTyp
(AbstractBeanFactory.java:487)
at org.springframework.flex.config.RemotingAnnotationPostProcessor.find
emotingDestinations(RemotingAnnotationPostProcessor.java:128)
at org.springframework.flex.config.RemotingAnnotationPostProcessor.post
rocessBeanFactory(RemotingAnnotationPostProcessor.java:79)
at org.springframework.context.support.AbstractApplicationContext.invok
BeanFactoryPostProcessors(AbstractApplicationContext.java:553)
at org.springframework.context.support.AbstractApplicationContext.invok
BeanFactoryPostProcessors(AbstractApplicationContext.java:544)
at org.springframework.context.support.AbstractApplicationContext.refre
h(AbstractApplicationContext.java:362)
at org.springframework.web.context.ContextLoader.createWebApplicationCo
text(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationCont
xt(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitial
zed(ContextLoaderListener.java:45)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.ru
(EventsManager.java:458)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticat
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(Ev
ntsManager.java:168)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebA
pServletContext.java:1721)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletCo
text.java:2890)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.ja
a:948)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:353)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSt
teDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachine
river.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleSta
eDriver.java:60)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedMo
uleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(Modul
ListenerInvoker.java:117)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSt
teDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachine
river.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleSta
eDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartMo
ulesFlow.java:26)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.j
va:635)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachine
river.java:26)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment
java:212)
at weblogic.application.internal.DeploymentStateChecker.activate(Deploy
entStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(A
pContainerInvoker.java:80)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(Basic
eployment.java:182)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromSe
verLifecycle(BasicDeployment.java:359)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(D
ploymentAdapter.java:51)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(Deplo
mentAdapter.java:196)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(Ap
Transition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transition
pps(ConfiguredDeployments.java:233)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(C
nfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(Con
iguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(D
ploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(De
loymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Caused by: java.lang.ClassNotFoundException: Class bytes found but defineClass(
failed for: 'com.tjsoft.platform.dao.base.HibernateEntityDao'
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClas
Loader.java:265)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeA
areClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClas
Loader.java:179)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeA
areClassLoader.java:42)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
at org.springframework.beans.factory.support.AbstractBeanDefinition.res
lveBeanClass(AbstractBeanDefinition.java:385)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolv
BeanClass(AbstractBeanFactory.java:1138)
... 45 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:1
4)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericCl
ssLoader.java:338)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generi
ClassLoader.java:291)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClas
Loader.java:259)
... 53 more
<2010-10-21 下午04时24分55秒 CST> <Warning> <HTTP> <BEA-101162> <User defined l
stener org.springframework.web.context.ContextLoaderListener failed: org.spring
ramework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.tjs
ft.platform.dao.base.HibernateEntityDao] for bean with name 'insAddMaterielDAO'
defined in ServletContext resource [/WEB-INF/spring/bussiness/bussiness-dao-con
ext.xml]; nested exception is java.lang.ClassNotFoundException: Class bytes fou
d but defineClass()failed for: 'com.tjsoft.platform.dao.base.HibernateEntityDao
.
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find cla
s [com.tjsoft.platform.dao.base.HibernateEntityDao] for bean with name 'insAddM
terielDAO' defined in ServletContext resource [/WEB-INF/spring/bussiness/bussin
ss-dao-context.xml]; nested exception is java.lang.ClassNotFoundException: Clas
bytes found but defineClass()failed for: 'com.tjsoft.platform.dao.base.Hiberna
eEntityDao'
at org.springframework.beans.factory.support.AbstractBeanFactory.resolv
BeanClass(AbstractBeanFactory.java:1141)
at org.springframework.beans.factory.support.AbstractAutowireCapableBea
Factory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractBeanFactory.getTyp
(AbstractBeanFactory.java:487)
at org.springframework.flex.config.RemotingAnnotationPostProcessor.find
emotingDestinations(RemotingAnnotationPostProcessor.java:128)
at org.springframework.flex.config.RemotingAnnotationPostProcessor.post
rocessBeanFactory(RemotingAnnotationPostProcessor.java:79)
Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for
'com.tjsoft.platform.dao.base.HibernateEntityDao'
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClas
Loader.java:265)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeA
areClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClas
Loader.java:179)
Truncated. see log file for complete stacktrace
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:1
4)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericCl
ssLoader.java:338)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generi
ClassLoader.java:291)
Truncated. see log file for complete stacktrace
>
<2010-10-21 下午04时24分55秒 CST> <Error> <Deployer> <BEA-149231> <Unable to se
the activation state to true for the application '_appsdir_ROOT_dir'.
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.ja
a:950)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:353)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSt
teDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachine
river.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleSta
eDriver.java:60)
Truncated. see log file for complete stacktrace
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:1
4)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericCl
ssLoader.java:338)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generi
ClassLoader.java:291)
Truncated. see log file for complete stacktrace
>
<2010-10-21 下午04时24分55秒 CST> <Notice> <Log Management> <BEA-170027> <The s
rver initialized the domain log broadcaster successfully. Log messages will now
be broadcasted to the domain log.>
<2010-10-21 下午04时24分56秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Serve
state changed to ADMIN>
<2010-10-21 下午04时24分56秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Serve
state changed to RESUMING>
<2010-10-21 下午04时24分56秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defa
lt" is now listening on 10.1.76.146:7011 for protocols iiop, t3, ldap, snmp, ht
p.>
<2010-10-21 下午04时24分56秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defa
lt[1]" is now listening on 127.0.0.1:7011 for protocols iiop, t3, ldap, snmp, h
tp.>
<2010-10-21 下午04时24分56秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Start
d WebLogic Admin Server "AdminServer" for domain "base_domain" running in Devel
pment Mode>
<2010-10-21 下午04时24分56秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Serve
state changed to RUNNING>
<2010-10-21 下午04时24分56秒 CST> <Notice> <WebLogicServer> <BEA-000360> <Serve
started in RUNNING mode>
这个异常让我弄了很长时间,在网上找了很多解决方案,但还是有异常。也改了weblogic.xml配置文件。 后来在一个博客中看到
JDK 版本不对也会出这个异常"时我决定试试。我以前是用的jdk1.5 发布的应用。然后换成JDK1.6。
重启后没有异常了。原来真是JDK的原因。
分享到:
相关推荐
How to handle both the Activated and Deactivated events to monitor the activation status of an application.
在Android Studio中遇到"Unable to load class ‘javax.xml.bind.JAXBException‘"的错误,通常是由于Java运行时环境(JRE)或开发工具包(JDK)与项目的兼容性问题导致的。`javax.xml.bind.JAXBException`是Java的...
add the activation.jar file to your CLASSPATH. For JavaMail 1.2 users, you should now have added mail.jar and activation.jar to your CLASSPATH. For JavaMail 1.1.3 users, you should now have added...
activation of the network is adjusted according to an activation formula and a given bias value. To adjust the way the perceptron reacts to a given input, a learning algorithm (the delta rule) is ...
These annulation reactions are appealing to the organic chemist as these reactions afford highly valuable cyclic compounds in a rapid and sustainable manner from readily available compounds. This ...
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_1760344884.1407394057461" 第一步:需要先grantq权限: EXEC dbms_java.grant_...
创建Web Service Client ...Unable to find required classes (javax.activation.DataHandler and javax.ma il.internet.MimeMultipart). Attachment support is disabled. 为解决这个问题,需导入这两个jar包到项目中
1、程序功能和使用环境介绍 2、程序操作方法介绍 3、登录信息文件RadminM.txt介绍 4、登录信息文件RadminM.txt的转换和编制 5、v3.0版新增解锁远程桌面功能 6、相关配置和多种语言支持介绍 ...
This thesis aims to build a framework to cover certain activation functions, analyzing the behavior of neural networks with various activation functions and try to find the explanation and foundation...
POLYCOM grants to you a non-exclusive, non- transferable (except as set forth herein), perpetual (unless otherwise terminated per the terms of this Agreement) license to install and use, on a DEVICE,...
We offer a systematic analysis of the use of deep learning networks for stock market analysis and prediction. Its ability to extract features from a large set of raw data without relying on prior ...
With the JavaBeans Activation Framework standard extension, developers who use Java technology can take advantage of standard services to determine the type of an arbitrary piece of data, encapsulate ...
Recurrent neural networks (RNNs) provide state-of-the-art performance in processing sequential data but are memory intensive to train, limiting the flexibility of RNN models which can be trained. ...
8.Now copy the activation code back to the activation screen and click Next YOu have a fully registered autodesk product NO LAME DLL PATCHING ..... NB: 1.If you want to install MotionBuilder 32...
The Instant Device Activation User's Guide will help you set up a “minidriver” to start devices quickly when the system boots. This guide is intended for software developers who want to develop ...
after clicking 'OK' ReFox prepares data for generating the full activation key: created data sample: see ReFox.~~~ and ReFox~~~.zip files in your ReFox folder 5. send the data for generating ...
corroborating the high observed temperatures for the onset of steam AlN hydrolysis. We predict AlN hydrolysis to be kinetically limited by the dissociation of strong Al−N bonds required to accumulate...