Question

I'm trying to configure Coherence 3.7 on Oracle Web Logic Server 10.3.4, but when I try to run application on server using eclipse, I get following error.

<9 May, 2012 4:28:23 PM IST> with ID '1336561103127' for task '14'. Error is: 'weblogic.application.ModuleException: No storage-enabled nodes exist >for service DistributedSessions' weblogic.application.ModuleException: No storage-enabled nodes exist for service DistributedSessions at weblogic.servlet.internal.WebAppModule.activateContexts(WebAppModule.java:1497) at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:438) at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:375) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleStateDriver.java:95) Truncated. see log file for complete stacktrace Caused By: com.tangosol.net.RequestPolicyException: No storage-enabled nodes exist for service DistributedSessions at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.o>nMissingStorage(PartitionedCache.CDB:32) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.s>endStorageRequest(PartitionedCache.CDB:11) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.a>ddIndex(PartitionedCache.CDB:11) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.add>Index(PartitionedCache.CDB:1) at com.tangosol.coherence.component.util.SafeNamedCache.addIndex(SafeNamedCache.CDB:1) Truncated. see log file for complete stacktrace

<9 May, 2012 4:28:23 PM IST> <9 May, 2012 4:28:23 PM IST> application '_auto_generated_ear_'.> <9 May, 2012 4:28:23 PM IST> nMissingStorage(PartitionedCache.CDB:32) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.s>endStorageRequest(PartitionedCache.CDB:11) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.a>ddIndex(PartitionedCache.CDB:11) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.add>Index(PartitionedCache.CDB:1) at com.tangosol.coherence.component.util.SafeNamedCache.addIndex(SafeNamedCache.CDB:1) Truncated. see log file for complete stacktrace

I've checked with the cache start script and enabled local-storage true in it, but it still doesn't works. Can someone please provide me right steps to configure coherence cache on the Weblogic Server (in web console and in applcation), or suggest me possible reasons why am I getting this error.

Was it helpful?

Solution

This can happen in a few different cases. Either the storage-enabled nodes are not connected to the storage-disabled nodes (WebLogic in your case) or the storage-enabled nodes don't have SESSION local storage enabled. Confirm that the cluster includes the storage-enabled nodes at runtime and confirm that the cache server is started with the following option:

-Dtangosol.coherence.session.localstorage=true

OTHER TIPS

You have to specify some JVM parameters in your Weblogic Server Installation. Go to Enviroment-> Servers and select your server. In tab Configuration select the tab Starting Server and fill the field Arguments whit the following JVM parameters

-Dtangosol.coherence.cacheconfig=session-cache-config.xml -Dtangosol.coherence.distributed.localstorage=true -Dtangosol.coherence.session.localstorage=true 
-Dtangosol.coherence.cluster=CoherenceCluster 
-Dtangosol.coherence.clusteraddress=231.1.3.4 
-Dtangosol.coherence.clusterport=7744

This worked for me, I had exactly the same error.

I had this problem. Both localstorage system parameters where set to true. The problem was that my cache configuration was not loading so the requested cache service was simply unknown to that "server" node.

So if you encounter this problem, check if your cache config is being loaded ("Loaded cache configuration from ...").

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top