cloudadc / cluster Goto Github PK
View Code? Open in Web Editor NEWJBoss Cluster Framework(jGroups, JBossCache, Infinispan) Demo
Home Page: https://github.com/kylinsoong/cluster
License: Apache License 2.0
JBoss Cluster Framework(jGroups, JBossCache, Infinispan) Demo
Home Page: https://github.com/kylinsoong/cluster
License: Apache License 2.0
Current build
mvn clean install -P release
can generate 2 dist
Now, we need merge these 2 dist as one, which named cluster-demo-dist.zip, under 'build/target/' dir
JBoss Cluster jGroups Tankwar demo blood not synchronized at the Game beginning
While start datagrid demo use traditional mood it works fine like below:
java -cp target/dependency/*:target/grid-helloworld.jar -Djava.net.preferIPv4Stack=true com.kylin.infinispan.datagrid.helloworld.Main -c infinispan-distribution.xml
But whem run with jboss-modules-1.1.2.GA.jar, like below:
java -jar jboss-modules-1.1.2.GA.jar -mp -c infinispan-distribution.xml the following exception throw:
Exception in thread "main" org.infinispan.config.ConfigurationException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,208]
Message: Unexpected element '{urn:infinispan:config:5.2}infinispan'
at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:87)
at org.infinispan.manager.DefaultCacheManager.(DefaultCacheManager.java:353)
at org.infinispan.manager.DefaultCacheManager.(DefaultCacheManager.java:326)
at com.kylin.infinispan.datagrid.helloworld.MyCacheManagerProvider.getCacheManager(MyCacheManagerProvider.java:65)
at com.kylin.infinispan.datagrid.helloworld.CacheDelegateImpl.(CacheDelegateImpl.java:16)
at com.kylin.infinispan.datagrid.helloworld.Main.main(Main.java:63)
at bootstrap.infinispan.Main.main(Main.java:17)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.modules.Module.run(Module.java:270)
at org.jboss.modules.Main.main(Main.java:294)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,208]
Message: Unexpected element '{urn:infinispan:config:5.2}infinispan'
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:77)
... 12 more
com.kylin.infinispan.datagrid.helloworld.test.JCD001
, which this package contain class can reproduce this issuecom.kylin.infinispan.datagrid.helloworld.test.JCD001.JCD001Base
DEMO_HOME equal with generated Demo Homecom.kylin.infinispan.datagrid.helloworld.test.JCD001.ModularClassLoadingBoot
will throw issue section exceptioncom.kylin.infinispan.datagrid.helloworld.test.JCD001.TraditionalBoot
data grid demo will start correctlyorg.infinispan.configuration.parsing.ParserRegistry
construction method, as below code:ServiceLoader parsers = ServiceLoader.load(ConfigurationParser.class, cl);
for (ConfigurationParser<?> parser : parsers) {
for (Namespace ns : parser.getSupportedNamespaces()) {
xmlMapper.registerRootElement(new QName(ns.getUri(), ns.getRootElement()), parser);
}
}
while use Modular Class Loading Framework, no element be registered, but use other Class Loading, element be registered
Wrong module.xml dependency cause this issue, boot module depend on grid demo module, grid demo module denpend on infinispan module, the following code:
ServiceLoader parsers = ServiceLoader.load(ConfigurationParser.class, cl);
in infinispan module, but use boot module ModularClassloader, so no ConfigurationParser's implementation be loaded by ServiceLoader load() method
Modify boot module module.xml, add infnispan module dependency:
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.