在eclipse下运行或调试Ofbiz的出现Can't find bundle for base

在eclipse 中利用org.ofbiz.base.start.Start类运行Ofbiz 出现错误:

Exception in thread "main" java.lang.ExceptionInInitializerError
at org.ofbiz.base.util.Debug.<clinit>(Debug.java:90)
at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:50)
at org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
at org.ofbiz.base.start.Start.init(Start.java:87)
at org.ofbiz.base.start.Start.main(Start.java:403)
Caused by: java.util.MissingResourceException: Can't find bundle for base name cache, locale zh_CN
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:549)
at org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:217)
at org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:213)
at org.ofbiz.base.util.cache.UtilCache.<init>(UtilCache.java:172)
at org.ofbiz.base.util.UtilProperties.<clinit>(UtilProperties.java:53)
... 5 more


解决方法其实很简单就是在工程的build_path 中加入framework下的三个目录:config,cert,dtd

你可能感兴趣的:(java,eclipse,thread,cache)