Did you try putting the file onto your classpath and using a classpath-relative path for 'channelConfiguration'?
I had prior tried just putting it in the WEB-INF folder, but I just retried it by putting it in the WEB-INF/classes folder and now it successfully finds it. Is this the only way to load it? I found older documentation when the modeshape configuration file was XML that stated you could use absolute file system paths and this would be my preferred.
Now that I have this file loading, I have also added <clustering mode="replication"> <sync/> </clustering> to my infinispan configuration file. Now I am getting the error
javax.jcr.RepositoryException: Error while starting 'longterm' repository: Transport should be configured in order to use clustered caches
at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:650) ~[modeshape-jcr-3.8.0.Final.jar:3.8.0.Final]
Is there something further I need to configure? BTW - the modeshape documentation said nothing about adding this clustering configuration to the infinispan configuration file, but I found this info at:
If you want to configure clustering in 3.x, you always need to configure:
- Infinispan (and via the Infinispan XML configuration JGroups)
- The ModeShape repository - where at a minimum you just need to set the "clustering"/"clusterName" property and Modeshape will use a default JGroups configuration (or you can specify an external JGroups file).
You can see this in the ModeShape documentation here: ModeShape in Java applications - ModeShape 3 - Project Documentation Editor