请帮我看看这个错语如何解决?

08-03-17 studyjava
错误内容如下'
--------------------------------------------------------
2008/03/17 20:58:14 org.apache.struts.tiles.TilesRequestProcessor initDefinitionsMapping
情報: Tiles definition factory found for request processor ''.
2008/03/17 20:58:14 org.apache.catalina.core.StandardWrapperValve invoke
致命的: サーブレット action のServlet.service()が例外を投げました
java.lang.NoSuchMethodError: org.apache.struts.config.ForwardConfig.getContextRelative()Z
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Unknown Source)
-----------------------------------------------
我这是在Action中时处理完了后进行转页时发生的错误,
那句转页代码是:
ActionForward af = new ActionForward("success");
return af;

我的配置文件中是这样的:

<form-bean name="TestForm"
type="InfoTrace.TestForm">
</form-bean>

<action path="/TestAction"
type="InfoTrace.TestAction"
name="TestForm"
scope="request"
input="/jsp/index2.jsp" >
<forward name="success" path="/jsp/index2.jsp"/>
<forward name="error" path="/jsp/index.jsp"/>
</action>

请问这有什么错吗?

1
banq
2008-03-17 21:22
可能是struts的jar版本不一致,或出现两个相同。

studyjava
2008-03-18 13:19
我用的开发环境是:
eclipse3.3.1
STURTS的插件是 tk.eclipse.plugin.struts_2.0.5
JDK1.6
tomcat6.0
请问出现的问题是什么原因?实在找不到了.唉
我又开发的问题也是同一个问题的.
难道是环境搭的问题吗?
不应该在Action的execute()方法中返回值搞错啊,太怪了吧.
请高人帮帮我吧

猜你喜欢