老师,为什么我都按照你的配置了,回报这个错误,我不理解,通配符正确了,可以进入到action类,但是就是调用接口实现类的方法就没有反应了,好奇怪

来源:2-6 页面调用

wing_hls

2015-08-31 16:22

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)


写回答 关注

6回答

  • 曲怀觞
    2015-12-25 13:07:52

    这个问题是因为配置出了问题,因=users-login,jsp文件配置了classpath

    所以form中的action只需要这样写就可以

    <form name="loginForm" action="users/Users_login.action" method="post">

    <!-- start of login form -->


  • qq_鱼鱼在水_0
    2015-12-22 14:48:41

    输入账户密码后报404错误http://img.mukewang.com/5678f2440001489505720306.jpg

    qq_鱼鱼在...

    是缺了什么吗?

    2015-12-22 14:50:40

    共 1 条回复 >

  • hyfhjfc
    2015-11-19 21:21:30

    我也是无法登陆,一登录就500错误,求大神解答

    Exception report

    message action.UsersAction.login()

    description The server encountered an internal error that prevented it from fulfilling this request.

    exception

    java.lang.NoSuchMethodException: action.UsersAction.login()
    ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1246)
    ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
    com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)


  • End13147
    2015-11-14 16:04:45

    我这有刚做到登陆的源码呢,谁要~~~

    慕用7821...

    求配置文件源码

    2015-12-05 01:12:06

    共 1 条回复 >

  • 骨伞轻旋过忘川
    2015-09-06 16:38:04

    哪位大神可以告诉我,这个错误的原因,单元测试对的,一发布到tomcat上就各种报错

    55ebfb1700019dff05000180.jpg

    55ebfb170001e6ed05000180.jpg


    鲜衣

    你解决了这个问题吗,麻烦告诉我怎么改过来的,急急急,谢谢啦!!!!

    2015-10-06 16:15:41

    共 2 条回复 >

  • 玖夜月
    2015-09-04 21:17:33

    我也有类似的情况,用Junit测试都能查出数据来,页面登录就报错

使用Struts2+Hibernate开发学生信息管理功能

Strust2+Hibernate整合开发案例,Java Web开发技能更上一层楼

80700 学习 · 754 问题

查看课程

相似问题