控制台报警告:
2009-06-30 16:08:02,765 WARN org.apache.struts.util.PropertyMessageResources - Resource org/apache/struts/action/ActionResources_zh_CN.properties Not Found.
2009-06-30 16:08:02,765 WARN org.apache.struts.util.PropertyMessageResources - Resource org/apache/struts/action/ActionResources_zh.properties Not Found.
这个资源包是struts框架内部的消息资源包,用来想日志文件输出信息,警报和错误信息的,下载的struts包中本来就不包含_zh_CN的资源文件。
protected void initInternal()
throws ServletException {
try {
internal = MessageResources.getMessageResources(internalName);
} catch (MissingResourceException e) {
log.error("Cannot load internal resources from '" + internalName
+ "'", e);
throw new UnavailableException(
"Cannot load internal resources from '" + internalName + "'");
}
}
这个是actionServlet中的init方法初始化时调用的第一个方法,就是获取那个资源文件。默认的值就是internalName= org/apache/struts/action/ActionResources。
是Struts1.X程序运行ActionServlet调用initInternal()方法时,
得到你的机器是中文系统,试图寻找中文的ActionResources_zh_CN.properties文件或者ActionResources_zh.properties文件,由于Struts 1.X 开发包本身没有这两个文件,所以提示出来“警告”,不是错误。 这个警告并不影响程序的运行。
可以根据英文版的ActionResources.properties做一个中文版的ActionResources_zh_CN.properties,放在相应的路径下。注意转码。
控制台运行
native2ascii -encoding gb2312 ActionResources.properties ActionResources_zh_CN.properties
或者建个bat文件,把这句话写进去,运行
分享到:
相关推荐
cn_sql_server_2008_r2_express_x64
spark sql操作hive表数据源,
Struts_in_Action_中文版.pdf分为两个分卷压缩文件,这是Struts_in_Action_中文版.part2.rar
Struts_in_Action_中文版.pdf分为两个分卷压缩文件,这是Struts_in_Action_中文版.part1.rar
iOS*10*by_Tutorials_v0.2.pdf.zip iOS*10*by_Tutorials_v0.2.pdf.zip
struts_2_in_action.5040844802.rar struts_2_in_action.5040844802.rar
JSTL_in_Action.part01.rar
JUnit_in_Action_01中文.pdf
JSTL_in_Action.part01.rar
1634462301663555_person!printPdf.action
action_vip_sdcard_Action!_FPGAverilog_SD_源码.rar.rar
JSTL_in_Action.part02.rar
JSTL_in_Action.part01.rar
not added on as scripts to be interpreted slowly but as fully compiled and integrated functions of the system. Once installed, the customized features will be retained with each upgrade of the system ...
.....struts.properties .....Action_编写与配置 .....Action_访问容器与校验 .....Action_ResultType .....XWork拦截器 .....XWork转换器 .....XWork校验器_使用 .....XWork校验器_定义 .....标签库_简介与OGNL ......
BaiduNetdisk_mac_4.12.3_x64.dmg
sql大全,Ajax中文手册(快速上手).chm,DHTML 手册.chm,java 1.6 api.chm,JAVA设计模式.chm,oracle_sql.chm,spring2.0-reference_final_zh_cn.chm,Spring+in+Action中文版.chm,全新java基础实践教程.chm 本人QQ:...
Lucene_in_ Action java search engine.PDF 搜索引擎教程
大型网站站内搜索(Lucene_In_Action).pdf 大型网站站内搜索(Lucene_In_Action).pdf
www.cnplugins.com_dhdgffkkebhmkfjojejmpbldmpobfkfo_4_0_.crx