G
geniusq
Unregistered / Unconfirmed
GUEST, unregistred user!
我用jbx建了一个ejb 1.1,啥东东也没做,就是编译,然后布署到weblogic上面,正常
然后在同一个project里new了一个 ejb test application,选了刚才做的ejb做为测试目标
,修改的代码如下:
public static void main(String[] args) {
EjbTestClient1 client = new EjbTestClient1();
EjbHome home = client.getHome();
Ejb obj = home.create();
//这句出错...
}
错误提示如下:
"EjbTestClient1.java": unreported exception javax.ejb.CreateException;
must be caught or declared to be thrown at line 67, column 20
困扰了我好久...大伙救救我吧
然后在同一个project里new了一个 ejb test application,选了刚才做的ejb做为测试目标
,修改的代码如下:
public static void main(String[] args) {
EjbTestClient1 client = new EjbTestClient1();
EjbHome home = client.getHome();
Ejb obj = home.create();
//这句出错...
}
错误提示如下:
"EjbTestClient1.java": unreported exception javax.ejb.CreateException;
must be caught or declared to be thrown at line 67, column 20
困扰了我好久...大伙救救我吧