2014-05-18 28 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'。
相關問題