GithubHelp home page GithubHelp logo

ehcache / ehcache3-samples Goto Github PK

View Code? Open in Web Editor NEW
138.0 138.0 90.0 5.55 MB

Some examples / tutorials on using Ehcache 3.

License: Apache License 2.0

Java 48.66% JavaScript 5.53% HTML 15.02% CSS 1.45% Scala 0.42% TypeScript 28.69% Dockerfile 0.05% Shell 0.05% Smarty 0.12%

ehcache3-samples's People

Contributors

akomakom avatar anthonydahanne avatar aurbroszniowski avatar azure-pipelines[bot] avatar chrisdennis avatar garywkeim avatar henri-tremblay avatar jhouserizer avatar lanimall avatar ljacomet avatar lorban avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ehcache3-samples's Issues

Exception while starting server

**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**

adding data tag to config file is giving error

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

ClusteredProgrammatic not working in OSGi

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?

How to realize distributed by two or more servers

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.