关于"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");
}
}
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");
}
}
相关文章推荐
- Could not load the assembly 'App_Web的解决办法
- 远程调用其他系统bean报EJBCLIENT000037: Could not load ejb proxy class com.tgb.itoo.basic.service.xxBean的错误
- 关于android编程中遇到的Could not find class 'com.swetake.util.Qrcode错误的原因及解决办法
- Could not load file or assembly "App_Licenses.dll" " Could not load file or assembly App_Web_"
- Could not load db driver class: com.mysql.jdbc.Driver解决方法
- 关于android编程中遇到的Could not find class 'com.swetake.util.Qrcode错误的原因及解决办法
- Qt release之后运行显示it could not find or load the Qt platform plugin "windows".解决方法
- "无法启动Web服务器。Web服务器无法找到请求的资源" 或 "unable to start debugging on the web server.the web server could not find the request"解决方法
- Parser Error Message: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies.解决方法
- Chrome插件开发之"Could not load extension... Unsopported encoding "错误解决方法
- LESSON: "Could not publish to the server" error when develop Web Services by IBM AST
- Ajax.net 错误 Could not load type 'Microsoft.Web.Extensions.Design.Dll'解决方法.
- javac命令"could not open X:/jre1.5.0/lib/i386/jvm.cfg" 的解决方法
- 关于写入文件缓存时报"java.io.FileNotFoundException open failed (is a director)"错误的解决方法
- 关于myeclipse启动错误的解决方法 com.genuitec.myeclipse.product.ide could not be found
- 关于Flex4不生成mxml对应的html文件的解决方法-------无法打开"D:/MyEclipse 8.5/项目名称/WebRoot/WEB-INF/flex/local/zh_CN"
- [Trouble Shoot]hibernate中的Failed to load class "org.slf4j.impl.StaticLoggerBinder"问题的解决方法
- 关于OpenSUSE安装HLA编译时,提示:Could not open include file "stdlib.hhf" 的解决办法之一
- 发送邮件时遇到mail包冲突异常Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 解决方法
- 关于The MBean class could not be loaded by the default loader repository的解决方法