Monday 5 March 2012

Coherence*Web Configuraiton changed 3.6 to 3.7

Moving from Coherence 3.6 to 3.7 the configuration to start a "Cache Server"  for Oracle Coherence*Web has changed in some points.

The configuration to start a default Coherence*Web CacheServer instance was in 3.6

 java -server -Xms512m -Xmx512m   
 -cp <Coherence_home>/lib/coherence.jar:<Coherence_home>/lib/coherence-web-spi.war   
 -Dtangosol.coherence.management.remote=true   
 -Dtangosol.coherence.cacheconfig=WEB-INF/classes/session-cache-config.xml   
 -Dtangosol.coherence.session.localstorage=true com.tangosol.net.DefaultCacheServer  
If you use the above setup with Coherence 3.7, there is an error thrown

 Exception in thread "main" (Wrapped: Failed to load the factory)   
 (Wrapped: Missing or inaccessible constructor   
 "com.tangosol.net.DefaultConfigurableCacheFactory(String)"  
 <configurable-cache-factory-config>  
  <class-name>com.tangosol.net.DefaultConfigurableCacheFactory</class-name>  
  <init-params>  
   <init-param>  
    <param-type>java.lang.String</param-type>  
    <param-value>session-cache-config.xml</param-value>  
   </init-param>  
  </init-params>  
 </configurable-cache-factory-config>) java.lang.reflect.InvocationTargetException  
  at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)   
The location of the default session-cache-config.xml file has changed from coherence-web-spi.war to coherence-web.jar instead in .

The configuration for Coherence*Web CacheServer for coherence 3.7 reads

 java -server -Xms512m -Xmx512m   
 -cp <Coherence_home>/lib/coherence-web.jar:<Coherence_home>/lib/coherence.jar   
 -Dtangosol.coherence.management.remote=true   
 -Dtangosol.coherence.cacheconfig=session-cache-config.xml  
 -Dtangosol.coherence.session.localstorage=true com.tangosol.net.DefaultCacheServer  
See for more details Start a Cache Server
 

No comments:

Post a Comment