我是Apache ofbiz的新手,我已经使用ant下载并配置了它。它现在在我的机器上本地运行。
"https://localhost:8443/catalog/control/main" its my local URL.
现在我正在尝试使用eclipse进行配置。但是将其导入到eclipse之后,我已经在build Xml中运行过Ant。然后我去调试了配置,我右键单击java远程应用程序new ofbiz,现在参数是连接类型- > Standered(插座连接),
主机->本地主机,端口-> 8443。但是当我单击调试按钮时,它显示错误。我收到此错误。
Start.java using configuration file org/ofbiz/base/start/start.properties
Set OFBIZ_HOME to - C:/apache-ofbiz-11.04.04
Admin socket not configured; set to port 0
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.ofbiz.base.util.Debug.<clinit>(Debug.java:86)
at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:78)
at org.ofbiz.base.start.Start.initStartLoaders(Start.java:169)
at org.ofbiz.base.start.Start.init(Start.java:139)
at org.ofbiz.base.start.Start.main(Start.java:69)
Caused by: java.util.MissingResourceException: Can't find bundle for base name cache, locale en
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:212)
at org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:208)
at org.ofbiz.base.util.cache.UtilCache.<init>(UtilCache.java:138)
at org.ofbiz.base.util.cache.UtilCache.createUtilCache(UtilCache.java:1015)
at org.ofbiz.base.util.UtilProperties.<clinit>(UtilProperties.java:71)
... 5 more
最佳答案
远程调试不使用您的HTTP端口,需要使用JPDA端口
在命令中添加参数-Xrunjdwp:transport = dt_socket,server = y,suspend = n,address = 8091 -jar ofbiz.jar
见https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse