jcoleman / tomcat-redis-session-manager

Redis-backed non-sticky session store for Apache Tomcat
MIT License
1.79k stars 1.12k forks source link

java.lang.ClassNotFoundException: com.radiadesign.catalina.session.RedisSessionHandlerValve #101

Open vijaygoturi opened 6 years ago

vijaygoturi commented 6 years ago

I am getting this error? Can anybody support?

jedis-2.5.2.jar tomcat-redis-session-manager-2.0.0.jar commons-pool2-2.4.2.jar

jcoleman commented 6 years ago

Did you upgrade versions? You have the wrong class name; see the instructions here: https://github.com/jcoleman/tomcat-redis-session-manager#usage

vijaygoturi commented 6 years ago

I am not able to find the related jar. The jar downloaded map to radiadesign class.

upgrade versions?

ANy help in this regard.. i am stuck .

vijaygoturi commented 6 years ago

I have added the jar file created by gradle..and still facing the same error. class not found.

Working with Java 8. Is it because of the java version? Should i downgrade to 7?

SEVERE: Begin event threw exception java.lang.ClassNotFoundException: com.orangefunction.tomcat.redissessions.RedisSessionHandlerValve at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:144) at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1303) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1576) at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:651) at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:594) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:849) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:399) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:388) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:103)

vijaygoturi commented 6 years ago

We have a jsp app, that uses j_security_check. We see the sessions in redis but the application errors out saying that login took a long time.

I have java 8, is that the problem?

NameYoung commented 6 years ago

try this

  <Valve className="com.bluejeans.tomcat.redissessions.RedisSessionHandlerValve"/>
  <Manager className="com.bluejeans.tomcat.redissessions.RedisSessionManager"/>
jomcyjohny commented 5 years ago

@vijaygoturi I am facing the same error, Can you please provide some information, if you have any idea regarding this question now. I am using a file store to persist my session data however I want to use Redis store so I tried to configure my context.xml and I end up with this error.