weblogic启动报weblogic.application.ModuleException

本文解决了在WebLogic上部署应用程序时遇到的“weblogic.application.ModuleException”错误。通过开启coherence会话的本地存储开关,成功避免了该错误并实现了正常启动。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

从别人的拿了一个EJB的demo,一个基础java工程作为工具jar包,三个ejb项目作为ejb基础库,一个web应用作为前端,另外加一个Enterprise Application Project作为统一的EAR项目。

三个ejb基础库安装完成,准备安装ear的时候,一直报下面这个错误:

<2015-4-15 上午09时14分44秒 CST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application "empweb".
weblogic.application.ModuleException: com.tangosol.net.RequestPolicyException: No storage-enabled nodes exist for service oracle.coherence.web:DistributedSessions
	at weblogic.application.internal.ExtensibleModuleWrapper.activate(ExtensibleModuleWrapper.java:123)
	at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:114)
	at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:195)
	at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:190)
	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
	Truncated. see log file for complete stacktrace
Caused By: com.tangosol.net.RequestPolicyException: No storage-enabled nodes exist for service oracle.coherence.web:DistributedSessions
	at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.onMissingStorage(PartitionedCache.CDB:27)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.sendStorageRequest(PartitionedCache.CDB:13)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.addIndex(PartitionedCache.CDB:9)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.addIndex(PartitionedCache.CDB:1)
	at com.tangosol.coherence.component.util.SafeNamedCache.addIndex(SafeNamedCache.CDB:1)
	Truncated. see log file for complete stacktrace
> 

查了半天,才发现,weblogic中coherence会话的本地存储开关默认是关闭的,需要明确指定为true

在当前环境的domain域中,修改startWebLogic.cmd文件(Linux对应修改startWebLogic.sh文件),在call "%DOMAIN_HOME%\bin\startWebLogic.cmd" %*前面添加如下命令:

set JAVA_OPTIONS=-Dtangosol.coherence.session.localstorage=true

重新启动,不再报错,启动成功。


个人主页: http://www.howardliu.cn

个人博文: weblogic启动报weblogic.application.ModuleException

优快云主页: http://blog.youkuaiyun.com/liuxinghao

优快云博文: weblogic启动报weblogic.application.ModuleException

打包错了,<Jul 30, 2025, 5:50:36,784 PM China Standard Time> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "7889792369197352" for task "920" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: java.lang.ClassNotFoundException: com.lkm.ejb.toolmanage.server.ToolManageEjb" weblogic.application.ModuleException: java.lang.ClassNotFoundException: com.lkm.ejb.toolmanage.server.ToolManageEjb at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100) at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:192) at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:187) at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:83) Truncated. see log file for complete stacktrace Caused By: java.lang.ClassNotFoundException: com.lkm.ejb.toolmanage.server.ToolManageEjb at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1035) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:996) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:101) at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:617) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:547) Truncated. see log file for complete stacktrace
最新发布
07-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

看山

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值