违反 EJB 规范
我创建了一个名为 EvenementBean 的 EJB 2 进行测试。然后我就把它删除了。现在每当尝试部署我的 .ear 项目时,我都会收到以下错误:
WARN [verifier] EJB sepc violation:
Bean: Evenement
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class
that implements the enterprise bean's business methods in the <ejb-class> element.
Info : class not found on 'com.afb.iard.sina.evenement.EvenementBean' : No
ClassLoaders found for : com.afb.iard.sina.evenement.EvenementBean.
Could not create deployment: File:/E:/DIR1/jboss-4.2.1.GA/server/ABrain/tmp/deploy
/tmp...
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed,
see above.
我正在使用 jboss-ide 1.6。我已经重新启动过IDE几次但没有成功。
I created an EJB 2 named EvenementBean for test. I then deleted it. and whenever trying to deploy my .ear project now, I get these errors :
WARN [verifier] EJB sepc violation:
Bean: Evenement
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class
that implements the enterprise bean's business methods in the <ejb-class> element.
Info : class not found on 'com.afb.iard.sina.evenement.EvenementBean' : No
ClassLoaders found for : com.afb.iard.sina.evenement.EvenementBean.
Could not create deployment: File:/E:/DIR1/jboss-4.2.1.GA/server/ABrain/tmp/deploy
/tmp...
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed,
see above.
I am using jboss-ide 1.6. and I've already restarted the IDE several times without success.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我怀疑您的某个部署描述符中的某些内容已过时,因此 JBoss 正在尝试加载您已删除的 bean 的
.class
文件。I suspect something in one of your deployment descriptors is out-of-date, and therefore JBoss is trying to load the
.class
file for the bean you have since deleted.看起来您还必须删除 ejb 描述符中的引用条目(我认为它是 ejb-jar.xml )
Looks like you have to delete also the reference entry in the ejb descriptor ( I think it is ejb-jar.xml )