zoukankan      html  css  js  c++  java
  • SSH 报错 HTTP Status 500

    异常信息:

      

    HTTP Status 500 - Unable to instantiate Action, adminAction, defined for 'admin_login' in namespace '/'adminAction

     

    type Exception report

    message Unable to instantiate Action, adminAction, defined for 'admin_login' in namespace '/'adminAction

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

    exception

    Unable to instantiate Action, adminAction,  defined for 'admin_login' in namespace '/'adminAction
    	com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:319)
    	com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:400)
    	com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:194)
    	org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
    	org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
    	com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
    	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:501)
    	org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
    	org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
    

    root cause

    java.lang.ClassNotFoundException: adminAction
    	org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1295)
    	org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1147)
    	com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:152)
    	com.opensymphony.xwork2.ObjectFactory.getClassInstance(ObjectFactory.java:108)
    	com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:233)
    	com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:153)
    	com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:151)
    	com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:121)
    	com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:300)
    	com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:400)
    	com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:194)
    	org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
    	org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
    	com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
    	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:501)
    	org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
    	org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
    

    note The full stack trace of the root cause is available in the Apache Tomcat/8.0.15 logs.


    Apache Tomcat/8.0.15

    报的错是找不到action ,我一看struts配置文件里面有配置action啊,然后才发现 我在spting的配置中少了一个 相应的 bean,我也是醉了,要更加细心啊

  • 相关阅读:
    深度学习(十六) ReLU为什么比Sigmoid效果好
    逻辑回归和线性回归区别
    KNN理解
    词向量总结
    HTTP TCP/IP Socket
    AutoMapper控件
    Oracle数据库调优总结
    深度学习(十五) TextCNN理解
    从几张图来看看越来越难做的前端
    ES6学习笔记
  • 原文地址:https://www.cnblogs.com/hello001/p/7363532.html
Copyright © 2011-2022 走看看