2014-05-18 23 views
0

我是Apache ofbiz.i中的新手,已经下载并配置了ant.Its,现在我的本地机器正在本地运行。如何解决在ofbiz中未配置的管理套接字

"https://localhost:8443/catalog/control/main" its my local URL. 

我现在想导入此日食我做在建Xml.Then我已经去调试配置运行Ant后eclipse.But配置,我用鼠标右键单击Java远程应用的新ofbiz的,现在参数是连接类型 - > Standered(套接字附加), Host - > localhost,port - > 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 
+0

任何人都可以帮我吗? – lucifer

+0

为什么管理套接字没有配置msg显示??? plase帮助 – lucifer

回答

1

远程调试不使用HTTP端口,需要使用JPDA端口 参数添加到您的命令-Xrunjdwp:交通= dt_socket,服务器= Y,暂停= N,地址= 8091的罐子ofbiz.jar 看https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse

+0

我应该把这一行 – lucifer

+0

如何开始你的ofbiz,我想你可以把它放在你的ant文件的某个地方。在你的Ant文件启动命令 – andy

+0

存在我用它来打开这个文件,然后打localhost..i我试图用eclipse – lucifer

0

出现这种情况是由于你的“运行配置”类路径设置: - 我通过在“类路径”选项卡“用户条目”中的“运行配置”删除条目“的ofbiz(缺省类路径)”解决了这个错误forbiz,并用ofbiz.jar替换它。 换句话说:

  • 转到forbiz的'运行配置'中的'classpath'选项卡。
  • 删除'User Entries'中现有的'ofbiz(默认classpath)'条目,并将其替换为您的ofbiz文件夹中的'ofbiz.jar'。
相关问题