-
1. Re: Failing to load jgroups config file
rhauch Sep 19, 2014 12:35 PM (in response to rwoolf)Did you try putting the file onto your classpath and using a classpath-relative path for 'channelConfiguration'?
-
2. Re: Failing to load jgroups config file
rwoolf Sep 19, 2014 3:28 PM (in response to rhauch)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:
-
3. Re: Failing to load jgroups config file
hchiorean Sep 22, 2014 1:11 AM (in response to rwoolf)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