org.apache.tomcat.util.digester.Digester.startElement Begin Event threw exception Java.lang.ClassNotFoundException:com.radiadesign.catalina.session.RedisSessionHandlerValve at Java.net.URLClassLoader.findClass (URLClassLoader.java:58w) 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:116) at Org.apache.tomcat.util.digester.Digester.startElement (Digester.java:1236) 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:30W) 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:1504) at Org.apache.catalina.startup.ContextConfig.processContextConfig (Contextconfig.java:537) at Org.apache.catalina.startup.ContextConfig.contextConfig (Contextconfig.java:475) at Org.apache.catalina.startup.ContextConfig.init (Contextconfig.java:738) at Org.apache.catalina.startup.ContextConfig.lifecycleEvent (Contextconfig.java:310) at Org.apache.catalina.util.LifecycleBase.fireLifecycleEvent (Lifecyclebase.java:94) at Org.apache.catalina.util.LifecycleBase.setStateInternal (Lifecyclebase.java:395) at Org.apache.catalina.util.LifecycleBase.init (Lifecyclebase.java:108) at Org.apache.catalina.util.LifecycleBase.start (Lifecyclebase.java:140) at Org.apache.catalina.core.ContainerBase.addChildInternal (Containerbase.java:752) at Org.apache.catalina.core.ContainerBase.addChild (Containerbase.java:728) at Org.apache.catalina.core.StandardHost.addChild (Standardhost.java:734) at Org.apache.catalina.startup.HostConfig.deployDirectory (Hostconfig.java:1144) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (Hostconfig.java:1878) at Java.util.concurrent.executors$runnableadapter.call (Executors.java:511) at Java.util.concurrent.FutureTask.run (Futuretask.java:266) at Java.util.concurrent.ThreadPoolExecutor.runWorker (Threadpoolexecutor.java:1149) at Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:624) at Java.lang.Thread.run (Thread.java:748)
View Code
View Tomcat under Context.xml files
<?xml version= "1.0" encoding= "UTF-8"?><!--Licensed to the Apache software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with ThisWork foradditional information regarding copyright ownership. The ASF licenses ThisFile to under the Apache License, Version 2.0( the"License"); If you don't use Thisfile except in compliance with the License. Obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0unless required by applicable law or agreed to writing, software distributed under the License are distributed on an"As is"BASIS, without warranties or CONDITIONS of any KIND, either express or implied. See the License forThe specific language governing permissions and limitations under the License.--><!--the contents of ThisFile would be loaded forEach Web application--><context> <!--Default set of monitored resources. If One of these changes, the--<!--Web application would be reloaded. -<WatchedResource>WEB-INF/web.xml</WatchedResource> <watchedresource>${catalina.base}/ Conf/web.xml</watchedresource> <!--Uncomment ThisTo disable session persistence across Tomcat restarts-<!--<manager pathname= ""/>-< Valve classname= "Com.radiadesign.catalina.session.RedisSessionHandlerValve"/> <manager classname= " Com.radiadesign.catalina.session.RedisSessionManager "Host= "localhost"Port= "6379"Database= "0"Maxinactiveinterval= "/></context>"View Code
Quench thirst, put
<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource> <valve classname= " Com.radiadesign.catalina.session.RedisSessionHandlerValve "/> <manager classname=" Com.radiadesign.catalina.session.RedisSessionManager " host=" localhost " port=" 6379 " Database= "0" maxinactiveinterval= "/>"
View Code
Comment out, it starts up normally. Deep-seated reasons to study later.
Java.lang.ClassNotFoundException:com.radiadesign.catalina.session.RedisSessionHandlerValve