RT
配置应该是正确的把这段调用类的静态方法去掉以后,可以正常运行,一旦加上这个方法就会报错
No result defined for action com.kpi.grop1.action.FacultiesAction and result error
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:376)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:278)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:511)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
可是这个方法我在junit中测试能够正常通过,不知道是哪的问题
配置应该是正确的把这段调用类的静态方法去掉以后,可以正常运行,一旦加上这个方法就会报错
No result defined for action com.kpi.grop1.action.FacultiesAction and result error
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:376)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:278)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:511)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
可是这个方法我在junit中测试能够正常通过,不知道是哪的问题
解决方案 »
- strust2
- 问一个关于java自己定义一个包,自己写一个库函数的问题
- out流输出 在store中怎么展示数据
- 批处理程序为什么在有的 服务器上运行不了
- 关于hibernate多表查询的问题
- 成功运行了struts+spring+hibernate的例子wiring的朋友进来帮帮忙
- “soundbox.ejbgrpx”: spaces in the temporary directory path may cause weblogic EJBC utility to produce fatal compile errors
- 问个问题,100分:buggit在xp下怎么登陆不进去?如果解决了,100分必送!!
- 转 请大家讨论一下,现在我们开发J2EE的Application Server还有没有机会,这里有没有这种人才? (愿意给300分)
- c3p0最大连接数无效
- struts2.3.7自定义plugin
- CentOS tomcat启动了 但是http://locahost:8080打不开
<struts> <constant name="struts.enable.DynamicMethodInvocation" value="true" />
<constant name="struts.devMode" value="true" /> <package name="default" namespace="/" extends="struts-default"> <!-- 默认访问的action(不存在或者不写的action) -->
<default-action-ref name="index" />
<!-- 全局结果 (所有的action共用的结果接)-->
<!--
<global-results>
<result name="error">/error.jsp</result>
</global-results>
-->
<!--全局异常 -->
<global-exception-mappings>
<exception-mapping exception="java.lang.Exception" result="error"/>
</global-exception-mappings>
</package> <package name="basedata" namespace="/basedata" extends="default">
<action name="facultiestree" class="com.kpi.grop1.action.FacultiesAction" method="tree">
<!-- 默认为dispatch(服务器端的跳转,只能跳转view视图) -->
<result type="redirect" name="success">/basedata/client_add.html</result>
</action>
<!-- Add actions here -->
</package>
</struts>
我建立程序的时候引入外部类库时用的是userlibary的形式,tomcat不能把它自动拷入吗?