ehcache / ehcache3-samples Goto Github PK
View Code? Open in Web Editor NEWSome examples / tutorials on using Ehcache 3.
License: Apache License 2.0
Some examples / tutorials on using Ehcache 3.
License: Apache License 2.0
I really can't find a way to make the jsr107 statistics work. Can we have a working example in the sample?
**Fatal Terracotta startup exception:
org.terracotta.config.TCConfigurationSetupException: Couldn't parse configurati
on file, there are 2 error(s).
[1] Line 3, column 13: cvc-complex-type.2.4.a: Invalid content was found starti
ng with element 'services'. One of '{"http://www.terracotta.org/config":plugins,
"http://www.terracotta.org/config":tc-properties, "http://www.terracotta.org/co
nfig":failover-priority, "http://www.terracotta.org/config":servers}' is expecte
d.
[2] Line 13, column 13: cvc-complex-type.2.4.a: Invalid content was found start
ing with element 'data'. One of '{"http://www.terracotta.org/config":logs, "http
://www.terracotta.org/config":tsa-group-port}' is expected.
Server startup failed.
2018-05-25 16:29:04,430 [main] INFO com.tc.properties.TCPropertiesImpl - The pro
perty "l2.nha.autoRestart" was read before initialization completed. "l2.nha.aut
oRestart" = true
2018-05-25 16:29:04,434 [main] INFO com.tc.server.TCServerMain - ExitState : Cal
lbackOnExitState[Throwable: class com.tc.config.schema.setup.ConfigurationSetupE
xception; RestartNeeded: false]; AutoRestart: true**
tc-config file is working fine. But, when I am adding data tag it is showing error
code :
<server host="localhost" name="default-server">
<logs>terracotta/server-logs</logs>
<!--data>%(user.home)/terracotta/server-data</data-->
<data>terracotta/server-data</data>
<tsa-port>9410</tsa-port>
</server>
Error :
2019-06-03 18:32:38,414 [main] INFO com.tc.server.TCServerMain - Terracotta 5.6.0, as of 2019-02-25 at 11:39:51 PST (Revision e3ecf35a0f429b388fa8eaa411d52e830920f2ea from UNKNOWN)
2019-06-03 18:32:38,438 [main] INFO com.tc.server.TCServerMain - PID is 1752
2019-06-03 18:32:38,445 [main] INFO com.tc.properties.TCPropertiesImpl - Loading default properties from tc.properties
2019-06-03 18:32:38,449 [main] INFO com.tc.properties.TCPropertiesImpl - The property "l2.dump.on.exception.timeout" was read before initialization completed. "l2.dump.on.exception.timeout" = 30
2019-06-03 18:32:38,468 [main] INFO com.tc.classloader.ServiceLocator - Entity/Service apis will be loaded from C:\Users\m1047270\Downloads\caching\ehcache-clustered-3.7.0-kit\ehcache-clustered-3.7.0-kit\server\plugins\api
2019-06-03 18:32:38,468 [main] INFO com.tc.classloader.ServiceLocator - Entity/Service implementations will be loaded from C:\Users\m1047270\Downloads\caching\ehcache-clustered-3.7.0-kit\ehcache-clustered-3.7.0-kit\server\plugins\lib
2019-06-03 18:32:38,538 [main] INFO com.tc.properties.TCPropertiesImpl - The property "tc.config.total.timeout" was read before initialization completed. "tc.config.total.timeout" = 300000
2019-06-03 18:32:38,539 [main] INFO com.tc.properties.TCPropertiesImpl - The property "tc.config.getFromSource.timeout" was read before initialization completed. "tc.config.getFromSource.timeout" = 30000
2019-06-03 18:32:38,710 [main] INFO com.tc.config.schema.setup.StandardXMLFileConfigurationCreator - Attempting to load configuration from the file at 'C:\Users\m1047270\Downloads\caching\ehcache-clustered-3.7.0-kit\ehcache-clustered-3.7.0-kit\server\bin\..\conf\tc-config.xml'...
Fatal Terracotta startup exception:
org.terracotta.config.TCConfigurationSetupException: Couldn't parse configuration file, there are 1 error(s).
[1] Line 19, column 10: cvc-complex-type.2.4.a: Invalid content was found starting with element 'data'. One of '{"http://www.terracotta.org/config":tsa-port, "http://www.terracotta.org/config":tsa-group-port}' is expected.
Server startup failed.
2019-06-03 18:32:38,872 [main] INFO com.tc.properties.TCPropertiesImpl - The property "l2.nha.autoRestart" was read before initialization completed. "l2.nha.autoRestart" = true
2019-06-03 18:32:38,876 [main] INFO com.tc.server.TCServerMain - ExitState : CallbackOnExitState[Throwable: class com.tc.config.schema.setup.ConfigurationSetupException; RestartNeeded: false]; AutoRestart: true
I'm trying to run your ClusteredProgrammatic example in OSGi. The terracotta server has the same config as here
Also tried several other examples from ehcache documentation.
Every time I'm getting this error.
Error repeats a hundred of times. The application starts to be unresponsive and I need to kill in in activity monitor.
I add this as dep.
`
org.ehcache
ehcache
3.7.0
org.ehcache
ehcache-clustered
3.7.0
`
Running on macOS Mojave 10.14.4
Any idea what's going wrong?
Excuse me. 'clustered' gives a sample of distributed cache with terracotta server. But in 'tc-config.xml', there is only one server. I try to add a server but only the first server works. Can you give a sample to show how two or more servers work in the cluster.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.