It looks like you copied this configuration template from this
documentation file:
https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteSpringBean.html

It assumes that an Ignite instance will be started separately and then
passed into this configuration file via "mySpringBean".

Are you sure you need to go this path? Most likely, you can configure
Ignite with a Spring XML file or programmatically in Java and then start a
cluster node using the configuration. Check this Ignite hello world app
that shows how to achieve this programmatically:
https://apacheignite.readme.io/docs/getting-started#adding-ignitehelloworld

This tutorial shows how to work with Ignite from a standard Spring
application that goes with Controllers, Repositories and Services:
https://www.gridgain.com/docs/tutorials/spring/spring_ignite_tutorial

-
Denis


On Tue, Jun 16, 2020 at 12:46 AM kay bae <[email protected]> wrote:

> Hello, I start node using command
>
> ' sh ignite.sh ./config/config.xml &  '
>
> It worked well before I added IgniteSpringBean.
>
> After I add this code,
>
>
> <bean id="mySpringBean" class="org.apache.ignite.IgniteSpringBean">
>      <property name="configuration">
>          <bean id="grid.cfg"
> class="org.apache.ignite.configuration.IgniteConfiguration">
>              <property name="igniteInstanceName" value="mySpringGrid"/>
>          </bean>
>      </property>
>  </bean>
>
>
>
> 2020-06-16T16:20:38,429][INFO ][main][G] Node started : [stage="Configure
> system pool" (53 ms),stage="Start managers" (187 ms),stage="Configure
> binary metadata" (41 ms),stage="Start processors" (623 ms),stage="Init
> metastore" (9 ms),stage="Finish recovery" (0 ms),stage="Join topology" (170
> ms),stage="Await transition" (14 ms),stage="Await exchange" (379
> ms),stage="Total time" (1476 ms)]
>  class org.apache.ignite.IgniteException: Failed to find configuration in:
> file:./config/config.xml
>          at
> org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1067)
>          at org.apache.ignite.Ignition.start(Ignition.java:349)
>          at
> org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:300)
>  Caused by: class org.apache.ignite.IgniteCheckedException: Failed to find
> configuration in: file:./config/config.xml
>          at
> org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:116)
>          at
> org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
>          at
> org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:710)
>          at
> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:911)
>          at
> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:820)
>          at
> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:690)
>          at
> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:659)
>          at org.apache.ignite.Ignition.start(Ignition.java:346)
>          ... 1 more
>  Failed to start grid: Failed to find configuration in:
> file:./config/config.xml
>
>
>
> Node started and failed.
>
> Is there any set up to use IgniteSpringBean??
>
> Thank you
>

Reply via email to