遇到的問題:
1. 在Eclipse中運行server報錯:
The domain edit lock is owned by another session - this deployment operation requires exclusive access to the edit lock and hence cannot
proceed.
You can release the lock in Administration Console by first disabling "Automatically Acquire Lock and Activate Changes" in Preference,
then clicking the Release Configuration button.
原因:在Eclipse中部署要求獨佔edit lock
解決辦法: 到Administration Console中disable掉"Automatically Acquire Lock and Activate Changes"
2. 在Eclipse中運行server報錯:
java.net.MalformedURLException: no protocol
原因:Server安裝路徑中有空格
解決辦法:重裝~~
3. Tutorial: Accessing a Database from a Beehive NetUI Web Application
a. tutorial 中並未提到給Action getCustomers添加actionOutput,但其實webshop並不會自動添加,所以需要手動給getCustomers加入一行
actionOutputs = { @Jpf.ActionOutput( name="getCustomersResult", type = model.Customer[].class) }
b. 編譯出錯 Internal compiler error
java.lang.ClassCastException: org.eclipse.jdt.internal.compiler.lookup.ArrayBinding
解決辦法: 將getCustomerById 的 Action Template 改爲 get item for display via control (tutorial中爲edit)
具體可以參見 https://forums.oracle.com/forums/thread.jspa?threadID=830474