问题描述
2014-10-1114:51:21org.apache.catalina.startup.HostConfigdeployDirectory信息:DeployingwebapplicationdirectoryROOT2014-10-1114:51:21org.apache.catalina.startup.HostConfigdeployDirectory信息:DeployingwebapplicationdirectorySSHTest12014-10-1114:51:22,426ERROR[org.apache.commons.digester.Digester]-ParseErroratline12column63:Attribute"cancellable"mustbedeclaredforelementtype"action".org.xml.sax.SAXParseException:Attribute"cancellable"mustbedeclaredforelementtype"action".atorg.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(UnknownSource)atorg.apache.xerces.util.ErrorHandlerWrapper.error(UnknownSource)atorg.apache.xerces.impl.XMLErrorReporter.reportError(UnknownSource)atorg.apache.xerces.impl.XMLErrorReporter.reportError(UnknownSource)atorg.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(UnknownSource)atorg.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(UnknownSource)atorg.apache.xerces.impl.dtd.XMLDTDValidator.startElement(UnknownSource)atorg.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(UnknownSource)atorg.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(UnknownSource)atorg.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(UnknownSource)atorg.apache.xerces.parsers.XML11Configuration.parse(UnknownSource)atorg.apache.xerces.parsers.XML11Configuration.parse(UnknownSource)atorg.apache.xerces.parsers.XMLParser.parse(UnknownSource)atorg.apache.xerces.parsers.AbstractSAXParser.parse(UnknownSource)atorg.apache.commons.digester.Digester.parse(Digester.java:1572)atorg.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:738)atorg.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)atorg.apache.struts.action.ActionServlet.init(ActionServlet.java:333)atjavax.servlet.GenericServlet.init(GenericServlet.java:212)atorg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)atorg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)atorg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4496)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:785)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:519)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:581)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2014-10-1114:51:22org.apache.catalina.core.ApplicationContextlog信息:InitializingWebApplicationContextforStrutsActionServlet'action',module''2014-10-1114:51:24,473ERROR[org.springframework.web.struts.ContextLoaderPlugIn]-Contextinitializationfailedorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'org.springframework.transaction.interceptor.TransactionInterceptor#0':Cannotresolvereferencetobean'transactionManager'whilesettingbeanproperty'transactionManager';nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'transactionManager'definedinServletContextresource[/WEB-INF/applicationContext.xml]:Cannotresolvereferencetobean'sessionFactory'whilesettingbeanproperty'sessionFactory';nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'sessionFactory'definedinServletContextresource[/WEB-INF/applicationContext.xml]:Invocationofinitmethodfailed;nestedexceptionisjava.lang.NoSuchMethodError:org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vatorg.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)atorg.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)atjava.security.AccessController.doPrivileged(NativeMethod)
解决方案
解决方案二:
applicationContext.xml的代码贴出来看看
解决方案三:
必须配置相应的action
解决方案四:
cancellable这个应该是你在struts文件里配置的action的name吧,但是你可能没在spring里面配置这个<beanid="cancellable"class="XXX"/>
解决方案五:
三分毒三分毒
解决方案六:
引用2楼dufantongkuai的回复:
必须配置相应的action
第三方了卡机的路口附近