Spring 3到4升级 - WebLogic 10.3上的ClassNotFoundException启动

时间:2016-05-08 04:08:28

标签: spring weblogic11g

请允许我首先说明我理解 {/ 1}}

我的问题是为什么?

背景是我从Spring 3.0.0升级到Spring 4.2.5。我已经成功完成了Eclipse和Maven构建。然后我将我的EAR部署到我一直用于此应用程序的域中。

在启动期间,我收到以下异常:

ClassNotFoundException

所以我知道在Spring 3.2中删除了####<May 7, 2016 6:30:45 PM PDT> <Error> <Deployer> <FOO-LTW2> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1462671045884> <BEA-149205> <Failed to initialize the application 'myEar-1' due to error java.lang.ClassNotFoundException: org.springframework.ejb.support.AbstractJmsMessageDrivenBean. java.lang.ClassNotFoundException: org.springframework.ejb.support.AbstractJmsMessageDrivenBean at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343) at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179) at weblogic.ejb.container.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.java:1845) at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:414) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154) 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:191) at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21) at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240) 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:180) at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96) at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) 。我不是在使用它!

堆栈跟踪也没有对我的应用程序代码的引用。它似乎停止/启动Weblogic特定代码。不确定这是否意味着什么,但我想指出那个细节。

我有三重检查的maven,我使用的任何与Spring配置相关的类等等...没有对上面的类甚至它所属的包的引用。

我还确保Weblogic库中没有任何弹簧3.x罐。我还清空了我的域服务器/ tmp,服务器/缓存,服务器/日志文件夹,以确保没有任何问题。

所以我很困惑为什么Weblogic认为我需要这个类,当我不需要它或明确地,有目的地引用它。

谢谢!!

0 个答案:

没有答案