I am using Weblogic 12.1.2 which contains 1-admin & 3-manage-servers(under 1-cluster) in the same machine.I want to store some data into a cache(distributed) which must be available among all the manager-servers inside a cluster. So I am using oracle coherence feature for the same. whenever I started coherence.sh it always gives the error saying that " ". ”。 I have done some analysis and came to know that its always taking configuration from coherance.jar which comes with WebLogic. even after changing the PRE_CLASSPATH to my custom coherance.jar. it's always pointing to the WebLogic jar.Due to this i am not able to override . 。
Can you please suggest something. how can I override WebLogic default coherance.jar resources to my custom ones?
According to Coherence documentation , by default Coherence will use first coherence-cache-config.xml
file found in classpath. But in your case it tries to load it from file://coherence-cache-config.xml
location. It means that location of this file is somewhere overriden (either in tangosol-coherence-override.xml
file or through tangosol.coherence.cacheconfig
system property).
What more, file://coherence-cache-config.xml
seems to be not a valid file uri. When I try to do:
new File(new URI("file://coherence-cache-config.xml"))
it results in exception
java.lang.IllegalArgumentException: URI has an authority component
So, make sure you properly set coherence-cache-config.xml
file location in tangosol-coherence-override.xml
file or through tangosol.coherence.cacheconfig
system property (the documentation explains in details, how to do it).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.