Looks like you’re not actually starting Ignite there.
You need to either
- Provide Ignite configuration path via SpringcacheManager.configurationPath
- Provide Ignite configuration bean via SpringcacheManager.configuration
- Start Ignite manually in the same JVM prior to the SB app initialization
If you don’t know what’s better, try the second option.
Refer to the SpringCacheManager Javadoc: 
https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/cache/spring/SpringCacheManager.html

I don’t know what has changed since you used spring boot 1.5.8 – perhaps you’ve 
been 
using an older Ignite version which had a bit different behavior.
In any case, the options above is how you’re supposed to use it in Ignite 2.6.

Stan

From: ignite_user2016
Sent: 10 октября 2018 г. 1:06
To: [email protected]
Subject: Re: Ignite on Spring Boot 2.0

Please find sample project running on SB 2.0.. when I try to instantiate it
gives following exception - 

2018-10-09 16:54:28.207  WARN 14068 --- [           main]
io.undertow.servlet                      : UT015020: Path /* is secured for
some HTTP methods, however it is not secured for [HEAD, DELETE, POST, GET,
CONNECT, OPTIONS, PUT]
[2018-10-09 16:54:30,636][ERROR][main][SpringApplication] Application run
failed
class org.apache.ignite.IgniteIllegalStateException: Ignite instance with
provided name doesn't exist. Did you call Ignition.start(..) to start an
Ignite instance? [name=WebGrid]
        at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1383)
        at org.apache.ignite.Ignition.ignite(Ignition.java:535)
        at
org.apache.ignite.cache.spring.SpringCacheManager.onApplicationEvent(SpringCacheManager.java:334)
        at
org.apache.ignite.cache.spring.SpringCacheManager.onApplicationEvent(SpringCacheManager.java:146)
        at
org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
        at
org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
        at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
        at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
        at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:354)
        at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:888)
        at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:161)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553)
        at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
        at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
        at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
        at
org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
        at demo.SB20CacheApplication.main(SB20CacheApplication.java:28)
sb20-cache-app.7z
<http://apache-ignite-users.70518.x6.nabble.com/file/t871/sb20-cache-app.7z>  
cache_log.txt
<http://apache-ignite-users.70518.x6.nabble.com/file/t871/cache_log.txt>  



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to