I have upgraded modeshape from 5.2 to 5.3 on my Wildfly 10 to get the replica set support for MongoDB but for some unknown reason it is not working.
I use the following line in my config:
<mongo-binary-storage host-addresses="host:port, host:port, host:port" database="name" username="name" password="pass"/>
I keep getting the following error:
11:24:26,675 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 7) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "modeshape"),
("repository" => "ayedetail"),
("configuration" => "binary-storage"),
("storage-type" => "mongo-binary-storage")
]) - failure description: "WFLYCTL0155: host may not be null"
I have double checked that the update went fine. In the modules directory I have the modeshape-jbossas-subsystem-5.3.0.Final.jar file. I checked that this jar file contains the correct modeshape_3_0.xsd but still it complains that it needs a host parameter:
Does anybody else have the same problem? I have deleted the standalone/tmp standalone/data directories. AFAIK there are no other directories where Wildfly could store an old version from the xds.
It seems that the changes for [MODE-2635] Enhance Modeshape JSON and Wild Fly configuration to support passing in a replica set to the MongoDB binary … are incomplete as host and port are still required.
The workaround atm. is to provide host and port with the values for the first replica server and host-addresses with the rest of the replicas.