您的位置:首页 > 移动开发

关于"Could not load ejb proxy class com.appweb.services.ejb.messagebox.IEmailReceiveDAO"的解决方法

2015-04-07 12:03 836 查看
这几周在弄ejb,如果注册AppModel里的类中jndi名称和路径不对的话,就会报下面的错误:

javax.naming.NamingException: Could not load ejb proxy class com.appweb.services.ejb.messagebox.IEmailReceiveDAO [Root exception is java.lang.ClassNotFoundException: com.appweb.services.ejb.messagebox.IEmailReceiveDAO from [Module "deployment.appDD.ear.appweb.war:main"
from Service Module Loader]]

发现是因为IEmailReceiveDAO的类路径不对而找不到类,改为 super("EmailReceiveDAOImpl!com.app.services.ejb.messagebox.IEmailReceiveDAO");后正常;

public class EmailReceiveServiceImpl extends BaseServiceImpl implements IEmailReceiveService{

public EmailReceiveServiceImpl(){

super("EmailReceiveDAOImpl!com.appweb.services.ejb.messagebox.IEmailReceiveDAO");

}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐