I noticed that the bundled replSync-service.xml configuration file does not conform to the JBC 3.0 XML Schema and is being ignored on startup. It appears that the bundled configuration is assuming that JBC is being dependency injected by the JBoss Microcontainer instead of as a POJO.
Am I missing something?
2009-01-12 14:04:48,532 ERROR main org.jboss.cache.config.parsing.RootElementBuilder Configuration warning: cvc-elt.1: Cannot find the declaration of element 'server'. 2009-01-12 14:04:48,533 ERROR main org.jboss.cache.config.parsing.RootElementBuilder org.jboss.cache.config.ConfigurationException: Incorrect configuration file. Use '-Djbosscache.config.validate=false' to disable validation.
The problem is that this log message is misleading. (Feel free to open a jira on this) JBC attempts to parse the file in the 3.x format, and then failing that it parses the file in the 2.x format. If the cache really could not be started, the code calling createCache should receive an exception.