I am trying to test that my two coherence clusters are communicating with each other successfully. Everything seems to be running fine besides the Proxys which throw the exception.
Failed to instantiate class<My_Class_Name> using org.apache.maven.surefire.booter.IsolatedClassLoader@135ae7e
I am trying to run the following command from within a .bat script:
start mvn -Dtest=<MyTestName> test ^
-Dlog4j.configuration=<my_config>.log4j.properties ^
-Dtangosol.coherence.override=<my_config>.tangosol-coherence-override.xml ^
-Dtangosol.coherence.cacheconfig=<my_config>_proxy_cache_config.xml ^
-Dtangosol.coherence.localport=<port_number> ^
-Dtcp.extend.proxy.port=<proxy_port> ^
-Dtangosol.coherence.role=Proxy ^
-Dtangosol.coherence.cluster=<My_cluster_name>
The class which it fails to instantiate controls reading/writing/deleting from the cache etc.
Any ideas why i cannot instantiate it??
Also, when i run it in Eclipse it just does nothing, even with all the dependencies specified, so i can't debug it in that way!
Follow-up: Below, the stacktrace
</class-scheme>) java.lang.NoClassDefFoundError: Could not initialize class <myCacheStoreClass>
at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2307)
at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateAny(DefaultConfigurableCacheFactory.java:2994)
at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateCacheStore(DefaultConfigurableCacheFactory.java:2
857)
at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateReadWriteBackingMap(DefaultConfigurableCacheFacto
ry.java:1493)
at com.tangosol.net.DefaultConfigurableCacheFactory.configureBackingMap(DefaultConfigurableCacheFactory.java:125
8)
at com.tangosol.net.DefaultConfigurableCacheFactory$Manager.instantiateBackingMap(DefaultConfigurableCacheFactor
y.java:3492)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.instantiate
ResourceMap(DistributedCache.CDB:22)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.setCacheNam
e(DistributedCache.CDB:27)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.ensureKnownStorage(
DistributedCache.CDB:28)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(Distribute
dCache.CDB:21)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class <myCacheStoreClass>
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:662)
at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2297)
... 11 more