struts2 警告: Settings: Could not parse struts.locale setting, substituting default VM locale

2008-12-17 8:48:36 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:/Program Files/Java/jdk1.6.0_10/bin;D:/Program Files/tomcat-6.0.18/bin
2008-12-17 8:48:37 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2008-12-17 8:48:37 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 7535 ms
2008-12-17 8:48:38 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2008-12-17 8:48:38 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.18
2008-12-17 8:48:45 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2008-12-17 8:48:45 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2008-12-17 8:48:51 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
信息: Parsing configuration file [struts-default.xml]
2008-12-17 8:48:51 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
信息: Parsing configuration file [struts-plugin.xml]
2008-12-17 8:48:51 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
信息: Parsing configuration file [struts.xml]
2008-12-17 8:48:52 org.apache.struts2.config.Settings getLocale
警告: Settings: Could not parse struts.locale setting, substituting default VM locale
2008-12-17 8:48:52 org.apache.struts2.config.BeanSelectionProvider register
信息: Loading global messages from message
2008-12-17 8:48:54 com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory <clinit>
信息: Setting DefaultObjectTypeDeterminer as default ...
2008-12-17 8:48:54 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2008-12-17 8:48:55 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2008-12-17 8:48:55 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=15/110 config=null
2008-12-17 8:48:55 org.apache.catalina.startup.Catalina start
信息: Server startup in 17391 ms

解决方法(有两种):

1、src/struts.properties文件中如下配置: 如果没有struts.properties文件则创建,

在此文件下加入struts.locale=en_GB即可解决问题,已经尝试,好使!

2、在struts.xml中如下配置;

<constant name="struts.locale" value="en_GB" />

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值