我有一个项目,在系统语言设置为中文时可以正常启动.
当我把系统语言设置为English时.启动报错:
java.lang.ExceptionInInitializerError
at com.yilz.his.framework.application.startup.springload.SpringIniListener.contextInitialized(SpringIniListener.java:39)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.util.MissingResourceException: Can””t find bundle for base name default, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:787)
at com.yilz.his.common.resources.Globalization.getBundle(Globalization.java:31)
at com.yilz.his.common.resources.Globalization.getDefaultBundle(Globalization.java:20)
at com.yilz.his.common.resources.StringResources.getDefaultResour(StringResources.java:24)
at com.yilz.his.common.configuration.ResourceUtils.<clinit>(ResourceUtils.java:27)
… 16 more