Weblogic. application. ModuleException and applicationexception are reported when weblogic is started.
Take an EJB demo from someone else, a basic java project as the tool jar package, three ejb projects as the ejb base library, and one web application as the front-end, add an Enterprise Application Project as the unified EAR Project.
After installing the three basic ejb libraries, the following error is reported:
<09:14:44 A.M. 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 stacktraceCaused 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>
After checking for half a day, we found that the local storage switch of the coherence session in weblogic is disabled by default and must be explicitly specifiedtrue
.
In the domain of the current environment, modify the startWebLogic. cmd file (for Linux, modify the startWebLogic. sh file). Incall "%DOMAIN_HOME%\bin\startWebLogic.cmd" %*
Add the following command:
set JAVA_OPTIONS=-Dtangosol.coherence.session.localstorage=true
Restart. No error is reported. The startup is successful.