违反 EJB 规范

发布于 2024-08-06 18:55:22 字数 772 浏览 3 评论 0原文

我创建了一个名为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一梦浮鱼 2024-08-13 18:55:22

我怀疑您的某个部署描述符中的某些内容已过时,因此 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.

春风十里 2024-08-13 18:55:22

看起来您还必须删除 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 )

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文