14:02:45,997 INFO ModeShape version 3.1.1.Final
javax.jcr.RepositoryException: Error while starting 'Persisted-Repository' repository: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[6,43]
Message: Unexpected element '{urn:infinispan:config:6.0}infinispan' encountered
at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:613)
at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:580)
at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:149)
at org.modeshape.example.sequencing.ModeShapeExample.main(ModeShapeExample.java:76)
Caused by: org.infinispan.config.ConfigurationException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[6,43]
Message: Unexpected element '{urn:infinispan:config:6.0}infinispan' encountered
at org.infinispan.configuration.parsing.Parser.parse(Parser.java:116)
at org.infinispan.configuration.parsing.Parser.parse(Parser.java:94)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:369)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:341)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:328)
at org.modeshape.jcr.LocalEnvironment.createContainer(LocalEnvironment.java:201)
at org.modeshape.jcr.LocalEnvironment.getCacheContainer(LocalEnvironment.java:113)
at org.modeshape.jcr.RepositoryConfiguration.getCacheContainer(RepositoryConfiguration.java:959)
at org.modeshape.jcr.RepositoryConfiguration.getContentCacheContainer(RepositoryConfiguration.java:949)
at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:1050)
at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:966)
at org.modeshape.jcr.JcrRepository.doStart(JcrRepository.java:354)
at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:611)
... 3 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[6,43]
Message: Unexpected element '{urn:infinispan:config:6.0}infinispan' encountered
at org.infinispan.configuration.parsing.ParseUtils.unexpectedElement(ParseUtils.java:60)
at org.infinispan.configuration.parsing.ParseUtils.nextElement(ParseUtils.java:49)
at org.infinispan.configuration.parsing.Parser.doParse(Parser.java:122)
at org.infinispan.configuration.parsing.Parser.parse(Parser.java:105)
... 15 more
Shutting down engine ...
Success!
Looking at the ModeShape 3.1.1.Final bom, it uses Infinispan 5.1.2, and the error that you see there is most likely because you are giving it a newer configuration (version 6.x), which it does not know how to handle.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With