-
Notifications
You must be signed in to change notification settings - Fork 32
Description
I'm really sorry if this is my own issue because I am an amateur but I've been trying for about 3 days now and I haven't found anything helpful anywhere.
No matter how I set the provider to redis
either with OPTS as it is in the documentation:
-javaagent:/usr/local/tomcat/session-agent/session-agent.jar=provider=redis
or in web.xml:
<context-param>
<param-name>com.amadeus.session.repository.factory</param-name>
<param-value>redis</param-value>
</context-param>I get the error that it can't instantiate redis:
Caused by: java.lang.IllegalArgumentException: Unable to load or instantiate SessionRepositoryFactory. Id=redis, Implementation=redis
at com.amadeus.session.servlet.SessionHelpers.repository(SessionHelpers.java:342)
at com.amadeus.session.servlet.SessionHelpers.initSessionManagement(SessionHelpers.java:190)
at com.amadeus.session.servlet.SessionHelpers.initSessionManagement(SessionHelpers.java:149)
Caused by: java.lang.ClassNotFoundException: redis
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1951)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1794)
at com.amadeus.session.servlet.SessionHelpers.newInstance(SessionHelpers.java:379)
at com.amadeus.session.servlet.SessionHelpers.repositoryOrDefault(SessionHelpers.java:363)
at com.amadeus.session.servlet.SessionHelpers.repository(SessionHelpers.java:340)
This happens in Tomcat 7,8,9 and 10
The .war is the Sample Application that Tomcat provides.
Without Session Repository it works fine, but I can't get it to work with Redis.
I've tried giving every possible parameter through -D option or through web.xml but nothing else happens.
I've also tried pre-built versions of session-agent and session-replacement (4.10 even going back to 2.0) but it's the same.