SSH整合报错,求大神指导!!

问题描述

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

第三方了卡机的路口附近

时间: 2024-09-11 14:32:26

SSH整合报错,求大神指导!!的相关文章

java-ofbiz首次导入eclipse文件报错,求大神指导下

问题描述 ofbiz首次导入eclipse文件报错,求大神指导下 都是 .getServletContext().getContextPath()); 这一句报错,是什么原因呢?如何解决? 解决方案 这个是JDK版本问题,不用管. 解决方案二: http://blog.csdn.net/jeff06143132/article/details/18814989 这里有介绍 groovy的问题

android游戏-Android运行报错 求大神指导

问题描述 Android运行报错 求大神指导 12-01 20:49:04.872: D/AndroidRuntime(2097): Shutting down VM 12-01 20:49:04.872: W/dalvikvm(2097): threadid=1: thread exiting with uncaught exception (group=0xb4addb90) 12-01 20:49:04.922: E/AndroidRuntime(2097): FATAL EXCEPTIO

spring 配置dubbo报错 求大神指导

问题描述 Multiple annotations found at this line:- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:module'.- schema_reference.4: Failed to read schema document 'http://code.alibabatech.com/schem

Genymoation安装之后打开虚拟机报错求大神指点

问题描述 Genymoation安装之后打开虚拟机报错求大神指点 错误是这样的 求大神指点,谢谢 解决方案 多启动几次,如果还不行,就启动virtualbox,在里面看看对应的虚拟机是否正常可以启动,或者先关掉它

大数据-orcale大量数据分组查询报错求大神指点

问题描述 orcale大量数据分组查询报错求大神指点 对一个表数据进行分组查询,但是数据量太大了,当时是3000w条,跑着就报错了,数据库内部错误,也不是很懂.想请教下group by的时候是否数据量太多会报错,如果是它可以承受多大的数据量分组查询. 解决方案 肯定会报错,数据量大就会请求超时 解决方案二: 建议使用索引,给需要分组的字段加索引 解决方案三: 你可以试试根据你当前数据库的配置情况,进行分组查询的时候,使用多线程的方式进行查询 例如: select /*+ parallel(t,1

树形 递归-java 递归报错 求大神帮忙

问题描述 java 递归报错 求大神帮忙 private List<Post> getPostLower(List<Post> PostTops){ List<Post> postAll=new ArrayList<Post>(); // 上级 for(Post post:PostTops){ //查询到下级 List<Post> posts=basService.queryPostByParentId(post.getPostId()); //

mac 下编译 ffmpeg的 libaacplus-2.0.2 总是报错求大神解决办法,谁能教我再mac下编译ffmpeg也行

问题描述 mac 下编译 ffmpeg的 libaacplus-2.0.2 总是报错求大神解决办法,谁能教我再mac下编译ffmpeg也行 make[2]: Nothing to be done for `all'. Making all in frontend gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../src -g -O2 -c -o main.o main.c main.c:89:46: warning: data argument not

用的spring mvc 添加了分页 功能后一直报错 求大神解决

问题描述 用的spring mvc 添加了分页 功能后一直报错 求大神解决 org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerExceptionResolver]Resolving exception from handler [com.app.controller.ManageController@185c0de]: java.lang.NumberFormatException: For input s

cocos2d x-在Xcode中安装cocos2d-x老报错求大神指教

问题描述 在Xcode中安装cocos2d-x老报错求大神指教 taorenwangtekiMacBook-Pro:~ taorenwang$ cd /Users/taorenwang/Desktop taorenwangtekiMacBook-Pro:Desktop taorenwang$ cd cocos2d-2.1rc0-x-2.1.3/ taorenwangtekiMacBook-Pro:cocos2d-2.1rc0-x-2.1.3 taorenwang$ ./install-templ

ssh整合jar包 求大神支招

问题描述 ssh整合jar包 求大神支招 想知道 asm-attrs.jar 和 asm.jar 这两个jar包的区别,同时使用时会出现异常