WebLogic学习笔记

来源:互联网 发布:nginx 添加lua 编辑:程序博客网 时间:2024/06/10 06:36

遇到的问题:

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


原创粉丝点击