ognl.MethodFailedException “setResources” failed for object WebappClassLoader

大家有没有出现下面问题,tomcat启动的时候正常 但是运行一段时间后就报以下异常

WARNING: Error setting expression 'class['classLoader']['resources']' with value '[Ljava.lang.String;@75c5f1fb'
ognl.MethodFailedException: Method "setResources" failed for object WebappClassLoader

context:

delegate: false

repositories:

/WEB-INF/classes/

----------> Parent Classloader:

org.apache.catalina.loader.StandardClassLoader@67e8a1f6

[java.lang.NoSuchMethodException: org.apache.catalina.loader.WebappClassLoader.setResources([Ljava.lang.String;)]
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1305)
at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1494)
at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)
at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)
at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.ASTChain.setValueBody(ASTChain.java:227)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.Ognl.setValue(Ognl.java:737)
at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:234)
at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:183)
at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:170)
at com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:148)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:318)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:231)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:161)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:563)
at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

lfei1789
lfei1789 服务器linux,tomcat+apache;网站之前一直正常,今天出现的这种问题,把apache和tomcat重启之后可以正常,但是一段时间之后就报错不行了,有谁解决的没?
5 年多之前 回复

13个回答

应该跟上周四报出来的struts漏洞有关,升级到最新的struts版本试试

我们也出现了,会不会是在攻击8080端口

wingerliwei
wingerliwei 我们屏蔽8080了,没再出现问题
5 年多之前 回复
kissgxd
kissgxd 更换最新版Struts( 24 April 2014 - Struts 2.3.16.2) 我更新完1小时左右了 还没报错
5 年多之前 回复
zhengluu
zhengluu 你们怎么解决的?
5 年多之前 回复

我也出现同样的问题,你们解决了吗

kissgxd
kissgxd 更换最新版Struts( 24 April 2014 - Struts 2.3.16.2) 我更新完1小时左右了 还没报错
5 年多之前 回复

:oops: :oops: 我这边是昨天出现这样的情况,你们都是什么样的情况。什么服务器,环境是啥样的?

kissgxd
kissgxd 更换最新版Struts( 24 April 2014 - Struts 2.3.16.2) 我更新完1小时左右了 还没报错
5 年多之前 回复

我们是可以外网直接访问,之前没事,从上周五下午开始的,每隔一段时间出现一次

服务器linux,tomcat+apache;网站之前一直正常,今天出现的这种问题,把apache和tomcat重启之后可以正常,但是一段时间之后就报错不行了,有谁解决的没?

是SSH吗?struts版本是什么?我觉得struts 漏洞的可能性比较大。

kissgxd
kissgxd 更换最新版Struts( 24 April 2014 - Struts 2.3.16.2) 我更新完1小时左右了 还没报错
5 年多之前 回复
kissgxd
kissgxd 我觉得也是有漏洞了,搜了一下 貌似都是周日出的问题
5 年多之前 回复
zhengluu
zhengluu @geningaixin 你们版本是多少?
5 年多之前 回复
gening4014
gening4014 我一天都重启了3遍服务器了!相当无语。感觉应该是漏洞,个别黑客正在尝试攻击吧。不知什么时候能出大神出来解决这个问题。
5 年多之前 回复
zhengluu
zhengluu struts2-core-2.3.15.1
5 年多之前 回复
lfei1789
lfei1789 框架的确用的是ssh,感觉可能是出现漏洞了
5 年多之前 回复

大家都是外网可访问的吗,我们同样的系统在内网没有报这个错的

gening4014
gening4014 我这边是外网可访问的。
5 年多之前 回复

项目一直都是正常运行的,就今天出现这种问题!一直在试着解决,更换版本也搞不定!如果重启tomcat就可以正常运行一会,但是十几分钟之后就会继续出现这种错误

kissgxd
kissgxd 更换最新版Struts( 24 April 2014 - Struts 2.3.16.2) 我更新完1小时左右了 还没报错
5 年多之前 回复

有哪位解决了吗?

kissgxd
kissgxd 更换最新版Struts( 24 April 2014 - Struts 2.3.16.2) 我更新完1小时左右了 还没报错
5 年多之前 回复
zhengluu
zhengluu http://tech.techweb.com.cn/thread-630803-1-1.html大家看看
5 年多之前 回复
kissgxd
kissgxd 没那 不是大牛 一直在等消息
5 年多之前 回复
共13条数据 1 尾页
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
ognl.MethodFailedException: Method "setId" failed for object
15:28:30,890 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:60 - Error setting expression 'id' with value '[Ljava.lang.String;@1be20c'rnognl.MethodFailedException: Method "setId" failed for object com.zxcs.action.user.DeleteAllUsersAction@16c1227 [java.lang.NoSuchMethodException: com.zxcs.action.user.DeleteAllUsersAction.setId([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1285)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1474)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2245)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:77)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2245)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:127)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)rn at ognl.SimpleNode.setValue(SimpleNode.java:301)rn at ognl.Ognl.setValue(Ognl.java:737)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:209)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:173)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:160)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:151)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:288)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:199)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.NoSuchMethodException: com.zxcs.action.user.DeleteAllUsersAction.setId([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1226)rn ... 65 morern/-- Encapsulated exception ------------\rnjava.lang.NoSuchMethodException: com.zxcs.action.user.DeleteAllUsersAction.setId([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1226)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1474)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2245)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:77)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2245)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:127)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)rn at ognl.SimpleNode.setValue(SimpleNode.java:301)rn at ognl.Ognl.setValue(Ognl.java:737)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:209)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:173)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:160)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:151)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:288)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:199)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at rn
ognl.MethodFailedException: Method "setEndtime" failed for object
ognl.MethodFailedException: Method "setEndtime" failed for object com.piptrade.action.tradetools.eCalerddarAction@17db177 [java.lang.NoSuchMethodException: setEndtime([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:823)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:75)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:131)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:50)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:101)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.Ognl.setValue(Ognl.java:476)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:273)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.piptrade.card.base.CharaterFilter.intercept(CharaterFilter.java:56)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)rn at com.piptrade.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:182)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:595)rn/-- Encapsulated exception ------------\rnjava.lang.NoSuchMethodException: setEndtime([Ljava.lang.String;)rn
[ognl.MethodFailedException: Method "userlogin" failed for object XXXLoginAction
一个SSH项目,点击页面的submit之后,就报错了,如上所示,rn看到提示有ognl的,我将页面上的ognl表达式写的标签换成普通的标签代替,还是这个错误,rn百度也有说spring jar冲突,我有仔细检查 lib下的文件夹,spring-corejar包只有一个rn不知道是不是还有其它可能,请大侠帮忙了。rn项目的控制台错误信息如下[code=java]ERROR DefaultDispatcherErrorHandler Exception occurred during processing request: [ognl.MethodFailedException: Method "userlogin" failed for object com.haigang.web.action.LoginAction@70493c6 [java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.isUserLevelMethod(Ljava/lang/reflect/Method;)Z], Method "userlogin" failed for object com.haigang.web.action.LoginAction@70493c6]rn[/code]rnrn前台的错误如下rn[code=java]HTTP Status 500 - Method "userlogin" failed for object com.haigang.web.action.LoginAction@70493c6rnrntype Exception report[/code]rn500错误,在我的理解中,一直都是页面有语法错误之类的,可是不应该的,这个项目在另一个人的电脑上是可以运行的。页面应该不会有问题
ognl.MethodFailedException: Method "setCreator" failed for object com.entity.Cla
2011-11-05 10:48:17,684 WARN [com.opensymphony.xwork2.ognl.OgnlValueStack] - Error setting expression 'claimVoucher.creator' with value '[Ljava.lang.String;@1e0a562'rnognl.MethodFailedException: Method "setCreator" failed for object com.entity.ClaimVoucher@bbaf09 [java.lang.NoSuchMethodException: com.entity.ClaimVoucher.setCreator([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1265)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1454)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:127)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)rn at ognl.SimpleNode.setValue(SimpleNode.java:301)rn at ognl.ASTChain.setValueBody(ASTChain.java:227)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)rn at ognl.SimpleNode.setValue(SimpleNode.java:301)rn at ognl.Ognl.setValue(Ognl.java:737)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:198)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:161)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:149)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:276)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: java.lang.NoSuchMethodException: com.entity.ClaimVoucher.setCreator([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1206)rn ... 73 morern/-- Encapsulated exception ------------\
ognl.MethodFailedException
NULL 博文链接:https://sxz20041919.iteye.com/blog/861075
Struts2 ognl.MethodFailedException:
我在action中定义了一个id 属性,类型是int的,当客户端提交过来就会抛一个这样的异常不过,不影响程序的运行,不知道是什么原因?rn请大家帮我分析一下这个异常:rnrnognl.MethodFailedException: Method "setId" failed for object com.provence.zbtb.web.enterprise.EnterpriseListAction@1f99d54 [java.lang.NoSuchMethodException: setId([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:823)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:75)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:131)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:50)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:101)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.Ognl.setValue(Ognl.java:476)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:273)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rn/-- Encapsulated exception ------------\rnjava.lang.NoSuchMethodException: setId([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:810)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:75)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:131)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:50)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:101)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.Ognl.setValue(Ognl.java:476)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:273)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rn\--------------------------------------/rnexpr: id val: [Ljava.lang.String;@c8148f context: ognl.OgnlContext@a534ca73 root:[com.provence.zbtb.web.enterprise.EnterpriseListAction@1f99d54, com.opensymphony.xwork2.DefaultTextProvider@1bdb8af] value: [Ljava.lang.String;@c8148frnognl.MethodFailedException: Method "setId" failed for object com.provence.zbtb.web.enterprise.EnterpriseListAction@1f99d54 [java.lang.NoSuchMethodException: setId([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:823)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:75)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:131)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:50)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:101)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.Ognl.setValue(Ognl.java:476)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:273)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rn/-- Encapsulated exception ------------\rnjava.lang.NoSuchMethodException: setId([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:810)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:75)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:131)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:50)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:101)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.Ognl.setValue(Ognl.java:476)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:273)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rn\--------------------------------------/rnexpr: id val: [Ljava.lang.String;@c8148f context: ognl.OgnlContext@a534ca73 root:[com.provence.zbtb.web.enterprise.EnterpriseListAction@1f99d54, com.opensymphony.xwork2.DefaultTextProvider@1bdb8af] value: [Ljava.lang.String;@c8148frnn[b]问题补充:[/b]npan_java 大哥,java.lang.NoSuchMethodException: setId([Ljava.lang.String;) 这个方法当然没有了 因为我的IdL类型是int的呀rnrnsetId(java.lang.int)这个方法当然是有的!rnrn不过还是感谢pan_java大哥了
关于 Method '~' of Object '~' failed
在发布 ActiveX DLL 时rn 出现错误rn Project failed to built!rn Method '~' of Object '~' failedrn请问问题出在那?rn谢谢
Method '~' of object '~' failed问题
服务器上asp页面调用dll模式。rn其中dll里面有个功能是利用xmlhttp.dll系统组件获取页面信息rn偶尔出现如下错误:rnMethod '~' of object '~' failedrn对象名和方法名都不确定。但是知道是在创建该系统组件,利用open方法获取页面的时候出错提示。rnrn我做了一个exe调用的测试例程。分别验证两种模式:1、直接exe中利用xmlhttp对象rn2、用exe调用上面提到的dll获取页面,都正常。rnrn因此怀疑两个因素:1、可能是系统组件本身的问题。2、iis的问题(这种可能性比较大)。rnrn请帮忙定位一下并指出解决办法。
!!!!!!!!------>>>Method '_Default 'of object 'Sheets' is failed
当我运行下列程序时rnset objSheet=objBook.sheets(1)rn出现以上错误。rn请问什麽原因?
ognl.MethodFailedException:求大神解决
报的错误信息:rnognl.MethodFailedException: Method "setImgs" failed for object com.slspmall.action.GoodAction@608f91 [java.lang.NoSuchMethodException: com.slspmall.action.GoodAction$$EnhancerByCGLIB$$5c208e88.setImgs([Ljava.lang.String;)]rnrn页面rnrnrnrn Action中rn public File getImgs() rn return imgs;rn rnrn public void setImgs(File imgs) rn this.imgs = imgs;rn rnrnrn求大神解决
Error loading WebappClassLoader错误?
这个问题我查了很久,看很多网友也有这个问题,也都解决了?我按照他们说的一样把什么包都添加进去,结果还是一样?rn2011-12-9 11:29:46 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jdk1.6.0_24\jre\bin;D:\Program Files\Tomcat 6.0\binrn2011-12-9 11:29:46 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2011-12-9 11:29:46 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1718 msrn2011-12-9 11:29:46 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2011-12-9 11:29:46 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.10rn2011-12-9 11:29:47 org.apache.catalina.loader.WebappClassLoader validateJarFilern信息: validateJarFile(D:\Program Files\Tomcat 6.0\webapps\booknet\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classrn2011-12-9 11:29:48 org.apache.catalina.core.ApplicationContext logrn信息: Marking servlet ServletConfigurator as unavailablern2011-12-9 11:29:48 org.apache.catalina.core.ApplicationContext logrn严重: Error loading WebappClassLoaderrn delegate: falsern repositories:rn /WEB-INF/classes/rn----------> Parent Classloader:rnorg.apache.catalina.loader.StandardClassLoader@d1e604rn org.logicalcobwebs.proxool.configuration.ServletConfiguratorrnjava.lang.ClassNotFoundException: org.logicalcobwebs.proxool.configuration.ServletConfiguratorrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2011-12-9 11:29:48 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /net threw load() exceptionrnjava.lang.ClassNotFoundException: org.logicalcobwebs.proxool.configuration.ServletConfiguratorrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn我在tomcat的lib中添加了status.jar和spring.jar等相关联的包,也在我做的项目的WIN-INF\lib里也添加了对应的包。问题还是没解决?
Error loading WebappClassLoader
严重: Error loading WebappClassLoaderrn delegate: falsern repositories:rn /WEB-INF/classes/rn----------> Parent Classloader:rnorg.apache.catalina.loader.StandardClassLoader@45378frn com.ycf.servlet.MainServletrnjava.lang.ClassNotFoundException: com.ycf.servlet.MainServletrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)rn at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)rn at java.lang.Thread.run(Thread.java:619)rn2008-7-4 22:24:18 org.apache.catalina.core.StandardWrapperValve invokern严重: Allocate exception for servlet MainServletrnjava.lang.ClassNotFoundException: com.ycf.servlet.MainServletrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)rn at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)rn at java.lang.Thread.run(Thread.java:619)rn帮忙看下错误!!!!!rn
webappclassloader出现严重问题
最近myeclipse一直出错,一旦项目包含java文件,就报错。rnrn下面是提示错误信息:rnrnrn信息: Deploying web application directory 4.06rn2012-1-29 9:49:43 org.apache.tomcat.util.modeler.Registry registerComponentrn严重: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/4.06,J2EEApplication=none,J2EEServer=nonern2012-1-29 9:49:43 org.apache.catalina.startup.HostConfig deployDirectoryrn严重: Error deploying web application directory 4.06rnjava.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.lyq.RegServlet)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:108)rn at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:58)rn at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297)rn at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1078)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4612)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn
请教 : Error loading WebappClassLoader???
下午在一个程序中加入Struts时出现如下错误,Struts的包在开始的时候已经导入进去了,但为什么还是java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet这个错误呢???请大家帮忙解答下,刚才百度了还没度出来。rnrn信息: Marking servlet action as unavailablern2008-12-3 16:56:59 org.apache.catalina.core.ApplicationContext logrn严重: Error loading WebappClassLoaderrn delegate: falsern repositories:rn /WEB-INF/classes/rn----------> Parent Classloader:rnorg.apache.catalina.loader.StandardClassLoader@3b1d04rn org.apache.struts.action.ActionServletrnjava.lang.ClassNotFoundException: org.apache.struts.action.ActionServletrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2008-12-3 16:56:59 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /HelloApp threw load() exceptionrnjava.lang.ClassNotFoundException: org.apache.struts.action.ActionServletrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2008-12-3 16:57:00 org.apache.coyote.http11.Http11AprProtocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2008-12-3 16:57:00 org.apache.coyote.ajp.AjpAprProtocol startrn信息: Starting Coyote AJP/1.3 on ajp-8009rn2008-12-3 16:57:00 org.apache.catalina.startup.Catalina startrn信息: Server startup in 922 msrn2008-12-3 16:58:00 org.apache.catalina.startup.HostConfig checkResourcesrn信息: Reloading context [/StrutsHelloApp]rn
严重: Error loading WebappClassLoader
用的struts1.3rn严重: Error loading WebappClassLoaderrn delegate: falsern repositories:rn /WEB-INF/classes/rn----------> Parent Classloader:rnorg.apache.catalina.loader.StandardClassLoader@66e64686rn org.apache.struts.action.ActionServletrnjava.lang.ClassNotFoundException: org.apache.struts.action.ActionServletrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)[img=https://img-bbs.csdn.net/upload/201409/23/1411435488_873000.jpg][/img]
如果用自己定制的WebAppClassLoader来取代tomcat 默认的 WebAppClassLoader?
如果用自己定制的WebAppClassLoader来取代tomcat 默认的 WebAppClassLoader? 只需要extends WebappClassLoader类吗? 还有,怎么在server.xml把自己定制的WebAppClassLoader指定呢?rn apach 网站的文档好象说得不兴趣..如下:rnrn LoaderInterceptor11rnType: ConfigurationrnrnDescriptionrnThis module constructs and sets the classloader for each context. It supports the Servlet 2.2 spec by including WEB-INF/classes and the Jars in WEB-INF/lib in the classloader. The available attributes allow control over the context classloader's parent. With the default attributes, "trusted" contexts get the Server Classloader as their parent and "untrusted" contexts get the Apps Classloader as their parent.rnrn
Problem with WebappClassLoader in background thread
NULL 博文链接:https://pingfang.iteye.com/blog/1178075
Tomcat源码学习--WebAppClassLoader类加载机制
上一篇博客JVM-类加载机制 中我们已经对JVM的类加载机制有所了解, 这篇博客我们了解一下Tomcat的类加载机制。Tomcat的类加载器可以分为两部分,第一个是Tomcat自身所使用的类加载器,会加载jre的lib包及tomcat的lib包的类,遵循类加载的双亲委派机制;第二个是每个Web应用程序用的,每个web应用程序都有自己专用的WebappClassLoader,优先加载/web-inf
求助 Method "save" failed for object cn.muke.ssh.action.ProductAction@51850ee2
在慕课网自学ssh框架遇到如下问题,错误如下rn Type Exception Reportrn[color=#FF0000]Message Method "save" failed for object cn.muke.ssh.action.ProductAction@51850ee2[/color]rnDescription The server encountered an unexpected condition that prevented it from fulfilling the request.rnExceptionrn[color=#FF0000]ognl.MethodFailedException: Method "save" failed for object cn.muke.ssh.action.ProductAction@51850ee2 [java.lang.NoSuchMethodError: org.hibernate.Session.getFlushMode()Lorg/hibernate/FlushMode;][/color]rn ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1305)rn ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)rn com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)rn[b]我的工程文件如下[/b]rn[b]product.jsp[/b]rn[code=java]rn<%@ page contentType="text/html;charset=UTF-8" language="java" %>rn<%@ taglib uri="/struts-tags" prefix="s" %>rnrnrn Insert title herernrnrn 保存商品的页面rnrn rn rn 商品名称rn rn rn rn rn rn 商品价格rn rn rn rn rn rn rnrnrnrn[/code]rnspring-config.xmlrn[code=java]rn rnrn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn org.hibernate.dialect.MySQL57Dialectrn truern truern updatern rn rn rn rn rn cn/muke/ssh/domain/Product.hbm.xmlrn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn[/code]rn[b]productAction[/b]rn[code=java]rnpackage cn.muke.ssh.action;rnrnimport cn.muke.ssh.domain.Product;rnimport cn.muke.ssh.service.ProductService;rnimport com.opensymphony.xwork2.ActionSupport;rnimport com.opensymphony.xwork2.ModelDriven;rnrn/**rn * 商品管理的Actionrn */rnpublic class ProductAction extends ActionSupport implements ModelDriven rn //模型驱动使用的类rn private Product product=new Product();rn @Overridern public Product getModel() rn return product;rn rn //Struts和Spring整合过程中按名称自动注入的业务类rn private ProductService productService;rnrn public void setProductService(ProductService productService) rn this.productService = productService;rn rn /**rn * 保存商品的执行方法rn */rn public String save()rn rn System.out.println("Action方法被执行了...");rn System.out.println(product.getPrice());rn System.out.println(product.getPname());rn productService.save(product);rn return NONE;rn rnrn[/code]rn[b]struts.xml[/b]rn[code=java]rn rnrnrnrnrn rn rn rn rnrn[/code]rn在搜索引擎上苦苦寻觅解决办法而不得,恳请各位指教。[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/8.gif][/img]
insert of OLE object failed,license file required
我在2000下调一个mci32.ocx,每次加这个控件时,PB就报这个错,怎么回事,以前能用的??rnhelprnthanksrn:)
Struts2.2.3.1,Method "setStudent" failed for object com.city.action.UpdateAction
在自学struts2 就自己写了个小的管理程序rn在对信息进行修改的时候出错了,请大家帮帮忙rnstruts.xmlrn[code=XML]rnrnrnrnrnrn rn rnrn rn rn rn rn /index.jsprn /update.jsprn /add.jsprn rn backrn /rn rn rn rn rn /index.jsprn rn rn rn rn backrn /rn rn rn rn rn backrn /rn rn rn /error.jsprn rn rn rnrn rnrn rnrnrnrn[/code]rnrnStudentActionrn[code=Java]package com.city.action;rnrnimport java.util.ArrayList;rnimport java.util.List;rnimport java.util.Map;rnrnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnimport javax.servlet.http.HttpSession;rnrnimport org.apache.struts2.ServletActionContext;rnimport org.apache.struts2.interceptor.RequestAware;rnimport org.apache.struts2.interceptor.ServletRequestAware;rnrnimport com.opensymphony.xwork2.Action;rnimport com.opensymphony.xwork2.ActionSupport;rnimport com.city.model.*;rnimport com.city.server.StudentServer;rnrnrnpublic class StudentAction extends ActionSupportrn rn List list = new ArrayList();rn HttpServletRequest request=ServletActionContext.getRequest();rn private String id;rn private Student student = new Student();rn rn public HttpServletRequest getRequest() rn return request;rn rnrnrnrn public void setRequest(HttpServletRequest request) rn this.request = request;rn rnrnrnrn public Student getStudent() rn return student;rn rnrnrnrn public void setStudent(Student student) rn this.student = student;rn rnrnrnrn public List getList() rn return list;rn rnrnrnrn public void setList(List list) rn this.list = list;rn rnrn// public void setServletRequest(HttpServletRequest request)rn// this.request = request;rn// rnrnrn public String execute()rn list = new StudentServer().checkStuList();rn return SUCCESS;rn rn rn public String gotoUpdate()rn this.student = new StudentServer().checkStuById(Integer.parseInt(id));rn return "update";rn rn rn public String gotoAdd() rn return "add";rn rnrnrn public String deleteStuById()rn new StudentServer().deleteStu(Integer.parseInt(id));rn return "goback";rn rn rnrn public void setId(String id) rn this.id = id;rn rnrnrnrn public String getId() rn return id;rn rnrnrnrnrnrnrnrnrn[/code]rnrnUpdateActionrn[code=Java]package com.city.action;rnrnimport com.city.model.Student;rnimport com.city.server.StudentServer;rnimport com.opensymphony.xwork2.ActionSupport;rnrnpublic class UpdateAction extends ActionSupport rn Student student = new Student();rnrn public Student getStudent() rn return student;rn rnrn public void setStudent(Student student) rn this.student = student;rn rn rn public String updateSuccess()rn new StudentServer().updateStu(student);rn return "goback";rn rn rn public String updateCancle()rn rn return "goback";rn rn rn rn rn rn rnrn[/code]rnrnupdate.jsprn[code=HTML]<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>rn<%rnString path = request.getContextPath();rnString basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rn%>rn<%@taglib uri="/struts-tags" prefix="s" %>rnrnrn rn rn rn My JSP 'update.jsp' starting pagern rn rn rn rn rn rn rnrn rn rn rn This is my update page. rn rn rn rn rn 姓名:rn rn rn rn rn " >rn rn rn rn rn 学号:rn rn rn " >rn rn rn rn rn 年龄:rn rn rn " >rn rn rn rn rn rn rn rn rn rn rn rn rn rn 返回rn rn rn rn rn rnrn[/code]rnrn报错信息:rnrn警告: Error setting expression 'student' with value '[Ljava.lang.String;@1d5c645'rnognl.MethodFailedException: Method "setStudent" failed for object com.city.action.UpdateAction@1f15067 [java.lang.NoSuchMethodException: com.city.action.UpdateAction.setStudent([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1285)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1474)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2245)rnjava.lang.NoSuchMethodException: com.city.action.UpdateAction.setStudent([Ljava.lang.String;)rnrn。。。。rn我在网上查了下,有的人说是页面有重复信息,是不是我在StudentAction里面定义了student对象 在UpdateAction里面也定义了student对象 然后都放在了udapte.jsp页面造成了冲突,但是如果这样写的话,那我UpdateAction里面怎样获得update.jsp提交的值呢???求帮助rn
method open of object _recordset failed 错误
[code=VB]Private Sub Form_Activate()rn Dim iBookMark As Integerrn Dim strSQL As Stringrn rn strSQL = "select itemmstr.cust_code, itemmstr.MRP_FG, itemmstr.ITEM_NO, itemmstr.oms_itemno, itemmstr.ITEM_DESCE, itemmstr.material_type, itemmstr.i_date, itemmstr.factory_code, itemmstr.Mrp_MG, itemmstr.Mrp_MC, itemmstr.Mrp_ProcType, itemmstr.Mrp_SP, itemmstr.mrp_prodsch,itemmstr.Mrp_BF, itemmstr.Mrp_PG, itemmstr.Mrp_GIS, itemmstr.Mrp_GRS, itemmstr.Mrp_LS, itemmstr.Mrp_iUser, itemmstr.Mrp_iDate, itemmstr.Mrp_ApprUser, itemmstr.Mrp_ApprDate, itemmstr.Mrp_Prod " & _rn " FROM itemmstr " & _rn " WHERE ((itemmstr.appr_status)='A' and itemmstr.mrp_fg = " & False & " and itemmstr.factory_code = '" & strPFactoryCode & "') order by itemmstr.item_no,itemmstr.mrp_fg,itemmstr.factory_code "rn rn If rs.State <> adStateClosed Thenrn rs.Closern End Ifrn rn rs.Open strSQL, cn, adOpenStatic, adLockReadOnlyrn rn Set DataGrid1.DataSource = rs[/code]rnrn提示:rnmethod open of object _recordset failedrnrn错误代码为 :rn rs.Open strSQL, cn, adOpenStatic, adLockReadOnlyrnrn有了解的帮帮忙,谢谢!!rn
老问题:Method "setId" failed for object
我现在在维护一个项目。rnrn在新建的时候,由于页面id为空,所以编译器会提示这样的问题rnrnError setting expression 'entity.id' with value '[Ljava.lang.String;@179637a'rnognl.MethodFailedException: Method "setId" failed for object net.jqsoft.medicine.entity.SellLogOutListEntity@16b44ea [java.lang.NoSuchMethodException: net.jqsoft.medicine.entity.SellLogOutListEntity.setId([Ljava.lang.String;)]rnrn但是在修改的时候,都没有问题。rnrnrn它页面是这样写的:rnrnrn后台是这样定义的:rnprivate LogOutListEntity entity;rnrn这个问题网上也有许多解决办法,大概就是把id 设置成String,可现在的问题是,他们用的都是这种格式,我总不能再private String id。吧。各位有好的解决办法吗?rnrninput为空的话默认就是String类型的吧?
Method '~' of object '~' failed 这是啥问题?
我用ASP调用VB写的DLL将数据导出到Excel,但是总是报错:Method '~' of object '~' failed。rn
请教 Error loading WebappClassLoader问题
JDK1.4 JBOSS启动的时候出现如下错误 不知道什么愿意 请高手指点rnrnrn21:20:52,046 INFO [ContextLoader] Using context class [org.springframework.web.rncontext.support.XmlWebApplicationContext] for root WebApplicationContextrn21:20:52,046 INFO [ContextLoader] Root WebApplicationContext: initialization cornmpleted in 2515 msrn21:20:52,062 INFO [[/]] Marking servlet test as unavailablern21:20:52,062 ERROR [[/]] Error loading WebappClassLoaderrn delegate: falsern repositories:rn /WEB-INF/classes/rn----------> Parent Classloader:rnjava.net.FactoryURLClassLoader@14e40darn org.springframwork.web.servlet.DispatcherServletrnjava.lang.ClassNotFoundException: org.springframwork.web.servlet.DispatcherServlrnetrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoarnder.java:1332)
Error loading WebappClassLoader 。。java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
详细错误如下 rnrn2008-11-18 10:43:28 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/5.5.26rn2008-11-18 10:43:28 org.apache.catalina.core.StandardHost startrn信息: XML validation disabledrn[DevLoader] Starting DevLoaderrn[DevLoader] projectdir=/home/dan/workspace/BankServerrn[DevLoader] JSPCompiler Classpath = /home/dan/workspace/BankServer/WEB-INF/classes/:/home/dan/workspace/BankServer/WEB-INF/lib/bcmail-jdk15-137.jar:/home/dan/workspace/BankServer/WEB-INF/lib/bcprov-jdk15-137.jar:/home/dan/workspace/BankServer/WEB-INF/lib/mysql-connector-java-3.1.13-bin.jar:/usr/java/tomcat5.5/bin/bootstrap.jar:/usr/java/jdk1.6.0_10/lib/tools.jar:/usr/java/jdk1.6.0_10/jre/lib/ext/dnsns.jar:/usr/java/jdk1.6.0_10/jre/lib/ext/sunpkcs11.jar:/usr/java/jdk1.6.0_10/jre/lib/ext/sunjce_provider.jar:/usr/java/jdk1.6.0_10/jre/lib/ext/localedata.jar:rn2008-11-18 10:43:28 org.apache.catalina.core.ApplicationContext logrn信息: Marking servlet jsp as unavailablern2008-11-18 10:43:28 org.apache.catalina.core.ApplicationContext logrn严重: Error loading WebappClassLoaderrn delegate: falsern repositories:rn /WEB-INF/classes/rn----------> Parent Classloader:rnsun.misc.Launcher$AppClassLoader@601bb1rn org.apache.jasper.servlet.JspServletrnjava.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServletrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rn2008-11-18 10:43:28 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /BankServer threw load() exceptionrnjava.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServletrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rn2008-11-18 10:43:28 org.apache.commons.modeler.Registry registerComponentrn严重: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/BankServer,J2EEApplication=none,J2EEServer=nonern2008-11-18 10:43:28 org.apache.coyote.http11.Http11BaseProtocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2008-11-18 10:43:28 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2008-11-18 10:43:28 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/19 config=nullrn2008-11-18 10:43:28 org.apache.catalina.storeconfig.StoreLoader loadrn信息: Find registry server-registry.xml at classpath resourcern2008-11-18 10:43:28 org.apache.catalina.startup.Catalina startrn信息: Server startup in 792 msrnrnrnrnrnrnrnrn我想在eclipse 用devloader把我这Web程序里所需的库自动加载到tomcat去,然后就可以在发布Web时不用把所需库粘到tomcat下面。rn但是在启动tomcat的时候,就出现这种错误了,用了许久许多方法解决不了,希望大家帮帮忙。rn环境:FC7+eclipse3.3+Myeclipse6.0+tomcat5.5
Error loading WebappClassLoader delegate: false
INFO - Marking servlet ServletConfigurator as unavailablernERROR - Error loading WebappClassLoaderrn delegate: falsern repositories:rn /WEB-INF/classes/rn----------> Parent Classloader:rnorg.apache.catalina.loader.StandardClassLoader@adae91rn org.logicalcobwebs.proxool.configuration.ServletConfiguratorrnjava.lang.ClassNotFoundException: org.logicalcobwebs.proxool.configuration.ServletConfiguratorrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rnERROR - Servlet /net threw load() exceptionrnjava.lang.ClassNotFoundException: org.logicalcobwebs.proxool.configuration.ServletConfiguratorrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rn请问大家一下,这个问题怎么解决,一般什么情况下会出此错误
出现can not locate webappclassloader 错误
  就是在class.forName(driver)一句出现错误。can not locate webappclassLoader.java from project class/source path rn stop in method org.apache.catalina.loader.webappclassloader.loadClass()rnrn请问如何解决?
遇到了ognl.MethodFailedException这个问题怎么破
[code=java][/code]错误是这样的rn23:36:07,204 WARN OgnlValueStack:57 - Error setting expression 'kid' with value '[Ljava.lang.String;@18da687'rnognl.MethodFailedException: Method "setKid" failed for object com.XK.action.CourseSelectAction@1d97cc2 [java.lang.NoSuchMethodException: com.XK.action.CourseSelectAction.setKid([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1305)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1494)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:224)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:546)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:744)rnCaused by: java.lang.NoSuchMethodException: com.XK.action.CourseSelectAction.setKid([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1246)rn ... 68 morern/-- Encapsulated exception ------------\rnjava.lang.NoSuchMethodException: com.XK.action.CourseSelectAction.setKid([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1246)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1494)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:78)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:127)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)rn at ognl.SimpleNode.setValue(SimpleNode.java:301)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:546)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:744)rn\--------------------------------------/rn23:36:07,229 ERROR ParametersInterceptor:33 - Developer Notification (set struts.devMode to false to disable this message):rnUnexpected Exception caught setting 'kid' on 'class com.XK.action.CourseSelectAction: Error setting expression 'kid' with value '[Ljava.lang.String;@18da687'rnCheckcourse-------------0rn遇到了这个问题怎么破这只是其中的一部分rn
ognl.MethodFailedException这个错误不知道怎么解决
以下是报错信息rn[code=java]rn2015-1-4 13:32:56 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warnrn警告: Error setting expression 'classId' with value '[Ljava.lang.String;@229220cb'rnognl.MethodFailedException: Method "setClassId" failed for object norm.cp.model.ClassCp@67db296e [java.lang.NoSuchMethodException: norm.cp.model.ClassCp.setClassId([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1265)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1454)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:65)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:127)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)rn at ognl.SimpleNode.setValue(SimpleNode.java:301)rn at ognl.Ognl.setValue(Ognl.java:737)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:198)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:161)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:149)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:276)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at norm.common.myInterceptor.LoginInterceptor.intercept(LoginInterceptor.java:39)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.sitemesh.webapp.contentfilter.ContentBufferingFilter.bufferAndPostProcess(ContentBufferingFilter.java:169)rn at org.sitemesh.webapp.contentfilter.ContentBufferingFilter.doFilter(ContentBufferingFilter.java:126)rn at org.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:120)rn at org.sitemesh.config.ConfigurableSiteMeshFilter.doFilter(ConfigurableSiteMeshFilter.java:163)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:102)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:232)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: java.lang.NoSuchMethodException: norm.cp.model.ClassCp.setClassId([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1206)rn ... 83 morern/-- Encapsulated exception ------------\rnjava.lang.NoSuchMethodException: norm.cp.model.ClassCp.setClassId([Ljava.lang.String;)rn[/code]
struts2 模型驱动封装对象时 ognl.MethodFailedException
ognl.MethodFailedException: Method "setCustomerLevel" failed for object com.chinasoft.app.domain.Customer@1182dc12 [java.lang.NoSuchMethodException: com.chinasoft.app.domain.Customer.setCustomerLevel([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1305)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1494)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:78)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:127)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)rn at ognl.SimpleNode.setValue(SimpleNode.java:301)rnrnrn因为这个customerLevel时 integer类型 表单传过去的是String类型rn但是我 实体类已经定义了 Integerrnrnpublic Integer getCustomerLevel() rn return customerLevel;rn rn public void setCustomerLevel(Integer customerLevel) rn this.customerLevel = customerLevel;rn rnrnrnrn求大神解决一下 ,谢谢!!
tomcat 错误 严重: Error loading WebappClassLoader
入门学ext ,学他的direct ,用java要引入第三方jar:rndjn.jarrngson-1.3.jarrnjargs-1.0.jarrnrhino-1.6R7.jarrnyuicompressor-2.4.2.jarrnlog4j-1.2.15.jar,commons-io-1.4.jar,commons-fileupload-1.2.1.jarrnrn把上面jar放到WEB-INF/lib下,写好配置文件web.xml,启动tomcat得一下错误:rnrn2010-3-1 22:57:39 org.apache.catalina.core.ApplicationContext logrn严重: Error loading WebappClassLoaderrn delegate: falsern repositories:rn /WEB-INF/classes/rn----------> Parent Classloader:rnorg.apache.catalina.loader.StandardClassLoader@137c60drn com.softwarementors.extjs.djn.servlet.DirectJNgineServlet;rnjava.lang.ClassNotFoundException: com.softwarementors.extjs.djn.servlet.DirectJNgineServlet;rnrnrn摸不着什么原因
WebappClassLoader的生命周期在哪几种情况下会终止?
请教各位,谁见过这样的错误:rnWebappClassLoader: Lifecycle error : CL stoppedrn什么情况下会引起这种错误?rn是因为Class.forName引起的吗?rnrnrn
高手请进WebappClassLoader: LifeCycle error : CL stopped
WebappClassLoader: LifeCycle error : CL stoppedrnjava.security.NoSuchAlgorithmException: Class org.bouncycastle.jce.provider.JCEBlockCipher$DESede configured for Cipher not found: org.bouncycastle.jce.provider.JCEBlockCipher$DESedern程序部署在tomcat上,前段时间访问都是正常的,就今天出现了问题rn这个类,在我包里面有的
各位朋友,帮忙解决下Error loading WebappClassLoader问题
INFO - Marking servlet ServletConfigurator as unavailablernERROR - Error loading WebappClassLoaderrn delegate: falsern repositories:rn /WEB-INF/classes/rn----------> Parent Classloader:rnorg.apache.catalina.loader.StandardClassLoader@1e2afb2rn org.logicalcobwebs.proxool.configuration.ServletConfiguratorrnjava.lang.ClassNotFoundException: org.logicalcobwebs.proxool.configuration.ServletConfiguratorrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rnERROR - Servlet /net threw load() exceptionrnjava.lang.ClassNotFoundException: org.logicalcobwebs.proxool.configuration.ServletConfiguratorrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rn
错误ORA-12545: Connect failed because target host or object does not exist
在虚拟机中安装了linux作为客户端,然后连接局域网内的ORACLE服务器(安装在win7下),配置完linux客户端后,使用sqlplus test/000000连接时报错rnORA-12545: Connect failed because target host or object does not exist。。。。。。。。。rnWIN7服务器端主机名admin-PC,ORACLE服务名APP,用户名test 密码000000rnrnlinux客户端下tnsnames.ora内容:ORACLR_CONNECTION_DATA =rn (DESCRIPTION =rn (ADDRESS_LIST =rn (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))rn )rn (CONNECT_DATA =rn (SID = CLRExtProc)rn (PRESENTATION = RO)rn )rn )APP =rn (DESCRIPTION =rn (ADDRESS_LIST =rn (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.24.50)(PORT = 1521))rn )rn (CONNECT_DATA =rn (SERVICE_NAME = APP)rn )rn )rnlinux客户端下listener.ora内容:rn# listener.ora Network Configuration File: D:\app\admin\product\11.2.0\dbhome_1\network\admin\listener.orarn# Generated by Oracle configuration tools.rnrnSID_LIST_LISTENER =rn (SID_LIST =rn (SID_DESC =rn (SID_NAME = CLRExtProc)rn (ORACLE_HOME = /usr/lib/oracle/11.2/client)rn (PROGRAM = extproc)rn (ENVS = "EXTPROC_DLLS=ONLY:D:\app\admin\product\11.2.0\dbhome_1\bin\oraclr11.dll")rn )rn )rnrnLISTENER =rn (DESCRIPTION_LIST =rn (DESCRIPTION =rn (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))rn (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.24.50)(PORT = 1521))rn )rn )rnrnwin7服务器下tnsnames.ora内容:rn# tnsnames.ora Network Configuration File: D:\app\admin\product\11.2.0\dbhome_1\network\admin\tnsnames.orarn# Generated by Oracle configuration tools.rnrnORACLR_CONNECTION_DATA =rn (DESCRIPTION =rn (ADDRESS_LIST =rn (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))rn )rn (CONNECT_DATA =rn (SID = CLRExtProc)rn (PRESENTATION = RO)rn )rn )rnrnrnwin7服务器下listener.ora内容:rnrn# listener.ora Network Configuration File: D:\app\admin\product\11.2.0\dbhome_1\network\admin\listener.orarn# Generated by Oracle configuration tools.rnrnSID_LIST_LISTENER =rn (SID_LIST =rn (SID_DESC =rn (SID_NAME = CLRExtProc)rn (ORACLE_HOME = D:\app\admin\product\11.2.0\dbhome_1)rn (PROGRAM = extproc)rn (ENVS = "EXTPROC_DLLS=ONLY:D:\app\admin\product\11.2.0\dbhome_1\bin\oraclr11.dll")rn )rn )rnrnLISTENER =rn (DESCRIPTION_LIST =rn (DESCRIPTION =rn (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))rn (ADDRESS = (PROTOCOL = TCP)(HOST = admin-PC)(PORT = 1521))rn )rn )rnrnADR_BASE_LISTENER = D:\app\adminrnrn求大神们指点啊,工作挡这了,急死了......................................
Server object error 'ASP 0177 : 8007007e' /n Server.CreateObject Failed
Server object error 'ASP 0177 : 8007007e' rnServer.CreateObject Failedrn/Default.asp, line 7 rn8007007ernrn这是我的 asp 文件后给出的出错信息,我想 asp 文件并没有什么问题,应该是我的电脑配置 或者是 IIS 可能出了问题,asp 的第7行是这样的一个 :Set rs = Server.CreateObject("ADODB.Recordset")rn我用的是win 2003 server, 这个 asp 是用 access做数据库的,虽然我后来又装了一个 MS SQL 2000,同时在用 IIS 做PHP的服务器(当然我已经把它关掉了)。rnrn非常感谢大家的帮助!!!rn谢谢!!!
ICQ Failed to init application object .(Code :3)错误修复文件
点击 开始->我的计算机->工具菜单->文件夹->选项-点击查看,在高级设置下,点击 显示隐藏档和档夹,去掉隐藏已知文件的扩展名选项,点击应用 点击确认.在WINDOWS的INF目录下,右键点击MDAC.INF,选择 安装. 按照提示要求指定文件位置安装完成即可修复该错误
ORA-12545: Connect failed because target host or object does not exist
两台服务器,其中一台是应用服务器,另一台是数据库服务器,互相可以ping通IP地址或FQDNrn应用服务器可以telnet数据库的1521端口rn应用服务器上的ora文件内容如下:rn[b]listener.ora[/b]rn[code=text]# listener.ora Network Configuration File: /u01/app/oracle/product/11.1.0/db_1/network/admin/listener.orarn# Generated by Oracle configuration tools.rnrnLISTENER =rn (DESCRIPTION_LIST =rn (DESCRIPTION =rn (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))rn (ADDRESS = (PROTOCOL = TCP)(HOST = 应用服务器FQDN)(PORT = 1521))rn )rn)[/code]rnrn[b]tnsname.ora[/b]rn[code=text]XXX =rn (DESCRIPTION =rn (ADDRESS = (PROTOCOL = TCP)(HOST = 数据库IP地址)(PORT = 1521))rn (CONNECT_DATA =rn (SERVER = DEDICATED)rn (SERVICE_NAME = xxx)rn )rn )rnrnXXX_数据库主机名 =rn (DESCRIPTION =rn (ADDRESS = (PROTOCOL = TCP)(HOST = 数据库IP地址)(PORT = 1521))rn (CONNECT_DATA =rn (SERVER = DEDICATED)rn (SERVICE_NAME = xxx)rn )rn)[/code]rnrn数据库服务器上的ora文件内容如下:rn[b]listener.ora[/b]rn[code=text]# listener.ora Network Configuration File: /u01/app/oracle/product/11.1.0/db_1/network/admin/listener.orarn# Generated by Oracle configuration tools.rnrnLISTENER =rn (DESCRIPTION_LIST =rn (DESCRIPTION =rn (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))rn (ADDRESS = (PROTOCOL = TCP)(HOST = 数据库FQDN)(PORT = 1521))rn )rn)[/code]rnrn[b]tnsname.ora[/b]rn[code=text]# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.1.0/db_1/network/admin/tnsnames.orarn# Generated by Oracle configuration tools.rnrnXXX =rn (DESCRIPTION =rn (ADDRESS = (PROTOCOL = TCP)(HOST = 数据库FQDN)(PORT = 1521))rn (CONNECT_DATA =rn (SERVER = DEDICATED)rn (SERVICE_NAME = xxx)rn )rn)[/code]rnrn在应用服务器上尝试使用sqlplus命令访问数据库,出现标题所示的错误信息。rn在数据库服务器上使用sqlplus命令无问题rnrn已经尝试过修改应用服务器上的ora文件中的HOST为数据库的IP或FQDN,错误依旧
一个困扰了我一天的问题,method 'add' of object 'documents' failed
错误码是'-2147417851(80010105)'rn源程序中有如下几句 rn Dim app As New Word.Applicationrn Dim doc As Word.Documentrn app.Visible = False rn Set doc = app.Documents.Addrn doc.SaveAs FileName:="e:\first.doc"rn Set doc = Nothingrn app.Quitrn Set app = Nothingrn同样documents的其它方法比如open也无法使用,提示是“上次打开normal.dot”出现严重错误,然后不管我点击“打开”还是“恢复数据”都无济于事,问题的所在可能是标准模板normal.dot出了问题,但是我把officexp重装了一遍还是没解决rn
相关热词 c# 线程结束时执行 c# kb mb 图片 c# 替换第几位字符 c#项目决定成败 c# 与matlab c# xml缩进 c#传感器基础 c#操作wps c# md5使用方法 c# 引用父窗口的组件