Hi,
I put a copy of the hazelcast.xml from the original rest web app into the springboot resource directory and when I tried to start the Springboot app, I ght the console output as above, but additionally:
022-03-31 15:46:51.503 INFO 129580 --- [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2213 ms
2022-03-31 15:46:53.099 INFO 129580 --- [ restartedMain] c.h.i.c.AbstractConfigLocator : Loading 'hazelcast.xml' from the classpath.
2022-03-31 15:46:53.214 WARN 129580 --- [ restartedMain] c.h.c.AbstractXmlConfigHelper : Name of the hazelcast schema location[hazelcast-config-3.8.xsd] is incorrect, using default
2022-03-31 15:46:53.449 WARN 129580 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hazelcastInstance' defined in class path resource [org/springframework/boot/autoconfigure/hazelcast/HazelcastServerConfiguration$HazelcastServerConfigFileConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.hazelcast.core.HazelcastInstance]: Factory method 'hazelcastInstance' threw exception; nested exception is com.hazelcast.config.InvalidConfigurationException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'group'. One of '{"
http://www.hazelcast.com/schema/config":import, "
http://www.hazelcast.com/schema/config":config-replacers, "
http://www.hazelcast.com/schema/config":cluster-name, "
http://www.hazelcast.com/schema/config":license-key, "
http://www.hazelcast.com/schema/config":instance-name, "
http://www.hazelcast.com/schema/config":management-center, "
http://www.hazelcast.com/schema/config":properties, "
http://www.hazelcast.com/schema/config":wan-replication, "
http://www.hazelcast.com/schema/config":network, "
http://www.hazelcast.com/schema/config":partition-group, "
http://www.hazelcast.com/schema/config":executor-service, "
http://www.hazelcast.com/schema/config":durable-executor-service, "
http://www.hazelcast.com/schema/config":scheduled-executor-service, "
http://www.hazelcast.com/schema/config":queue, "
http://www.hazelcast.com/schema/config":map, "
http://www.hazelcast.com/schema/config":multimap, "
http://www.hazelcast.com/schema/config":replicatedmap, "
http://www.hazelcast.com/schema/config":cache, "
http://www.hazelcast.com/schema/config":list, "
http://www.hazelcast.com/schema/config":set, "
http://www.hazelcast.com/schema/config":topic, "
http://www.hazelcast.com/schema/config":reliable-topic, "
http://www.hazelcast.com/schema/config":ringbuffer, "
http://www.hazelcast.com/schema/config":listeners, "
http://www.hazelcast.com/schema/config":serialization, "
http://www.hazelcast.com/schema/config":native-memory, "
http://www.hazelcast.com/schema/config":security, "
http://www.hazelcast.com/schema/config":member-attributes, "
http://www.hazelcast.com/schema/config":split-brain-protection, "
http://www.hazelcast.com/schema/config":lite-member, "
http://www.hazelcast.com/schema/config":hot-restart-persistence, "
http://www.hazelcast.com/schema/config":user-code-deployment, "
http://www.hazelcast.com/schema/config":cardinality-estimator, "
http://www.hazelcast.com/schema/config":flake-id-generator, "
http://www.hazelcast.com/schema/config":crdt-replication, "
http://www.hazelcast.com/schema/config":pn-counter, "
http://www.hazelcast.com/schema/config":advanced-network, "
http://www.hazelcast.com/schema/config":cp-subsystem, "
http://www.hazelcast.com/schema/config":auditlog, "
http://www.hazelcast.com/schema/config":metrics, "
http://www.hazelcast.com/schema/config":instance-tracking, "
http://www.hazelcast.com/schema/config":sql}' is expected.
2022-03-31 15:46:53.455 INFO 129580 --- [ restartedMain] o.a.c.c.StandardService : Stopping service [Tomcat]
2022-03-31 15:46:53.479 INFO 129580 --- [ restartedMain] ConditionEvaluationReportLoggingListener :
The hazelcast.xml is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2008-2017, Hazelcast, Inc. All Rights Reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~
http://www.apache.org/licenses/LICENSE-2.0 ~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!--
Please see the schema for how to configure Hazelcast at
https://hazelcast.com/schema/config/hazelcast-config-3.8.xsd or the documentation at
https://hazelcast.org/documentation/-->
<hazelcast xsi:schemaLocation="
http://www.hazelcast.com/schema/config hazelcast-config-3.8.xsd"
xmlns="
http://www.hazelcast.com/schema/config"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<group>
<name>dev</name>
<password>dev-pass</password>
</group>
<properties>
<property name="hazelcast.logging.type">log4j</property>
</properties>
<management-center enabled="false">
http://localhost:8080/mancenter</management-center>
<network>
<port auto-increment="true" port-count="100">5701</port>
<outbound-ports>
<ports>0</ports>
</outbound-ports>
<join>
<multicast enabled="false">
<multicast-group>224.2.2.3</multicast-group>
<multicast-port>54327</multicast-port>
</multicast>
<discovery-strategies>
</discovery-strategies>
</join>
</network>
<map name="orchestratorMap">
<in-memory-format>BINARY</in-memory-format>
<backup-count>1</backup-count>
<async-backup-count>0</async-backup-count>
<time-to-live-seconds>3600</time-to-live-seconds>
<max-idle-seconds>0</max-idle-seconds>
<eviction-policy>LRU</eviction-policy>
<max-size policy="PER_NODE">10000</max-size>
</map>
<services enable-defaults="true"/>
</hazelcast>
What might be causing the problem?
Thanks,
Jim