• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Redis Error in Spring Session sample using Maven and Spring Boot

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was trying to set-up this Spring-Session example using Spring Boot + Maven (the source in the GIT link is using Gradle).
There were no compilation error, the deploy-able WAR file also got generated using the repackage goal.

When trying to deploy the WAR file in my WildFly server, i get the following error related to Redis.
I do not have Redis server running in my machine (since i assume that an embedded Redis instance will be created as part of the application, even in an deployed WAR file)

File: EmbeddedRedisConfiguration.java

Caused by:



Environment: WildFly8.2 running in Domain Mode (3 nodes running in Full-HA profile) Application: Spring Boot + Spring Session + Maven

Question: Is this error because an embedded Redis instance cannot be created while the WAR file is deployed to a container ?
I haven't tried running this as executable WAR file yet.


Complete Error Stack:

 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The error message doesn't goive much detail. I would debug into Redis code to check
 
Senthil B Kumar
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The source code of the project is available @ https://github.com/spring-projects/spring-session/archive/1.0.0.RELEASE.zip

I haven't set-up Redis or written any detailed code for Redis. As per Spring Boot+Spring Session, an embedded Redis instance should have been started to which the Spring Session should have been persisted. but when i am running, the embedded Redis instance is not getting created.
 
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic