zoukankan      html  css  js  c++  java
  • 出现"Unable to instantiate Action,xxxxx, defined for 'login' in namespace '/' xxxxx 解决办法

    转自:https://blog.csdn.net/heroful/article/details/17261169

    问题原因:


    在MyEclipse 利用SSH框架写程序,运行时出现  

             " Unable to instantiate Action,xxxxx,  defined for 'login' in namespace '/' xxxxx "  错误



    具体原因:

    找不到 applicationContext.xml 中 bean id="xxxxx"  



    解决办法:

    1、确认下 applicationContext.xml 文件存放路径

    a)、如果 applicationContext.xml 存入在 src 目录下 , 请在 web.xml 中添加如下配置

    1. <context-param>   
    2. <param-name>contextConfigLocation</param-name>  
    3. <param-value>/WEB-INF/applicationContext*.xml,classpath*:/context/applicationContext*.xml</param-value>  
    4. </context-param>  

    b)、如果 applicationContext.xml 存入在 WEB-INF 目录下,请在web.xml下删掉或注释掉以下配置

    1. <context-param>   
    2. <param-name>contextConfigLocation</param-name>  
    3. <param-value>/WEB-INF/applicationContext*.xml,classpath*:/context/applicationContext*.xml</param-value>  
    4. </context-param>  


     
     
     
  • 相关阅读:
    bzoj4804
    bzoj2962
    bzoj4827
    bzoj2553
    bzoj3611
    BZOJ 1636: [Usaco2007 Jan]Balanced Lineup
    BZOJ 1635: [Usaco2007 Jan]Tallest Cow 最高的牛
    BZOJ 1634: [Usaco2007 Jan]Protecting the Flowers
    BZOJ 1631: [Usaco2007 Feb]Cow Party
    BZOJ 2582: [Usaco2012Jan]Bovine Alliance
  • 原文地址:https://www.cnblogs.com/sharpest/p/7355778.html
Copyright © 2011-2022 走看看