测试entity bean的问题? 欢迎讨论
我用entity bean modeler从存在的数据库文件(EID.jds)中 生成了一个entity bean, 编译、deploy、都成功。
可是,当我调用xxxClient 测试时,代码如下:
xxxClient client=new xxxClient;
Client.create(ID);
.....
错误如下:
-- Execution time: 34389 ms.
-- Calling create(A01)
java.rmi.RemoteException: Error during setXXXContext: ; nested exception is:
javax.ejb.EJBException: Error initializing context:javax.ejb.EJBException: Error looking up dataSource: javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: Unable to resolve DataSource. Resolved: '' Unresolved:'DataSource' ; remaining name '']; Link Remaining