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,我也是醉了,要更加细心啊

  • 相关阅读:
    A1023 Have Fun with Numbers [大整数乘法]
    大整数的四则运算
    A1096 Consecutive Factors [因子分解]
    A1078 Hashing [质数和散列结合]
    A1015 Reversible Primes [质数问题]
    又谈进制转换
    A1088 Rational Arithmetic [分数四则运算]
    A1081 Rational Sum [分数计算]
    linux主流系统配置静态ip
    主机ping虚拟机请求超时,虚拟机ping主机正常ping通导致ssh连接问题
  • 原文地址:https://www.cnblogs.com/hello001/p/7363532.html
Copyright © 2011-2022 走看看